@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

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

html, body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #E1DCEF;
    background-image: url('../images/Tapisserie.png');
    background-repeat: repeat;
    background-size: auto;
    color: #7172C5;
    min-height: 100vh;
    line-height: 1.6;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.site-header {
    position: relative;
    width: 100%;
    margin-bottom: -100px;
    z-index: 100;
}

.header-flowers {
    width: 100%;
    height: 150px;
    background-image: url('../images/FleursBG.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center top;
    line-height: 0;
}

.header-flowers img {
    display: none;
}

.header-content {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 110;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.burger-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.burger-button:hover {
    transform: scale(1.1);
}

.logo-silhouette {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    border: 3px solid #7172C5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(113, 114, 197, 0.3);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-silhouette {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(113, 114, 197, 0.4);
}

.logo-silhouette img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Modern Burger Button */
.burger-button-modern {
    background: white;
    border: 2px solid #7172C5;
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(113, 114, 197, 0.3);
    transition: all 0.3s ease;
}

.burger-button-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(113, 114, 197, 0.4);
}

.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 25px;
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #7172C5;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-button-modern:hover .burger-icon span:nth-child(1) {
    transform: translateX(-3px);
}

.burger-button-modern:hover .burger-icon span:nth-child(3) {
    transform: translateX(3px);
}

.burger-label {
    font-family: 'Times New Roman', serif;
    font-size: 0.75rem;
    color: #7172C5;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Modern Logo Button - Keep for backward compatibility but not used */
.logo-silhouette-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 70px;
    height: 80px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(113, 114, 197, 0.3);
    border: 2px solid #7172C5;
}

.logo-silhouette-modern img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.menu-text {
    font-family: 'Times New Roman', serif;
    font-size: 0.75rem;
    color: #7172C5;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Modern Menu Overlay */
.burger-menu-overlay-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    animation: fadeIn 0.3s ease;
}

/* Modern Burger Menu - Slide from right */
.burger-menu-modern {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #f9f6f0 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.burger-menu-modern.open {
    right: 0;
}

/* Modern Menu Header */
.menu-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    background: linear-gradient(135deg, #7172C5 0%, #9394D5 100%);
    border-bottom: 3px solid #5a5ab3;
}

.menu-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-silhouette-modern {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-silhouette-modern img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.menu-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: white;
    line-height: 1;
}

.brand-subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.close-menu-modern {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-menu-modern:hover {
    background: white;
    transform: rotate(90deg) scale(1.1);
}

.close-icon {
    font-size: 2rem;
    color: white;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-menu-modern:hover .close-icon {
    color: #7172C5;
}

/* Menu Divider */
.menu-divider {
    height: 3px;
    background: linear-gradient(to right, transparent, #7172C5, transparent);
    margin: 20px 0;
}

/* Modern Menu List */
.menu-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.menu-list-modern li {
    border-bottom: 1px solid rgba(113, 114, 197, 0.1);
}

.menu-item-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7172C5;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item-modern:hover::before {
    transform: scaleY(1);
}

.menu-item-modern:hover {
    background: rgba(113, 114, 197, 0.08);
    padding-left: 30px;
}

.menu-icon {
    font-size: 1.5rem;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #7172C5;
    flex: 1;
}

.menu-arrow {
    font-size: 1.2rem;
    color: #7172C5;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.menu-item-modern:hover .menu-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Modern Menu Footer */
.menu-footer-modern {
    padding: 25px 20px;
    background: rgba(113, 114, 197, 0.05);
    border-top: 2px solid rgba(113, 114, 197, 0.2);
    text-align: center;
}

.menu-ornament {
    font-size: 0.9rem;
    color: #7172C5;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.menu-quote {
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
    margin: 10px 0 5px 0;
}

.menu-signature {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: #7172C5;
    margin: 0;
}

/* General Styles */



.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section - Mobile First */
.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 3;
    position: relative;
    padding: 0 15px;
}

.hero-section .title-the {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    color: #7172C5;
    letter-spacing: 3px;
    display: block;
    margin-bottom: -5px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), -1px -1px 3px rgba(255, 255, 255, 0.9), 1px -1px 3px rgba(255, 255, 255, 0.9), -1px 1px 3px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 1), 0 0 15px rgba(255, 255, 255, 0.8);
}

.hero-section .main-title {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: #7172C5;
    font-style: italic;
    font-weight: normal;
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.95), -2px -2px 4px rgba(255, 255, 255, 0.95), 2px -2px 4px rgba(255, 255, 255, 0.95), -2px 2px 4px rgba(255, 255, 255, 0.95), 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.9);
}

/* Tablet */
@media (min-width: 768px) {
    .site-header {
        margin-bottom: -130px;
    }

    .header-flowers {
        height: 180px;
    }

    .hero-section {
        min-height: 220px;
        margin-top: 100px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-section .title-the {
        font-size: 1.3rem;
        letter-spacing: 4px;
    }

    .hero-section .main-title {
        font-size: 3.5rem;
    }

    .burger-menu {
        width: 320px;
        left: -320px;
    }

    .menu-list a {
        font-size: 1.3rem;
        padding: 25px 30px;
    }

        .menu-list a:hover {
            padding-left: 40px;
        }

    .tiles-container {
        gap: 40px;
    }

    .tile-image {
        width: 280px;
        height: 280px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .site-header {
        margin-bottom: -150px;
    }

    .header-flowers {
        height: 200px;
    }

    .hero-section {
        min-height: 250px;
        margin-top: 120px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-section .title-the {
        font-size: 1.8rem;
        letter-spacing: 6px;
        margin-bottom: -10px;
    }

    .hero-section .main-title {
        font-size: 4rem;
    }

    .tiles-container {
        gap: 40px;
    }

    .tile-image {
        width: 280px;
        height: 280px;
    }
}

.title-section {
    text-align: center;
    margin: 20px 0 40px;
}

.title-the {
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    color: #7172C5;
    letter-spacing: 4px;
    display: block;
    margin-bottom: -10px;
}

.main-title {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    font-size: 4rem;
    color: #7172C5;
    font-style: italic;
    font-weight: normal;
    line-height: 1.1;
    margin: 0;
}

.tiles-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.nav-tile {
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .nav-tile:hover {
        transform: scale(1.05);
    }

.tile-frame {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chronicles-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.flower-divider {
    flex: 1;
    max-width: 200px;
    overflow: hidden;
}

    .flower-divider img {
        width: 100%;
        height: 60px;
        object-fit: cover;
        object-position: center;
    }

    .flower-divider.right img {
        transform: scaleX(-1);
    }

.section-title {
    text-align: center;
}

    .section-title h2 {
        font-family: 'Libre Baskerville', 'Times New Roman', serif;
        font-size: 2.5rem;
        color: #7172C5;
        font-style: italic;
        font-weight: normal;
        line-height: 1.1;
        margin: 0;
    }

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.article-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
}

.article-border {
    border: 2px solid #7172C5;
    border-style: dashed;
    padding: 20px;
    border-radius: 4px;
}

.article-content {
    position: relative;
}

.article-greeting {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    color: #333;
    margin: 0 0 10px 0;
}

.article-text {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    color: #333;
    font-style: italic;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 20px;
}

.signature {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: #7172C5;
    font-style: italic;
}

.family-name {
    font-family: 'Times New Roman', serif;
    font-size: 0.9rem;
    color: #7172C5;
    text-align: right;
    line-height: 1.2;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 80px;
}

    .page-title .title-mon,
    .page-title .title-the,
    .page-title .title-login {
        font-family: 'Times New Roman', serif;
        font-size: 1.2rem;
        color: #7172C5;
        letter-spacing: 4px;
        display: block;
    }

    .page-title h1 {
        font-family: 'Libre Baskerville', 'Times New Roman', serif;
        font-size: 3rem;
        color: #7172C5;
        font-style: italic;
        font-weight: normal;
        margin: 0;
    }

.ornament-frame {
    position: relative;
    width: 250px;
    height: 250px;
}

.ornament-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.silhouette-container,
.player-image-container,
.member-image-container,
.host-image-container,
.character-image-container,
.avatar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    z-index: 2;
    overflow: hidden;
}

.silhouette,
.player-image,
.member-image,
host-image,
.character-image,
.admin-avatar,
.mystery-silhouette,
.revealed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.validate-btn,
.details-btn,
.confirm-btn,
.publish-btn,
.logout-btn,
.reveal-btn,
.reveal-all-btn,
.delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px 40px;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 200px;
    transition: transform 0.2s ease;
}

    .validate-btn:hover:not(:disabled),
    .details-btn:hover:not(:disabled),
    .confirm-btn:hover:not(:disabled),
    .publish-btn:hover:not(:disabled) {
        transform: scale(1.05);
    }

    .validate-btn:disabled,
    .confirm-btn:disabled,
    .publish-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    color: #7172C5;
    font-style: italic;
}

.code-input,
.form-input,
.member-select,
.article-editor,
.score-input {
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #7172C5;
    border-radius: 8px;
    background: white;
    color: #333;
    font-family: 'Times New Roman', serif;
}

    .code-input:focus,
    .form-input:focus,
    .member-select:focus,
    .article-editor:focus,
    .score-input:focus {
        outline: none;
        border-color: #5a5ab3;
        box-shadow: 0 0 10px rgba(113, 114, 197, 0.3);
    }

.code-input {
    text-align: center;
    text-transform: uppercase;
}

.form-label,
.code-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: #7172C5;
    font-style: italic;
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.flower-line {
    flex: 1;
    max-width: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .flower-line img {
        width: 100%;
        height: auto;
        max-height: 50px;
        object-fit: contain;
        object-position: center;
    }

.section-divider h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: #7172C5;
    font-style: italic;
    font-weight: normal;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
}

/* Responsive pour section-divider */
@media (max-width: 768px) {
    .section-divider {
        gap: 15px;
    }
    
    .flower-line {
        max-width: 100px;
    }
    
    .flower-line img {
        max-height: 40px;
    }
    
    .section-divider h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .section-divider {
        gap: 10px;
    }
    
    .flower-line {
        max-width: 60px;
    }
    
    .flower-line img {
        max-height: 30px;
    }
    
    .section-divider h3 {
        font-size: 1.1rem;
    }
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var('--blazor-load-percentage-text', "Loading");
    }

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 30px;
}

.loading-lady-whistledown {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 50%;
    border: 4px solid #7172C5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.loading-silhouette {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.loading-text {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    font-size: 2rem;
    color: #7172C5;
    font-style: italic;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.95), -2px -2px 4px rgba(255, 255, 255, 0.95), 2px -2px 4px rgba(255, 255, 255, 0.95), -2px 2px 4px rgba(255, 255, 255, 0.95), 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(113, 114, 197, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(113, 114, 197, 0);
    }
}

code {
    color: #c02d76;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1zbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA9NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6ZTYwWjI2My41ODUgNjAuMDE4M0MyNjAuNzM3IDY2LjAxODMgMjU5LjQwMyA3Mi4yNjU4IDI1OS40NzMgNzMuNjI4NSA5Mi4xODMxIDI1OS43OTkgOS4yODM4NCAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzcyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

/* Modern Home Navigation Section - Tuiles originales */
.tiles-container-modern {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px auto 60px;
    max-width: 1200px;
    padding: 0 15px;
}

.nav-tile-large {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-tile-large:hover {
    transform: scale(1.08);
}

.tile-image-wrapper {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-image-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(113, 114, 197, 0.3));
    transition: filter 0.3s ease;
}

.nav-tile-large:hover .tile-image-large {
    filter: drop-shadow(0 8px 20px rgba(113, 114, 197, 0.5));
}

.tile-overlay {
    display: none;
}

.tile-title {
    display: none;
}

/* Articles avec fond papier */
.chronicles-section {
    margin: 60px auto;
    max-width: 900px;
    padding: 0 15px;
}

.newspaper-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.newspaper-article {
    background-image: url('../images/papier.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(113, 114, 197, 0.2);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(113, 114, 197, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.newspaper-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(113, 114, 197, 0.25);
}

.newspaper-article::before {
    content: none;
}

.newspaper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(113, 114, 197, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.newspaper-ornament {
    font-size: 0.9rem;
    color: #7172C5;
    letter-spacing: 3px;
}

.newspaper-date {
    font-family: 'Times New Roman', serif;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.newspaper-body {
    position: relative;
    padding-left: 0;
}

.initial-letter {
    float: left;
    font-size: 4rem;
    line-height: 3rem;
    font-family: 'Libre Baskerville', serif;
    font-weight: bold;
    color: #7172C5;
    margin: 5px 10px 0 0;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}

.newspaper-greeting {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.newspaper-content {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin: 0 0 20px 0;
    font-style: italic;
}

.newspaper-footer {
    border-top: 2px solid rgba(113, 114, 197, 0.2);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.signature-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.signature-line {
    width: 40px;
    height: 2px;
    background: #7172C5;
}

.signature-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #7172C5;
    font-weight: 600;
}

.article-family {
    font-family: 'Times New Roman', serif;
    font-size: 0.9rem;
    color: #7172C5;
    background: rgba(113, 114, 197, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(113, 114, 197, 0.2);
}

/* Loading and Empty States */
.loading-newspaper,
.empty-newspaper {
    background-image: url('../images/papier.png');
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(113, 114, 197, 0.2);
    border-radius: 8px;
    padding: 60px 30px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(113, 114, 197, 0.2);
    border-top-color: #7172C5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-newspaper p,
.empty-newspaper p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Modern Host Section */
.modern-host-section {
    max-width: 500px;
    margin: 40px auto 60px;
    padding: 0 10px;
}

.host-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(113, 114, 197, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: visible;
    border: 3px solid #7172C5;
    transition: all 0.3s ease;
}

.host-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 50px rgba(113, 114, 197, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.15);
}

.host-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    border: 2px solid white;
    white-space: nowrap;
}

.host-frame-wrapper {
    margin-bottom: 20px;
}

.host-image-large {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.host-image-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(113, 114, 197, 0.3);
}

.host-info-modern {
    margin-top: 20px;
}

.host-title-text {
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.host-name-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #7172C5;
    font-weight: 500;
}

/* Modern Characters Grid */
.families-container-modern {
    margin: 40px auto;
    max-width: 1400px;
}

.family-section-modern {
    margin-bottom: 60px;
}

.family-name-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #7172C5;
    font-weight: normal;
}

.characters-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 10px;
}

.character-card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 6px 20px rgba(113, 114, 197, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(113, 114, 197, 0.1);
}

.character-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(113, 114, 197, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.character-card-inner {
    padding: 25px;
    text-align: center;
}

.character-image-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.character-image-wrapper-large {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-image-large {
    width: 240px;
    height: 240px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border: 3px solid white;
}

.character-image-large:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(113, 114, 197, 0.3);
}

.mystery-silhouette-large {
    cursor: default !important;
}

.mystery-silhouette-large:hover {
    transform: none !important;
}

.character-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.character-info-modern {
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(113, 114, 197, 0.05) 0%, rgba(147, 148, 213, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(113, 114, 197, 0.1);
}

.character-title-text {
    font-family: 'Times New Roman', serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.character-name-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #7172C5;
    font-weight: 500;
    line-height: 1.3;
}

.mystery-name {
    font-size: 2rem;
    color: #999;
    letter-spacing: 8px;
}

.reveal-card-wrapper .ornament-frame {
    width: 200px;
    height: 200px;
}

/* Image Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

.image-modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid #7172C5;
    border-radius: 50%;
    font-size: 2rem;
    color: #7172C5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close-btn:hover {
    background: #7172C5;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .modern-host-section {
        padding: 0 15px;
    }
    
    .host-card-modern {
        padding: 35px 20px;
    }
    
    .host-badge {
        font-size: 0.7rem;
        padding: 6px 15px;
        letter-spacing: 0.5px;
    }
    
    .host-name-text {
        font-size: 1.5rem;
    }
    
    .host-image-large {
        width: 220px;
        height: 220px;
    }
    
    .characters-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        padding: 0 5px;
    }
    
    .character-card-inner {
        padding: 20px 15px;
    }
    
    .character-image-large {
        width: 200px;
        height: 200px;
    }
    
    .character-frame {
        width: 180px;
        height: 180px;
    }
    
    .reveal-card-wrapper .ornament-frame {
        width: 180px;
        height: 180px;
    }
    
    .host-card-modern {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .host-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
        top: -12px;
    }
    
    .characters-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .character-card-modern {
        max-width: 100%;
    }
    
    .character-image-large {
        width: 260px;
        height: 260px;
    }
    
    .host-image-large {
        width: 240px;
        height: 240px;
    }
    
    .character-frame {
        width: 220px;
        height: 220px;
    }
    
    .reveal-card-wrapper .ornament-frame {
        width: 220px;
        height: 220px;
    }
    
    .host-card-modern {
        padding: 30px 15px;
    }
}

/* Modern Ranking Section Styles */
.modern-ranking-section {
    margin: 40px auto 60px;
    padding: 0 15px;
    max-width: 900px;
}

.ranking-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-card {
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 6px 20px rgba(113, 114, 197, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    border: 2px solid rgba(113, 114, 197, 0.2);
}

.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 30px rgba(113, 114, 197, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.ranking-card.rank-first {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        rgba(255, 235, 100, 0.08) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    border: 3px solid #FFD700;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.ranking-card.rank-first:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.15);
}

.ranking-card.rank-second {
    background: linear-gradient(135deg, 
        rgba(192, 192, 192, 0.08) 0%, 
        rgba(220, 220, 220, 0.08) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid #C0C0C0;
}

.ranking-card.rank-third {
    background: linear-gradient(135deg, 
        rgba(205, 127, 50, 0.08) 0%, 
        rgba(225, 147, 70, 0.08) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid #CD7F32;
}

.crown-decoration {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.crown-decoration img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.ranking-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    gap: 15px;
}

.rank-badge {
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a4a9e;
    background: linear-gradient(135deg, rgba(113, 114, 197, 0.1) 0%, rgba(147, 148, 213, 0.1) 100%);
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid rgba(113, 114, 197, 0.25);
}

.ranking-card.rank-first .rank-number {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 235, 100, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: #b8860b;
}

.ranking-card.rank-second .rank-number {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(220, 220, 220, 0.15) 100%);
    border-color: rgba(192, 192, 192, 0.5);
    color: #666;
}

.ranking-card.rank-third .rank-number {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(225, 147, 70, 0.15) 100%);
    border-color: rgba(205, 127, 50, 0.5);
    color: #8b5a2b;
}

.family-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.family-label {
    font-family: 'Times New Roman', serif;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.family-name-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: #4a4a9e;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
}

.ranking-card.rank-first .family-name-text {
    color: #b8860b;
    font-size: 1.8rem;
}

.ranking-card.rank-second .family-name-text {
    color: #555;
}

.ranking-card.rank-third .family-name-text {
    color: #8b5a2b;
}

.points-badge {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(113, 114, 197, 0.08) 0%, rgba(147, 148, 213, 0.08) 100%);
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(113, 114, 197, 0.2);
    flex-shrink: 0;
}

.ranking-card.rank-first .points-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 235, 100, 0.12) 100%);
    border-color: rgba(255, 215, 0, 0.4);
}

.ranking-card.rank-second .points-badge {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.12) 0%, rgba(220, 220, 220, 0.12) 100%);
    border-color: rgba(192, 192, 192, 0.4);
}

.ranking-card.rank-third .points-badge {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.12) 0%, rgba(225, 147, 70, 0.12) 100%);
    border-color: rgba(205, 127, 50, 0.4);
}

.points-value {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #4a4a9e;
    line-height: 1;
}

.ranking-card.rank-first .points-value {
    color: #b8860b;
    font-size: 2.2rem;
}

.ranking-card.rank-second .points-value {
    color: #555;
}

.ranking-card.rank-third .points-value {
    color: #8b5a2b;
}

.points-label {
    font-family: 'Times New Roman', serif;
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* Responsive pour le classement */
@media (max-width: 768px) {
    .modern-ranking-section {
        padding: 0 10px;
    }
    
    .ranking-card-inner {
        padding: 20px 15px;
        gap: 12px;
    }
    
    .rank-badge {
        min-width: 60px;
    }
    
    .rank-number {
        font-size: 1.5rem;
        padding: 8px 12px;
    }
    
    .family-name-text {
        font-size: 1.3rem;
    }
    
    .ranking-card.rank-first .family-name-text {
        font-size: 1.5rem;
    }
    
    .family-label {
        font-size: 0.75rem;
    }
    
    .points-badge {
        min-width: 75px;
        padding: 10px 12px;
    }
    
    .points-value {
        font-size: 1.6rem;
    }
    
    .ranking-card.rank-first .points-value {
        font-size: 1.8rem;
    }
    
    .crown-decoration img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .modern-ranking-section {
        padding: 0 8px;
    }
    
    .ranking-card-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 12px;
        gap: 15px;
    }
    
    .rank-badge {
        width: 100%;
        min-width: unset;
    }
    
    .rank-number {
        display: inline-block;
        font-size: 1.8rem;
        padding: 10px 20px;
    }
    
    .family-info {
        width: 100%;
    }
    
    .family-label {
        font-size: 0.8rem;
    }
    
    .family-name-text {
        font-size: 1.5rem;
    }
    
    .ranking-card.rank-first .family-name-text {
        font-size: 1.7rem;
    }
    
    .points-badge {
        width: auto;
        min-width: 100px;
        padding: 12px 20px;
    }
    
    .points-value {
        font-size: 2rem;
    }
    
    .ranking-card.rank-first .points-value {
        font-size: 2.3rem;
    }
    
    .crown-decoration {
        top: -20px;
    }
    
    .crown-decoration img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 360px) {
    .ranking-card-inner {
        padding: 16px 10px;
    }
    
    .family-name-text {
        font-size: 1.3rem;
    }
    
    .ranking-card.rank-first .family-name-text {
        font-size: 1.5rem;
    }
    
    .points-value {
        font-size: 1.8rem;
    }
    
    .ranking-card.rank-first .points-value {
        font-size: 2rem;
    }
}

/* Modern Profile Section - Mon Espace */
.modern-profile-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.player-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(113, 114, 197, 0.15);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 2px solid rgba(113, 114, 197, 0.1);
}

.player-image-wrapper {
    position: relative;
}

.player-avatar {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(113, 114, 197, 0.3);
}

.player-details {
    text-align: center;
    width: 100%;
}

.player-title-small {
    font-family: 'Times New Roman', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.player-name-large {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #7172C5;
    margin: 0 0 15px 0;
}

.player-role-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(113, 114, 197, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(113, 114, 197, 0.1);
}

.role-label {
    font-family: 'Times New Roman', serif;
    color: #666;
    font-size: 0.95rem;
}

.role-value {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: #7172C5;
    font-size: 1rem;
}

.toggle-role-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
}

.toggle-role-btn:hover {
    transform: scale(1.2);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(113, 114, 197, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(113, 114, 197, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(113, 114, 197, 0.2);
}

.stat-card.stat-rank {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, white 100%);
}

.stat-card.stat-points {
    border-color: rgba(113, 114, 197, 0.3);
    background: linear-gradient(135deg, rgba(113, 114, 197, 0.05) 0%, white 100%);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(113, 114, 197, 0.1);
    border-radius: 12px;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: 'Times New Roman', serif;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #7172C5;
    line-height: 1;
}

/* Modern Card */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(113, 114, 197, 0.12);
    margin-bottom: 30px;
    border: 2px solid rgba(113, 114, 197, 0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #7172C5 0%, #9394D5 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: white;
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* Modern Select */
.modern-select {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    border: 2px solid rgba(113, 114, 197, 0.2);
    border-radius: 12px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.modern-select:focus {
    outline: none;
    border-color: #7172C5;
    box-shadow: 0 0 10px rgba(113, 114, 197, 0.2);
}

/* Modern Button */
.modern-btn {
    width: 100%;
    padding: 15px 30px;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-style: italic;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, #7172C5 0%, #9394D5 100%);
    box-shadow: 0 4px 12px rgba(113, 114, 197, 0.3);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 114, 197, 0.4);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Editor Wrapper */
.editor-wrapper {
    margin-bottom: 15px;
}

.modern-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    font-family: 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    border: 2px solid rgba(113, 114, 197, 0.2);
    border-radius: 12px;
    resize: vertical;
    background: rgba(113, 114, 197, 0.02);
    transition: all 0.3s ease;
}

.modern-textarea:focus {
    outline: none;
    border-color: #7172C5;
    background: white;
    box-shadow: 0 0 10px rgba(113, 114, 197, 0.15);
}

.char-counter {
    text-align: right;
    font-family: 'Times New Roman', serif;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

/* Cooldown Alert */
.cooldown-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 10px;
    color: #e65100;
    font-family: 'Times New Roman', serif;
    margin-bottom: 15px;
}

.alert-icon {
    font-size: 1.3rem;
}

/* Publish Footer */
.publish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.family-badge {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: #7172C5;
    padding: 8px 16px;
    background: rgba(113, 114, 197, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Logout Section */
.logout-section {
    text-align: center;
    margin-top: 40px;
}

.logout-btn {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(229, 57, 53, 0.9) 100%);
    color: white;
    max-width: 300px;
    margin: 0 auto;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 1) 0%, rgba(229, 57, 53, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Publication and Voting Cards */
.voting-card,
.publication-card {
    /* Same styles as .modern-card */
    margin-top: 40px;
}

/* Responsive */
@media (min-width: 768px) {
    .player-card-modern {
        flex-direction: row;
        text-align: left;
    }
    
    .player-details {
        text-align: left;
    }
    
    .player-role-toggle {
        justify-content: flex-start;
    }
    
    .player-avatar {
        width: 180px;
        height: 180px;
    }
    
    .publish-footer .modern-btn {
        width: auto;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .player-name-large {
        font-size: 1.5rem;
    }
    
    .publish-footer {
        flex-direction: column;
    }
    
    .family-badge {
        width: 100%;
        text-align: center;
    }
}

/* Modern Points Table Styles */
.modern-points-table {
    margin: 30px auto 60px;
    padding: 0 10px;
}

.table-scroll-container {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(113, 114, 197, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.points-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
}

    .points-table-modern thead tr {
        background: linear-gradient(135deg, #7172C5 0%, #9394D5 100%);
    }

    .points-table-modern th {
        padding: 20px 16px;
        text-align: center;
        font-family: 'Libre Baskerville', serif;
        font-size: 1.1rem;
        font-weight: 600;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 3px solid #5a5ab3;
    }

        .points-table-modern th.game-column {
            text-align: left;
            padding-left: 24px;
            font-size: 1.15rem;
        }

        .points-table-modern th:first-child {
            border-top-left-radius: 12px;
        }

        .points-table-modern th:last-child {
            border-top-right-radius: 12px;
        }

    .points-table-modern tbody tr {
        transition: all 0.3s ease;
        background: white;
    }

        .points-table-modern tbody tr:nth-child(even) {
            background: rgba(113, 114, 197, 0.03);
        }

        .points-table-modern tbody tr:hover {
            background: rgba(113, 114, 197, 0.08);
            transform: scale(1.01);
            box-shadow: 0 2px 8px rgba(113, 114, 197, 0.15);
        }

        .points-table-modern tbody tr.total-row {
            background: linear-gradient(135deg, rgba(113, 114, 197, 0.15) 0%, rgba(147, 148, 213, 0.15) 100%);
            font-weight: bold;
            border-top: 2px solid #7172C5;
            border-bottom: 2px solid #7172C5;
        }

            .points-table-modern tbody tr.total-row:hover {
                background: linear-gradient(135deg, rgba(113, 114, 197, 0.25) 0%, rgba(147, 148, 213, 0.25) 100%);
            }

        .points-table-modern tbody tr.whistledown-row {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 235, 100, 0.1) 100%);
            border-top: 1px dashed #7172C5;
        }

            .points-table-modern tbody tr.whistledown-row:hover {
                background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 235, 100, 0.2) 100%);
            }

    .points-table-modern td {
        padding: 18px 16px;
        text-align: center;
        font-family: 'Times New Roman', serif;
        font-size: 1.15rem;
        border-bottom: 1px solid rgba(113, 114, 197, 0.1);
    }

.game-name-cell {
    text-align: left;
    padding-left: 24px;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.score-cell {
    position: relative;
    font-weight: 600;
}

.score-value {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.positive-score .score-value {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(139, 195, 74, 0.15) 100%);
    color: #2e7d32;
    font-weight: bold;
}

.negative-score .score-value {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(239, 83, 80, 0.15) 100%);
    color: #c62828;
    font-weight: bold;
}

.points-table-modern tbody tr:hover .score-value {
    transform: scale(1.1);
}

.total-row .score-value {
    font-size: 1.35rem;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(113, 114, 197, 0.2) 0%, rgba(147, 148, 213, 0.2) 100%);
    color: #5a5ab3;
    font-weight: bold;
}

/* Responsive pour le tableau */
@media (max-width: 768px) {
    .table-scroll-container {
        padding: 15px;
        border-radius: 12px;
    }

    .points-table-modern th {
        padding: 16px 12px;
        font-size: 0.95rem;
    }

    .points-table-modern td {
        padding: 14px 10px;
        font-size: 1rem;
    }

    .score-value {
        padding: 6px 12px;
        font-size: 1.05rem;
    }

    .total-row .score-value {
        font-size: 1.2rem;
    }

    .game-name-cell {
        font-size: 1rem;
        padding-left: 16px;
    }
}

@media (max-width: 480px) {
    .modern-points-table {
        padding: 0 5px;
    }

    .table-scroll-container {
        padding: 10px;
    }

    .points-table-modern th {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .points-table-modern td {
        padding: 10px 6px;
        font-size: 0.9rem;
    }

    .score-value {
        padding: 4px 8px;
        font-size: 0.95rem;
    }
}
