/* HARO Logo Color Variations */
/* Logo header public - Bleu #0083c1 */
.header-logo img {
    filter: brightness(0) saturate(100%) invert(28%) sepia(95%) saturate(1716%) hue-rotate(191deg) brightness(95%) contrast(101%);
}

/* Logo header public - Taille augmentée modérée */
.header-logo {
    display: flex;
    align-items: center;
    min-height: 53px; /* Assure la hauteur minimale pour le logo */
}

.header-logo img {
    max-width: 110px;
    height: auto;
    width: 100%;
}

/* Responsive adjustments pour le logo */
@media (max-width: 991px) {
    .header-logo {
        min-height: 45px; /* Hauteur réduite sur mobile */
    }
    
    .header-logo img {
        max-width: 95px; /* Taille réduite sur mobile */
    }
}

@media (max-width: 767px) {
    .header-logo {
        min-height: 40px; /* Hauteur encore plus réduite sur petit mobile */
    }
    
    .header-logo img {
        max-width: 85px; /* Taille encore plus réduite sur petit mobile */
    }
}

/* Logo footer public - Gris #8b8c8d */
footer .logo img {
    filter: brightness(0) saturate(100%) invert(55%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(95%) contrast(86%);
}

/* Characters Page Styles */
.characters-description-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
}

.characters-description-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Guild Page Styles */
.guild-description-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
}

.guild-description-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Force la taille de l'emblème de guilde - Règle très spécifique */
div.col-md-3.text-center img.guild-emblem-large,
.guild-emblem-large {
    width: 48px !important;
    height: 48px !important;
    object-fit: none !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    background: white !important;
    margin: 0 auto !important;
    display: block !important;
    image-rendering: pixelated !important;
    image-rendering: -moz-crisp-edges !important;
    image-rendering: crisp-edges !important;
    max-width: 48px !important;
    max-height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
}

.guild-emblem-placeholder-large {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    margin: 0 auto;
}

.guild-name-large {
    color: #007bff;
    font-weight: bold;
    font-size: 1.8rem;
}

.stat-item-large {
    padding: 0.75rem;
}

.stat-value-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}

.stat-label-large {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.stat-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.stat-detail-item:last-child {
    border-bottom: none;
}

.stat-detail-item .stat-label {
    font-weight: 500;
    color: #6c757d;
}

.stat-detail-item .stat-value {
    font-weight: bold;
    color: #007bff;
}

.job-icon-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.member-portrait-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.member-portrait {
    width: auto;
    height: auto;
    object-fit: none;
    position: relative;
    top: -10px;
}

.guild-card {
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease-in-out;
}

.guild-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.guild-emblem-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.guild-emblem {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.guild-emblem-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.guild-name {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.guild-stats {
    margin: 1rem 0;
}

.stat-item {
    padding: 0.5rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Nouveau style pour l'affichage des personnages avec texte rotatif */
.character-display-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
}

/* Styles pour l'affichage de guilde avec chevauchement */
.guild-character-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    margin-bottom: 2rem;
}

.guild-master-container {
    position: relative;
    z-index: 10;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.guild-master-container:hover {
    transform: scale(1.15);
    z-index: 15;
}

.guild-member-container {
    position: absolute;
    z-index: 5;
    transform: scale(0.8);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.guild-member-container:hover {
    transform: scale(0.9);
    opacity: 1;
    z-index: 12;
}

/* Positionnement des membres autour du maître */
.guild-member-left {
    left: 110px;
    top: 50%;
    transform: translateY(-50%);
}

.guild-member-right {
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
}

/* Effet de chevauchement pour les membres */
.guild-member-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.1));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guild-member-container:hover::before {
    opacity: 1;
}

/* Indicateur de maître de guilde */
.guild-master-container::after {
    content: '👑';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .guild-character-group {
        flex-direction: column;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .guild-master-container {
        transform: scale(1);
        margin-bottom: 1.5rem;
        order: 1;
    }
    
    .guild-member-container {
        position: relative;
        transform: scale(0.9);
        margin: 0.75rem auto;
        order: 2;
    }
    
    .guild-member-left,
    .guild-member-right {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
    }
    
    /* Masquer la couronne sur mobile pour économiser l'espace */
    .guild-master-container::after {
        display: none;
    }
    
    /* Ajuster les détails des personnages sur mobile */
    .character-display-container .character-details {
        font-size: 11px;
        bottom: 6px;
        right: 6px;
        max-width: 160px;
    }
    
    .character-display-container .character-details .character-name {
        font-size: 11px;
    }
    
    .character-display-container .character-details .character-guild {
        font-size: 10px;
    }
    
    /* Réduire la taille des icônes sur mobile */
    .character-display-container .character-job-icon {
        width: 20px;
        height: 20px;
        top: 6px;
        right: 6px;
    }
    
    .character-display-container .character-guild-emblem {
        width: 20px;
        height: 20px;
        bottom: 6px;
        left: 6px;
    }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .guild-character-group {
        padding: 0.5rem 0;
    }
    
    .guild-master-container,
    .guild-member-container {
        transform: scale(0.85);
    }
    
    .guild-member-container:hover {
        transform: scale(0.9);
    }
    
    .character-display-container {
        width: 170px;
        height: 170px;
    }
    
    .character-image {
        width: 170px;
        height: 170px;
        top: -25px;
    }
}

.character-image {
    position: absolute;
    top: -30px;
    left: 0;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.character-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 8px;
    z-index: 2;
}

.character-display-container .character-job-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 25px;
    height: 25px;
    z-index: 4;
}

.character-display-container .character-guild-emblem {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    z-index: 4;
}

.character-display-container .character-details {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: right;
    max-width: 180px;
    line-height: 1.2;
    text-shadow: 0 0 4px rgba(0, 0, 0, 1);
    z-index: 4;
}

.character-display-container .character-details .character-name {
    display: block;
    color: #007bff;
    text-transform: uppercase;
    margin-bottom: 0;
}

.character-display-container .character-details .character-guild {
    display: block;
    color: #ffffff;
    font-size: 11px;
    opacity: 0.9;
}



.character-card {
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
}

.character-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Supprimer les ombres et bordures de toutes les cards de la page characters */
.characters-description-card,
.character-card,
.characters-description-card .card,
.character-card .card,
.characters-description-card .card:hover,
.character-card .card:hover,
/* Card "Aucun personnage trouvé" */
.col-lg-9 .card,
.col-lg-9 .card:hover {
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
}

.character-stat {
    padding: 1rem 0;
}

.character-stat .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}

.character-stat .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}



.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 500;
    color: #212529;
    font-size: 0.875rem;
}

/* Footer Sticky Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#footer {
    margin-top: auto;
}

/* Styles WoE pour l'affichage des guildes avec chevauchement */
.guild-characters-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    position: relative;
}

.character-sprite {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.character-image {
    border-radius: 8px;
}

.character-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007bff;
}

.character-placeholder i {
    font-size: 2rem;
    color: #007bff;
}

/* Z-index pour le maître de guilde */
.guildmaster-character {
    z-index: 10;
    position: relative;
    top: 55px;
}

.guildmaster-character {
    display: flex;
    justify-content: center;
    align-items: center;
}

.guildmaster-character img {
    position: relative;
    top: -80px;
}

.guild-member-left,
.guild-member-right {
    z-index: 5;
    position: relative;
}

/* Style personnalisé pour les cartes des châteaux */
.castle-map-frame {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    padding: 8px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.castle-map-frame img {
    border-radius: 4px;
    display: block;
    width: 250px;
    height: 250px;
    object-fit: cover;
}

/* Style pour les icônes de compétences */
.skill-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    cursor: help;
}

/* Avatars personnalisés dans les commentaires - Redimensionnement à 72x72px */
ul.comments li .img-thumbnail img.avatar,
ul.comments li .haro-avatar .avatar-container img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    object-position: center;
}

/* Carrousel avec un seul slide - Figé */
.single-slide-carousel {
    /* Désactiver les effets de transition */
    transition: none !important;
    /* Curseur normal au lieu du curseur de drag */
    cursor: default !important;
}

.single-slide-carousel .owl-stage {
    /* Centrer le slide unique */
    transform: none !important;
}

.single-slide-carousel .owl-item {
    /* Assurer que le slide unique prend toute la largeur */
    width: 100% !important;
    /* Curseur normal au lieu du curseur de drag */
    cursor: default !important;
}

.single-slide-carousel .owl-stage-outer {
    /* Désactiver la sélection de texte et le drag */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Curseur normal */
    cursor: default !important;
    /* Empêcher les événements de pointeur */
    pointer-events: none;
}

.single-slide-carousel .owl-stage {
    /* Empêcher les événements de pointeur */
    pointer-events: none;
}

.single-slide-carousel .owl-item {
    /* Empêcher les événements de pointeur */
    pointer-events: none;
}

/* Réactiver les événements pour les éléments interactifs dans le slide */
.single-slide-carousel .owl-item .container,
.single-slide-carousel .owl-item a,
.single-slide-carousel .owl-item button {
    pointer-events: auto;
}

/* Conteneur statique pour un seul slide (sans carrousel) */
.static-slide-container {
    position: relative;
    width: 100%;
    height: 670px;
    overflow: hidden;
}

.static-slide-container .owl-stage-outer {
    height: 100%;
}

.static-slide-container .owl-stage {
    height: 100%;
    display: flex;
    align-items: center;
}

.static-slide-container .owl-item {
    width: 100% !important;
    height: 100%;
    position: relative;
}

/* Carrousel Bootstrap avec un seul slide - Figé */
.single-slide-bootstrap-carousel {
    /* Désactiver les effets de transition */
    transition: none !important;
}

.single-slide-bootstrap-carousel .carousel-item {
    /* Assurer que le slide unique est centré */
    text-align: center;
}

/* Responsive pour WoE */
@media (max-width: 768px) {
    .guild-characters-row {
        gap: 10px;
    }
    
    .character-placeholder {
        width: 60px;
        height: 60px;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.owl-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.owl-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.owl-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem 0;
}

.owl-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.owl-slide-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.owl-slide-btn {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.owl-slide-btn .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.owl-slide-btn .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.owl-slide-btn .btn-primary:hover {
    background: var(--primary-100);
    border-color: var(--primary-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.owl-slide-btn .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.owl-slide-btn .btn-outline-light:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-2px);
}

/* Owl Carousel Navigation */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.owl-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50%;
    color: var(--dark) !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.owl-nav button:hover {
    background: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.owl-prev {
    left: 30px;
}

.owl-next {
    right: 30px;
}

/* Owl Carousel Dots */
.owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.owl-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.owl-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Animation classes for slide content */
.owl-slide-animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.owl-slide.active .owl-slide-animated {
    opacity: 1;
    transform: translateY(0);
}

.owl-slide.active .owl-slide-title {
    transition-delay: 0.2s;
}

.owl-slide.active .owl-slide-subtitle {
    transition-delay: 0.4s;
}

.owl-slide.active .owl-slide-btn {
    transition-delay: 0.6s;
}

/* HARO Carousel Button Styles */
.owl-carousel .btn-modern {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.owl-carousel .btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.owl-carousel .btn-modern:hover::before {
    left: 100%;
}

.owl-carousel .btn-primary.btn-modern {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.owl-carousel .btn-primary.btn-modern:hover {
    background: var(--primary-100);
    border-color: var(--primary-100);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.owl-carousel .btn-outline-light.btn-modern {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.owl-carousel .btn-outline-light.btn-modern:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* HARO Specific Text Enhancements */
.owl-carousel .text-color-light {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.owl-carousel .porto-big-title {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider,
    .owl-slide {
        height: 500px;
    }
    
    .owl-slide-title {
        font-size: 2.5rem;
    }
    
    .owl-slide-subtitle {
        font-size: 1.1rem;
    }
    
    .owl-slide-btn {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .owl-prev {
        left: 15px;
    }
    
    .owl-next {
        right: 15px;
    }
    
    .owl-carousel .btn-modern {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .hero-slider,
    .owl-slide {
        height: 400px;
    }
    
    .owl-slide-title {
        font-size: 2rem;
    }
    
    .owl-slide-subtitle {
        font-size: 1rem;
    }
    
    .owl-carousel .btn-modern {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

/* Bloc responsive avec image de fond et overlay dégradé */
.responsive-image-block {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.responsive-image-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.overlay-gradient {
    transition: opacity 0.3s ease;
}

.responsive-image-block:hover .overlay-gradient {
    opacity: 0.9;
}

/* Responsive pour le bloc */
@media (max-width: 991.98px) {
    .responsive-image-block {
        min-height: 250px !important;
    }
}

@media (max-width: 767.98px) {
    .responsive-image-block {
        min-height: 200px !important;
    }
    
    .responsive-image-block .p-4 {
        padding: 1rem !important;
    }
    
    .responsive-image-block h4 {
        font-size: 1.1rem;
    }
    
    .responsive-image-block p {
        font-size: 0.9rem;
    }
}

/* Styles pour le Cash Shop */
.nav-tabs-container {
    margin-bottom: 1.5rem;
}

/* Supprimer l'ombre et la bordure du conteneur tab-content */
#cashShopTabContent {
    border: none;
    box-shadow: none;
    background: none;
}

.nav-tabs-container .btn {
    transition: all 0.3s ease;
    min-width: 80px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tabs-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card {
    transition: all 0.3s ease;
    background-color: #ffffff;
    border: 1px solid #b5c6de;
    border-radius: 4px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background-color: #f7f7ff;
    border-bottom: 1px solid #b5c6de;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
}

.card-header .card-title {
    color: #394aa5;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    text-align: center;
    padding: 0.5rem 1rem 1rem 1rem;
}

.card-body .item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    margin: 1rem auto;
}

.card-body .item-icon .item-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.card-body .item-icon i {
    font-size: 1.5rem;
    color: #394aa5;
}

.card-body .price-badge {
    background-color: #7394d6;
    color: white;
    border-radius: 7px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    display: inline-block;
}

.border-purple {
    border-color: #6f42c1 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
}

/* Responsive pour les onglets */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Interface Cash Shop Style Ragnarok Online */
.cash-shop-interface {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-top: 20px;
}

/* Sidebar des catégories */
.cash-shop-sidebar {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.sidebar-header {
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sidebar-header h5 {
    color: #fff;
    font-weight: 600;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.3);
}

.category-item.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transform: translateX(5px);
}

.category-item span {
    font-weight: 500;
    margin-left: 8px;
}

.category-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Zone principale */
.cash-shop-main {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 20px;
    min-height: 500px;
}

.main-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.main-header h5 {
    color: #fff;
    font-weight: 600;
}

.cash-points-display {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Grille des objets */
.items-grid {
    display: grid;
    gap: 20px;
}

/* Cartes d'objets */
.item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: #3498db;
}

.item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover .item-image img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card:hover .item-overlay {
    opacity: 1;
}

.item-info {
    padding: 15px;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.item-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.price-amount {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .cash-shop-interface {
        padding: 15px;
    }
    
    .cash-shop-sidebar {
        margin-bottom: 20px;
    }
    
    .cash-shop-content {
        margin-left: 0;
    }
    
    .cash-shop-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .cash-shop-tab {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cash-shop-interface {
        padding: 10px;
    }
    
    .main-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cash-points-display {
        align-self: center;
    }
    
    .item-image {
        height: 150px;
    }
    
    .item-info {
        padding: 12px;
    }
    
    .item-name {
        font-size: 0.9rem;
    }
    
    .item-description {
        font-size: 0.8rem;
    }
}

/* ===== STYLES POUR L'ATTENDANCE ===== */

/* Grille d'attendance */
.attendance-grid {
    margin: 0 auto;
    max-width: 1000px;
}

.attendance-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* Cards d'attendance avec bordures colorées selon le statut */
.attendance-reward-item {
    position: relative;
    text-align: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 160px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.attendance-reward-item.passed {
    border-color: #dc3545;
}

.attendance-reward-item.future {
    border-color: #6f42c1;
}

.attendance-reward-item.current {
    border-color: #007bff;
    animation: breathing 4s ease-in-out infinite;
}

/* Animation de respiration pour les cards récupérables */
@keyframes breathing {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.3);
    }
    5% {
        box-shadow: 0 0 1.5px 0.5px rgba(0, 123, 255, 0.29);
    }
    10% {
        box-shadow: 0 0 3px 1px rgba(0, 123, 255, 0.28);
    }
    15% {
        box-shadow: 0 0 4.5px 1.5px rgba(0, 123, 255, 0.27);
    }
    20% {
        box-shadow: 0 0 6px 2px rgba(0, 123, 255, 0.26);
    }
    25% {
        box-shadow: 0 0 7.5px 2.5px rgba(0, 123, 255, 0.25);
    }
    30% {
        box-shadow: 0 0 9px 3px rgba(0, 123, 255, 0.24);
    }
    35% {
        box-shadow: 0 0 10.5px 3.5px rgba(0, 123, 255, 0.23);
    }
    40% {
        box-shadow: 0 0 12px 4px rgba(0, 123, 255, 0.22);
    }
    45% {
        box-shadow: 0 0 13.5px 4.5px rgba(0, 123, 255, 0.21);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(0, 123, 255, 0.2);
    }
    55% {
        box-shadow: 0 0 13.5px 4.5px rgba(0, 123, 255, 0.21);
    }
    60% {
        box-shadow: 0 0 12px 4px rgba(0, 123, 255, 0.22);
    }
    65% {
        box-shadow: 0 0 10.5px 3.5px rgba(0, 123, 255, 0.23);
    }
    70% {
        box-shadow: 0 0 9px 3px rgba(0, 123, 255, 0.24);
    }
    75% {
        box-shadow: 0 0 7.5px 2.5px rgba(0, 123, 255, 0.25);
    }
    80% {
        box-shadow: 0 0 6px 2px rgba(0, 123, 255, 0.26);
    }
    85% {
        box-shadow: 0 0 4.5px 1.5px rgba(0, 123, 255, 0.27);
    }
    90% {
        box-shadow: 0 0 3px 1px rgba(0, 123, 255, 0.28);
    }
    95% {
        box-shadow: 0 0 1.5px 0.5px rgba(0, 123, 255, 0.29);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.3);
    }
}

.attendance-reward-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/* Card de description du système sans effets */
.attendance-description-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.attendance-description-card:hover {
    transform: none;
    box-shadow: none;
}

/* Card de description des quêtes de Hats sans effets */
.hats-description-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.hats-description-card:hover {
    transform: none;
    box-shadow: none;
}

/* Cartes des NPCs de quête */
.quest-npc-card {
    display: flex;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.quest-npc-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.quest-npc-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 30px;
    min-width: 150px;
    position: relative;
}

.quest-indicator {
    position: absolute;
    top: -30px;
    left: 30%;
    transform: translateX(-50%);
    z-index: 10;
}

.quest-gif {
    border-radius: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

.npc-sprite {
    margin-bottom: 10px;
}

.npc-image {
    image-rendering: pixelated;
    border-radius: 4px;
}

.npc-name {
    text-align: center;
}

.npc-name h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.quest-npc-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quest-title {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 8px;
}

.quest-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.required-items h6 {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
}

.items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.item-requirement {
    display: inline-block;
    cursor: pointer;
}

.item-icon-container {
    width: 42px;
    height: 42px;
    background: #f3f3f3;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

.item-quantity {
    position: absolute;
    bottom: 1px;
    right: 1px;
    font-size: 0.6rem;
    color: #007bff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    padding: 0px 2px;
    border-radius: 1px;
    line-height: 1;
}

/* Responsive pour les cartes NPC */
@media (max-width: 768px) {
    .quest-npc-card {
        flex-direction: column;
        text-align: center;
    }
    
    .quest-npc-left {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .items-list {
        justify-content: center;
    }
    
    .item-requirement {
        min-width: 120px;
    }
}

/* Cartes du staff personnalisées */
.staff-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.staff-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.staff-image {
    margin-bottom: 15px;
}

.staff-photo {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6c757d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.staff-info {
    padding: 0 10px;
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.staff-role {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.staff-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    color: #007bff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.social-link i {
    font-size: 1rem;
}

/* Responsive pour les cartes staff */
@media (max-width: 768px) {
    .staff-card {
        margin-bottom: 20px;
    }
    
    .staff-photo {
        width: 100px;
        height: 100px;
    }
}

/* Centrage des cartes staff */
.row .col-lg-3:only-child {
    margin: 0 auto;
}

.row .col-lg-3:only-child .staff-card {
    margin-left: auto;
    margin-right: auto;
}

/* Centrage des éléments dans les cartes */
.staff-info {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Card de description du staff sans effets */
.staff-description-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.staff-description-card:hover {
    transform: none;
    box-shadow: none;
}

/* Texte de remerciements */
.thanks-text {
    text-align: center;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    margin: 30px 0;
}

.thanks-text p {
    margin-bottom: 15px;
}

.thanks-text p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #333;
}

/* Conteneur de l'icône avec tooltip */
.reward-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reward-icon-container.current {
    animation: pulse 2s infinite;
}

/* Animation de pulsation pour le jour actuel */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Positionnement du numéro du jour en haut de la card */
.reward-day-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    z-index: 2;
    white-space: nowrap;
}

/* Couleurs des badges selon le statut */
.attendance-reward-item.passed .reward-day-number {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.attendance-reward-item.future .reward-day-number {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.attendance-reward-item.current .reward-day-number {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Icône de l'objet intégrée dans l'anneau */
.reward-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #f3f3f3;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.reward-icon img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

.reward-icon.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Quantité dans le coin inférieur droit de l'icône */
.reward-amount {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #28a745;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    z-index: 2;
}

/* Nom de l'objet */
.reward-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.2;
}

/* Responsive pour l'attendance */
@media (max-width: 768px) {
    .attendance-row {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .attendance-reward-item {
        width: 140px;
        min-height: 120px;
        padding: 12px;
    }
    
    .reward-progress-ring {
        width: 70px;
        height: 70px;
    }
    
    .reward-day-number {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .reward-icon {
        width: 36px;
        height: 36px;
    }
    
    .reward-icon img {
        width: 20px;
        height: 20px;
    }
    
    .reward-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .attendance-row {
        gap: 10px;
    }
    
    .attendance-reward-item {
        width: 120px;
        padding: 10px;
    }
    
    .reward-day {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* ===================================
   PAGE D'INSCRIPTION
   =================================== */

/* Carte de description sans effets de survol */
.register-description-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.register-description-card:hover {
    transform: none;
    box-shadow: none;
}

/* Carte du formulaire sans effets de survol */
.register-form-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.register-form-card:hover {
    transform: none;
    box-shadow: none;
}

/* ===================================
   PAGE DE TÉLÉCHARGEMENT
   =================================== */

/* Carte de description */
.download-description-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.download-description-card:hover {
    transform: none;
    box-shadow: none;
}

/* Désactiver l'effet de survol sur les cartes de téléchargement */
.download-description-card .card:hover,
.download-description-card .card,
.download-description-card .card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Désactiver l'effet de survol sur la carte du formulaire de login */
.login-form-card:hover,
.login-form-card,
.login-form-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== STYLES POUR LES RÉSULTATS DE SONDAGE DANS LE COIN DE L'IMAGE ===== */

/* Conteneur principal des résultats dans le coin */
.poll-results-corner {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    max-width: 280px;
}

/* Overlay des résultats */
.poll-results-overlay {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge de statut */
.poll-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.poll-status-active {
    background: #28a745;
    color: white;
}

.poll-status-expired {
    background: #6c757d;
    color: white;
}

.poll-status-closed {
    background: #dc3545;
    color: white;
}

/* Option gagnante */
.poll-winner {
    margin-bottom: 8px;
}

.poll-winner-text {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
    color: #fff;
}

.poll-winner-percentage {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
}

.poll-winner-votes {
    font-size: 11px;
    color: #ccc;
}

/* Couleurs pour les options de sondage */
.poll-color-blue .poll-winner-percentage {
    color: #007bff; /* Bleu */
}

.poll-color-red .poll-winner-percentage {
    color: #dc3545; /* Rouge */
}

.poll-color-green .poll-winner-percentage {
    color: #28a745; /* Vert */
}

.poll-color-orange .poll-winner-percentage {
    color: #fd7e14; /* Orange */
}

.poll-color-purple .poll-winner-percentage {
    color: #6f42c1; /* Violet */
}

.poll-color-teal .poll-winner-percentage {
    color: #20c997; /* Turquoise */
}

.poll-color-default .poll-winner-percentage {
    color: #28a745; /* Vert par défaut */
}

/* Couleurs pour les barres de progression */
.progress-bar.poll-color-blue {
    background-color: #007bff !important; /* Bleu */
}

.progress-bar.poll-color-red {
    background-color: #dc3545 !important; /* Rouge */
}

.progress-bar.poll-color-green {
    background-color: #28a745 !important; /* Vert */
}

.progress-bar.poll-color-orange {
    background-color: #fd7e14 !important; /* Orange */
}

.progress-bar.poll-color-purple {
    background-color: #6f42c1 !important; /* Violet */
}

.progress-bar.poll-color-teal {
    background-color: #20c997 !important; /* Turquoise */
}

.progress-bar.poll-color-default {
    background-color: #28a745 !important; /* Vert par défaut */
}

/* Total des votes */
.poll-total-votes {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 8px;
    text-align: center;
}

/* Compte à rebours */
.poll-countdown {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 8px;
}

.poll-countdown-label {
    font-size: 10px;
    color: #ccc;
    text-align: center;
    margin-bottom: 4px;
}

.poll-countdown-timer {
    text-align: center;
    font-weight: bold;
    color: #ffc107;
}

.poll-countdown-days,
.poll-countdown-hours,
.poll-countdown-minutes {
    display: inline-block;
    min-width: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .poll-results-corner {
        bottom: 10px;
        right: 10px;
        max-width: 200px;
    }
    
    .poll-results-overlay {
        padding: 8px;
        font-size: 12px;
    }
    
    .poll-winner-text {
        font-size: 12px;
    }
    
    .poll-winner-percentage {
        font-size: 16px;
    }
}

/* ===== ICÔNE DE SONDAGE SUR LES APERÇUS ===== */

/* Icône de sondage sur l'image de news */
.poll-icon-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.poll-icon-overlay:hover {
    background: rgba(0, 123, 255, 1);
    /* Effet de survol supprimé - pas de changement de taille */
}

.poll-icon-overlay i {
    font-size: 16px;
    color: white;
}

/* Animation pulsante pour attirer l'attention */
.poll-icon-overlay {
    animation: pollPulse 2s infinite;
}

@keyframes pollPulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.6), 0 0 0 8px rgba(0, 123, 255, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }
}

/* Responsive pour l'icône */
@media (max-width: 768px) {
    .poll-icon-overlay {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .poll-icon-overlay i {
        font-size: 14px;
    }
}

/* Cartes de téléchargement */
.download-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.download-icon {
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.download-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Rend l'image blanche */
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.download-info .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Bouton de téléchargement */
.download-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
}

/* Configuration système */
.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.card-header h5 {
    color: #495057;
    font-weight: 600;
}

/* Liste des configurations */
.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled li i {
    width: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .download-card {
        margin-bottom: 1.5rem;
    }
    
    .download-icon {
        padding: 15px;
    }
    
    .download-icon i {
        font-size: 2.5rem;
    }
    
    .download-info {
        flex-direction: column;
        align-items: center;
    }
    
    .download-info .badge {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .download-card .card-body {
        padding: 1.5rem;
    }
    
    .download-btn {
        width: 100%;
        margin-top: 1rem;
    }
}




/* Ajustement position avatar harochargen - seulement pour les avatars harochargen */
.profile-image-inner-container img[src*="harochargen"] {
    object-position: center -25px;
}

/* Formulaire de profil */
.form-group.row {
    margin-bottom: 1.5rem;
}

.form-control-label {
    font-weight: 600;
    color: #495057;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Boutons */
.btn-modern {
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary.btn-modern {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-danger.btn-modern {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-image-outer-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-image-inner-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-image-button {
        width: 35px;
        height: 35px;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
    
    .form-group.row {
        flex-direction: column;
    }
    
    .form-group.row .col-lg-3,
    .form-group.row .col-lg-9 {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Guild member status styles - Maximum specificity with data attributes */
.guild-members-table tbody tr[data-online="1"] {
    background-color: #e7ffe7 !important;
}

.guild-members-table tbody tr[data-online="0"] {
    background-color: white !important;
}

/* Target individual cells for maximum override */
.guild-members-table tbody tr[data-online="1"] td {
    background-color: #e7ffe7 !important;
}

.guild-members-table tbody tr[data-online="0"] td {
    background-color: white !important;
}

/* Override any Bootstrap styles */
table.guild-members-table tbody tr[data-online="1"] {
    background-color: #e7ffe7 !important;
}

table.guild-members-table tbody tr[data-online="0"] {
    background-color: white !important;
}

/* Portrait effects for online/offline status */
.guild-members-table tbody tr[data-online="1"] .member-portrait {
    filter: none; /* Normal colors for online players */
}

.guild-members-table tbody tr[data-online="0"] .member-portrait {
    filter: grayscale(100%); /* Black and white for offline players */
    opacity: 0.7; /* Slightly faded for offline players */
}

/* Override Bootstrap table-hover for guild members */
.guild-members-table tbody tr.guild-member-online:hover {
    background-color: darkred !important;
}

.guild-members-table tbody tr.guild-member-offline:hover {
	background-color: #f8f9fa !important;
}

/* ===== STYLES POUR LES NEWS ===== */

/* Style pour l'effet lettrine avec avatar */
.article-content-with-avatar {
    position: relative;
}

.author-avatar-lettrine {
    float: left;
    margin: 0 20px 0 0;
    text-align: center;
    position: relative;
}

.avatar-lettrine {
    width: 125px;
    height: 125px;
    object-fit: none;
    overflow: hidden;
    border-radius: 4px;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    background-color: #f8f9fa;
}

/* Ajustement vertical spécifique pour l'avatar lettrine harochargen */
.avatar-lettrine[src*="harochargen"] {
    object-position: center -100px;
}

.article-content {
    text-align: justify;
    line-height: 1.7;
}

.article-content p:first-child {
    margin-top: 0;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .author-avatar-lettrine {
        float: none;
        margin: 0 0 20px 0;
        text-align: center;
    }
    
    .avatar-lettrine {
        width: 100px;
        height: 100px;
        border-radius: 4px;
        object-fit: none;
        overflow: hidden;
        background-color: #f8f9fa;
    }
    
    /* Ajustement vertical spécifique pour l'avatar lettrine harochargen sur mobile */
    .avatar-lettrine[src*="harochargen"] {
        object-position: center -80px;
    }
    
    /* Conteneur pour l'avatar lettrine du staff sur mobile */
    .staff-avatar-container {
        width: 100px;
        height: 100px;
    }
    
    .article-content {
        text-align: left;
    }
}

/* Style pour les avatars des commentaires */
.comment .img-thumbnail {
    width: 70px !important;
    height: 70px !important;
    margin-right: 4px !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.comment .avatar {
    width: 70px !important;
    height: 70px !important;
    object-fit: none;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Ajustement vertical spécifique pour les avatars harochargen */
.comment .avatar[src*="harochargen"] {
    object-position: center -80px;
}

/* Ajustement de la bulle de dialogue pour s'adapter à l'avatar plus grand */
.comment .comment-block {
    margin-left: 15px !important;
}

/* Ajustement spécifique pour les commentaires du staff */
.staff-comment .comment-block {
    margin-left: 20px !important;
}

.comment .comment-arrow {
    left: -10px !important;
    border-right-color: #f8f9fa !important;
}

/* Style pour les commentaires du staff */
.staff-comment .comment-block {
    background-color: #f6f1de !important;
}

.staff-comment .comment-arrow {
    border-right-color: #f6f1de !important;
}

/* Avatar du staff dans les commentaires - utilise la classe haro-avatar */
.staff-comment .haro-avatar {
    width: 80px;
    height: 98px;
    background-color: #3a3a3b;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.staff-comment .haro-avatar .avatar-container {
    width: 72px;
    height: 72px;
    overflow: hidden;
    margin: 4px 0 0 0;
    border: 1px solid #666666;
}

.staff-comment .haro-avatar .avatar-container img {
    object-fit: none;
    object-position: center;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0px !important;
}

.staff-comment .haro-avatar .haro-administrator {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Badge de visibilité des commentaires */
.comment-visibility-badge {
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-weight: 500;
}

.comment-visibility-badge.badge-warning {
	background-color: #ffc107;
	color: #000;
	border: 1px solid #ffc107;
}

/* Boutons d'administration des commentaires */
.comment-by .btn-xs {
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s ease;
}

.comment-by .btn-xs:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-by .btn-outline-info {
	color: #17a2b8;
	border-color: #17a2b8;
}

.comment-by .btn-outline-info:hover {
	background-color: #17a2b8;
	color: #fff;
}

.comment-by .btn-outline-primary {
	color: #007bff;
	border-color: #007bff;
}

.comment-by .btn-outline-primary:hover {
	background-color: #007bff;
	color: #fff;
}


/* Style pour les tags du staff (inspiré d'Ankama) */
.staff-tag {
    color: #666;
    font-size: 0.85em;
    margin-left: 5px;
}

.staff-tag .tag-user {
    color: #007bff;
    font-weight: 500;
}

/* Conteneur pour l'avatar lettrine du staff */
.staff-avatar-container {
    width: 125px;
    height: 150px; /* 125px + 25px pour le logo */
    border: 5px solid #3a3a3b;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    background: #3a3a3b;
    padding-bottom: 25px;
}

/* Conteneur interne pour l'avatar lettrine avec overflow hidden */
.staff-avatar-container .avatar-wrapper {
    width: 100%;
    height: 125px;
    overflow: hidden;
    border-radius: 0;
}

/* Zone de l'avatar lettrine */
.staff-avatar-container .avatar-lettrine {
    width: 100%;
    height: 100%;
    object-fit: none;
    border: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

/* Logo du staff dans la bordure de l'avatar lettrine */
.staff-avatar-container::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-25%) translateY(25%);
    width: 15px;
    height: 15px;
    background: url(../img/ui/staff/haro.png) center center no-repeat;
    background-size: 15px 15px;
    z-index: 10;
}


/* ===== STYLES POUR LA SÉLECTION DE PERSONNAGE PRINCIPAL ===== */

.character-selection-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-selection-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

.character-selection-card .form-check-input:checked + .form-check-label .character-selection-card {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.character-preview {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.character-selection-card:hover .character-preview {
    border-color: #007bff;
    transform: scale(1.05);
}

.form-check-input:checked + .form-check-label .character-preview {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.character-name {
    margin-bottom: 0.25rem;
}

.character-info {
    font-size: 0.75rem;
    line-height: 1.2;
}

.character-info div {
    margin-bottom: 0.1rem;
}

/* ===== STYLES POUR LA SÉLECTION DE PERSONNAGE PRINCIPAL SUR LA PAGE CHARACTERS ===== */

.character-card-wrapper {
    position: relative;
}

.character-main-selection {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.character-main-selection .form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.character-main-selection .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.character-main-selection .form-check-label:hover {
    color: #007bff;
}

.character-main-selection .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.character-main-selection .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.character-main-selection .fa-star {
    margin-right: 0.25rem;
}

/* Test Avatar */

.haro-avatar
{
width: 80px;
height: 98px;
background-color: #3a3a3b;
border-radius: 0;
overflow: hidden;
display: flex;
align-items: center;
justify-content: flex-start;
flex-direction: column;
}

.haro-avatar .avatar-container
{
width: 72px;
height: 72px;
overflow: hidden;
background-color: transparent;
margin: 4px 0 0 0;
border: 1px solid #666666;
min-height: 72px;
min-width: 72px;
border-radius: 0;
}

.haro-avatar .avatar-container img
{
	object-fit: fit;
}

.haro-avatar .haro-administrator
{
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===== STYLES POUR LES CARTES DU STAFF ===== */

/* Grille du staff - même style que l'attendance */
.staff-grid {
    margin: 0 auto;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Cartes du staff - agrandies pour avatars 125x125px */
.staff-member-item {
    position: relative;
    text-align: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 200px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.staff-member-item.current {
    border-color: #007bff;
    animation: breathing 4s ease-in-out infinite;
}


/* Nom du staff - positionné comme reward-day-number */
.staff-name-header {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    z-index: 2;
    white-space: nowrap;
}

/* Avatar du staff - agrandi à 125x125px et centré */
.staff-avatar-icon {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #007bff;
    object-fit: cover;
    margin: 25px auto 15px;
    display: block;
}


.staff-avatar-placeholder {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 3px solid #007bff;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 25px auto 15px;
}

/* Rang du staff - même style que reward-name */
.staff-role-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.2;
}

/* Responsive pour les cartes du staff */
@media (max-width: 768px) {
    .staff-grid {
        gap: 15px;
    }
    
    .staff-member-item {
        width: 160px;
        min-height: 160px;
        padding: 15px;
    }
    
    .staff-name-header {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .staff-avatar-icon {
        width: 100px;
        height: 100px;
        margin: 20px auto 10px;
    }
    
    .staff-avatar-placeholder {
        width: 100px;
        height: 100px;
        margin: 20px auto 10px;
    }
    
    .staff-role-name {
        font-size: 0.8rem;
    }
}

/* ===== STYLES POUR LES OFFRES D'EMPLOI ===== */

/* Carte de description du recrutement sans effets */
.job-description-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.job-description-card:hover {
    transform: none;
    box-shadow: none;
}

/* Actions pour les cartes de quêtes (utilisées pour les offres d'emploi) */
.quest-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quest-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Badges plus grands pour les offres d'emploi */
.badge-lg {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Adaptation des cartes de quêtes pour les offres d'emploi */
.quest-npc-card[data-department] .npc-sprite img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Filtres des offres d'emploi */
.job-filters {
    margin: 20px 0;
}

.job-filters .btn {
    margin: 5px;
    transition: all 0.3s ease;
}

.job-filters .btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Modal des détails */
.job-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item strong {
    color: #495057;
    min-width: 100px;
}

.job-modal-content {
    padding: 20px 0;
}

.job-modal-content .section {
    margin-bottom: 30px;
}

.job-modal-content .section:last-child {
    margin-bottom: 0;
}

.job-modal-content .section h6 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-modal-content .section h6 i {
    font-size: 1.1rem;
}

.job-modal-content .content {
    color: #555;
    line-height: 1.7;
    padding-left: 20px;
}

/* Responsive pour les filtres d'emploi */
@media (max-width: 576px) {
    .job-filters {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .job-filters .btn {
        width: 200px;
    }
    
    .quest-actions {
        flex-direction: column;
    }
    
    .quest-actions .btn {
        min-width: auto;
    }
}

/* ===== STYLES POUR LA PAGE DES JOUEURS CONNECTÉS ===== */

/* Tableau des joueurs connectés */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

.table th {
    text-align: center;
}

.table td {
    vertical-align: middle;
    text-align: center;
}

.table td:first-child {
    text-align: center;
}

.table td:nth-child(2) {
    text-align: left;
}

.table td:nth-child(6) {
    text-align: left;
}

/*War of Emperium styling */

.owning-guild-container
{
	width: 100%;
	height: 282px;
	background:url('../img/ui/woe-separator.png');
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	margin-bottom: 4pt;
}

.owning-guild-widget
{
	width: 100%;
	height: 48px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: row;
}

.owning-guild-emblem-container
{
	width: 48px;
	height: 48px;
	background-color: #ffffff;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.characters-display
{
	width: 100%;
	height: 143px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	margin-top: -2px;
}

.characters-display .guildmaster-character
{
	width: 80px;
	height: 80px;
	object-fit: none;
}
