/* ============================================================
   BELOTE - Styles specifiques
   ============================================================ */

/* === Cartes à jouer (fond blanc pour transparence) === */
.card-img {
    background-color: white;
    border-radius: 5px;
}

/* === Bouton Sync (resynchroniser) === */
.sync-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #DAA520;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

.sync-btn:hover {
    background: rgba(218, 165, 32, 0.3);
    transform: rotate(180deg);
}

.sync-btn.syncing {
    animation: spin 1s linear infinite;
}

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

/* === Cacher le bouton Jouer (cartes jouées au clic direct) === */
#btn-play {
    display: none !important;
}

/* === Bouton retour lobby (fin de partie) === */
.btn-gold {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #B8860B 100%);
    color: #1a1a1a;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #DAA520;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    font-family: "Cinzel", serif;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFE135 0%, #FFD700 50%, #DAA520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(218, 165, 32, 0.6);
}

/* === Selecteur de mode de jeu === */
.game-mode-section {
    margin-bottom: 20px;
}

.game-mode-selector {
    display: flex;
    gap: 12px;
}

.game-mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(26, 77, 26, 0.3) 0%, rgba(20, 60, 20, 0.4) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FDF5E6;
}

.game-mode-btn:hover {
    background: linear-gradient(135deg, rgba(26, 77, 26, 0.5) 0%, rgba(20, 60, 20, 0.6) 100%);
    border-color: rgba(218, 165, 32, 0.5);
    transform: translateY(-2px);
}

.game-mode-btn.active {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.5) 0%, rgba(100, 50, 10, 0.6) 100%);
    border-color: #DAA520;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.mode-title {
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FDF5E6;
    margin-bottom: 4px;
}

.mode-desc {
    font-size: 0.75rem;
    color: rgba(253, 245, 230, 0.6);
}

/* === Indicateur d'atout === */
.trump-indicator {
    display: none !important; /* Masqué - on utilise taker-badge à la place */
}

.trump-label {
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    color: #FDF5E6;
}

.trump-suit {
    font-size: 1.8rem;
    font-weight: bold;
}

.trump-suit.hearts, .trump-suit.diamonds {
    color: #e74c3c;
}

.trump-suit.clubs, .trump-suit.spades {
    color: #FDF5E6;
}

.trump-taker {
    font-size: 0.8rem;
    color: #DAA520;
    margin-left: 8px;
    font-style: italic;
}

/* === Indicateur de contrat === */
.contract-indicator {
    position: fixed;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(26, 77, 26, 0.9);
    border: 1px solid rgba(218, 165, 32, 0.5);
    border-radius: 20px;
    z-index: 99;
}

.contract-label {
    font-size: 0.8rem;
    color: rgba(253, 245, 230, 0.7);
}

.contract-value {
    font-weight: bold;
    color: #DAA520;
}

.contract-coinche {
    font-weight: bold;
    color: #e74c3c;
    margin-left: 6px;
}

/* === Atout sur la table (simplifié) === */
.trump-on-table {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.trump-on-table.show {
    display: flex !important;
}

.trump-card-img {
    width: 117px;
    height: 164px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background-color: white;
}

.trump-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.trump-buttons.show {
    display: flex !important;
}

.btn-prendre {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
    border: 2px solid #2ecc71;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prendre:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    transform: scale(1.05);
}

.btn-passer {
    background: linear-gradient(135deg, #7f8c8d 0%, #5d6d7e 100%);
    color: white;
    border: 2px solid #95a5a6;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-passer:hover {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    transform: scale(1.05);
}

.trump-info {
    text-align: center;
    color: #DAA520;
    font-size: 0.9rem;
    margin-top: 8px;
}

.trump-info.show {
    display: block !important;
}

/* === Phase de prise (choix couleur 2ème tour + enchères) === */
#choose-trump-board, #bidding-board {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(100, 50, 10, 0.98) 100%);
    border: 2px solid #DAA520;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

#choose-trump-board.show, #bidding-board.show {
    display: flex !important;
}

.phase-title {
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    color: #DAA520;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.proposed-trump {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.proposed-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.proposed-card-img {
    width: 70px;
    height: 98px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.proposed-text {
    font-size: 0.9rem;
    color: #FDF5E6;
    font-weight: 500;
}

/* Réduire la taille du panneau de prise d'atout */
#take-trump-board.phase-controls,
#choose-trump-board.phase-controls {
    padding: 12px 20px;
    gap: 8px;
}

#take-trump-board .phase-title,
#choose-trump-board .phase-title {
    font-size: 1rem;
}

/* === Boutons prise/choix === */
.btn-take, .btn-pass-trump, .btn-pass-bid {
    padding: 8px 16px;
    margin: 4px;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-take {
    background: linear-gradient(135deg, #228B22 0%, #1a6b1a 100%);
    color: white;
}

.btn-take:hover {
    background: linear-gradient(135deg, #2ca02c 0%, #228B22 100%);
    transform: scale(1.05);
}

.btn-pass-trump, .btn-pass-bid {
    background: rgba(255, 255, 255, 0.1);
    color: #FDF5E6;
    border: 1px solid rgba(253, 245, 230, 0.3);
}

.btn-pass-trump:hover, .btn-pass-bid:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === Choix atout === */
.trump-choices {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.trump-choice {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    border: 2px solid rgba(253, 245, 230, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.trump-choice:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: #DAA520;
    transform: scale(1.1);
}

.trump-choice:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.trump-choice.hearts, .trump-choice.diamonds {
    color: #e74c3c;
}

.trump-choice.clubs, .trump-choice.spades {
    color: #FDF5E6;
}

/* === Encheres === */
.current-bid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.bid-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #DAA520;
}

.bid-suit {
    font-size: 1.5rem;
}

.bid-player {
    font-size: 0.85rem;
    color: rgba(253, 245, 230, 0.7);
}

.bid-suit-select {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.suit-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border: 2px solid rgba(253, 245, 230, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.suit-btn.selected {
    border-color: #DAA520;
    background: rgba(218, 165, 32, 0.2);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.suit-btn.hearts, .suit-btn.diamonds {
    color: #e74c3c;
}

.suit-btn.clubs, .suit-btn.spades {
    color: #FDF5E6;
}

.bid-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.bid-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid rgba(253, 245, 230, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #FDF5E6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bid-btn:hover:not(:disabled) {
    background: rgba(218, 165, 32, 0.2);
    border-color: #DAA520;
}

.bid-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bid-btn.capot {
    background: linear-gradient(135deg, #8B0000 0%, #660000 100%);
    border-color: #8B0000;
}

.bid-btn.capot:hover:not(:disabled) {
    background: linear-gradient(135deg, #a00000 0%, #8B0000 100%);
}

/* === Boutons Coinche/Surcoinche === */
.btn-coinche, .btn-surcoinche {
    padding: 10px 20px;
    margin: 5px;
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-coinche {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-coinche:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-surcoinche {
    background: linear-gradient(135deg, #8B0000 0%, #660000 100%);
    color: white;
}

.btn-surcoinche:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

/* === Bouton Belote === */
.btn-belote {
    padding: 10px 20px;
    margin-left: 10px;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    font-weight: bold;
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    color: #2F1810;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-belote:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

/* === Cartes Belote === */
.belote-card {
    width: 70px;
    height: 100px;
    background: linear-gradient(135deg, #FDF5E6 0%, #F5DEB3 100%);
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.belote-card.selected {
    transform: translateY(-15px);
    border-color: #DAA520;
    box-shadow: 0 10px 25px rgba(218, 165, 32, 0.4);
}

.belote-card .card-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.belote-card .card-suit {
    font-size: 1.8rem;
}

.belote-card.played {
    cursor: default;
    margin: 0 5px;
}

/* === Status phase === */
.phase-status {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(253, 245, 230, 0.7);
}

/* === Phase Atout - Parole & Timer === */
.round-info {
    color: #DAA520;
    margin-bottom: 8px;
    font-weight: 500;
}

.passed-info {
    color: rgba(253, 245, 230, 0.6);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.parole-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 1rem;
}

.parole-info.my-turn {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3) 0%, rgba(139, 69, 19, 0.4) 100%);
    border: 2px solid #DAA520;
    animation: pulse-parole 1.5s ease-in-out infinite;
}

@keyframes pulse-parole {
    0%, 100% { box-shadow: 0 0 5px rgba(218, 165, 32, 0.3); }
    50% { box-shadow: 0 0 20px rgba(218, 165, 32, 0.6); }
}

.take-timer {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FDF5E6;
    transition: all 0.3s ease;
}

.take-timer.warning {
    background: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    animation: pulse-warning 0.5s ease-in-out infinite;
}

.take-timer.expired {
    background: rgba(231, 76, 60, 0.6);
    color: white;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === Badge "La Parole" près des joueurs === */
.parole-badge {
    position: absolute;
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    color: #1a0f00;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.5), 0 0 20px rgba(218, 165, 32, 0.3);
    animation: pulse-parole-badge 1.2s ease-in-out infinite;
    z-index: 100;
    white-space: nowrap;
}

.parole-badge.my-turn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5), 0 0 25px rgba(231, 76, 60, 0.4);
    animation: pulse-parole-my-turn 0.8s ease-in-out infinite;
}

@keyframes pulse-parole-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(218, 165, 32, 0.5), 0 0 20px rgba(218, 165, 32, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(218, 165, 32, 0.7), 0 0 30px rgba(218, 165, 32, 0.5);
    }
}

@keyframes pulse-parole-my-turn {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5), 0 0 25px rgba(231, 76, 60, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.8), 0 0 40px rgba(231, 76, 60, 0.6);
    }
}

/* Position du badge selon le siège */
#seat-0 .parole-badge { bottom: -30px; left: 50%; transform: translateX(-50%); }
#seat-1 .parole-badge { top: 50%; right: -10px; transform: translateY(-50%) translateX(100%); }
#seat-2 .parole-badge { top: -30px; left: 50%; transform: translateX(-50%); }
#seat-3 .parole-badge { top: 50%; left: -10px; transform: translateY(-50%) translateX(-100%); }

/* === Indicateur Preneur d'Atout === */
.taker-badge {
    position: absolute;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(100, 50, 10, 0.98) 100%);
    color: #FDF5E6;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(218, 165, 32, 0.3);
    z-index: 150;
    white-space: nowrap;
    border: 2px solid #DAA520;
    font-family: "Cinzel", serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.taker-badge .trump-mini-card {
    background: linear-gradient(135deg, #FFFEF0 0%, #F5F0DC 100%);
    border: 1px solid #8B4513;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.taker-badge .trump-mini-card.red { color: #c0392b; }
.taker-badge .trump-mini-card.black { color: #1a1a1a; }

.taker-badge .trump-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Positionnement vers l'extérieur de l'avatar */
#seat-0 .taker-badge { bottom: -45px; left: 50%; transform: translateX(-50%); }
#seat-1 .taker-badge { top: 50%; right: -95px; left: auto; transform: translateY(-50%); }
#seat-2 .taker-badge { top: -45px; left: 50%; transform: translateX(-50%); }
#seat-3 .taker-badge { top: 50%; left: -95px; transform: translateY(-50%); }

/* === Modal Annonces === */
.annonces-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.annonce-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.annonce-player {
    font-weight: 500;
    color: #FDF5E6;
}

.annonce-type {
    color: #DAA520;
    font-style: italic;
}

.annonce-points {
    font-weight: bold;
    color: #228B22;
}

.annonces-winner {
    margin-top: 16px;
    padding: 12px;
    background: rgba(218, 165, 32, 0.15);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    text-align: center;
    color: #DAA520;
    font-weight: 600;
}

/* === Round summary === */
.round-summary {
    padding: 16px;
}

.team-score {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-score strong {
    color: #228B22;
}

.bonus {
    margin-top: 12px;
    padding: 8px;
    background: rgba(218, 165, 32, 0.15);
    border-radius: 6px;
    color: #DAA520;
    text-align: center;
}

.contract-fail {
    margin-top: 12px;
    padding: 8px;
    background: rgba(231, 76, 60, 0.15);
    border-radius: 6px;
    color: #e74c3c;
    text-align: center;
    font-weight: bold;
}

/* === Phase Annonces === */
#annonces-board {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(100, 50, 10, 0.98) 100%);
    border: 2px solid #DAA520;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    min-width: 280px;
}

#annonces-board.show {
    display: flex !important;
    flex-direction: column;
}

.annonces-info {
    margin-bottom: 16px;
}

.annonces-declarer {
    font-size: 0.9rem;
    color: rgba(253, 245, 230, 0.8);
    margin-bottom: 12px;
}

.my-annonces-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.my-annonces-container p {
    color: #DAA520;
    font-weight: 600;
}

#my-annonces-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.annonce-item-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(253, 245, 230, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #FDF5E6;
}

.annonce-item-btn:hover:not(:disabled) {
    background: rgba(218, 165, 32, 0.2);
    border-color: #DAA520;
}

.annonce-item-btn.selected {
    background: rgba(218, 165, 32, 0.3);
    border-color: #DAA520;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.annonce-item-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.annonce-type-label {
    font-weight: 500;
}

.annonce-points-label {
    font-weight: bold;
    color: #228B22;
}

.btn-announce {
    padding: 12px 24px;
    margin: 8px;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    background: linear-gradient(135deg, #228B22 0%, #1a6b1a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-announce:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ca02c 0%, #228B22 100%);
    transform: scale(1.05);
}

.btn-announce:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-pass-annonce {
    padding: 12px 24px;
    margin: 8px;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #FDF5E6;
    border: 1px solid rgba(253, 245, 230, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pass-annonce:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.btn-pass-annonce:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#annonces-status {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(253, 245, 230, 0.7);
}

/* === Theme Bistrot Francais === */
body {
    background: linear-gradient(135deg, #1a4d1a 0%, #0d260d 100%);
}

.lobby-title {
    font-family: "Cinzel", serif;
    color: #DAA520;
    text-shadow: 0 2px 10px rgba(218, 165, 32, 0.3);
}

.lobby-subtitle {
    color: #FDF5E6;
}

/* ============================================================
   INDICATEUR DE CONNEXION
   ============================================================ */

.connection-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #FDF5E6;
    z-index: 9999;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connection-indicator.disconnected {
    background: rgba(180, 0, 0, 0.8);
}

.connection-indicator.reconnecting {
    background: rgba(180, 120, 0, 0.8);
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 6px #4CAF50;
    transition: all 0.3s ease;
}

.connection-indicator.disconnected .connection-dot {
    background: #f44336;
    box-shadow: 0 0 6px #f44336;
}

.connection-indicator.reconnecting .connection-dot {
    background: #ff9800;
    box-shadow: 0 0 6px #ff9800;
    animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.connection-text {
    font-weight: 500;
}

/* Overlay de reconnexion */
.connection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.connection-overlay.hidden {
    display: none;
}

.connection-modal {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 30px 50px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #DAA520;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.connection-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(218, 165, 32, 0.3);
    border-top-color: #DAA520;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.connection-status {
    color: #FDF5E6;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .connection-indicator {
        top: 5px;
        right: 5px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .connection-dot {
        width: 6px;
        height: 6px;
    }
}


/* ============================================================
   RESPONSIVE LAPTOP - Nombre d'Or (ratio 1:1.618)
   ============================================================ */

/* Laptops 1440px et moins */
@media (max-width: 1440px) {
    .card {
        width: 90px;
        height: 146px; /* 90 × 1.618 = 145.6 */
        margin-left: -36px;
    }
    .card.played {
        width: 90px;
        height: 126px;
    }
    .trump-card-img {
        width: 100px;
        height: 162px; /* nombre d'or */
    }
    .hand-container {
        padding: 12px 10px 6px;
    }
    .player-hand-zone {
        padding: 10px 0 12px;
    }
}

/* Laptops 1366×768 (très courant) */
@media (max-width: 1366px) {
    .card {
        width: 80px;
        height: 129px; /* 80 × 1.618 = 129.4 */
        margin-left: -32px;
    }
    .card.played {
        width: 80px;
        height: 112px;
    }
    .card:hover {
        transform: translateY(-8px);
    }
    .card.selected {
        transform: translateY(-18px);
    }
    .trump-card-img {
        width: 90px;
        height: 146px;
    }
    .played-cards {
        min-height: 140px;
    }
    .player-seat .avatar {
        width: 50px;
        height: 50px;
    }
    .player-seat .player-name {
        font-size: 0.75rem;
    }
}

/* Laptops 1280px et moins */
@media (max-width: 1280px) {
    .card {
        width: 70px;
        height: 113px; /* 70 × 1.618 = 113.3 */
        margin-left: -28px;
    }
    .card.played {
        width: 70px;
        height: 98px;
    }
    .card:hover {
        transform: translateY(-6px);
    }
    .card.selected {
        transform: translateY(-14px);
    }
    .trump-card-img {
        width: 80px;
        height: 129px;
    }
    .played-cards {
        min-height: 120px;
    }
    .player-seat .avatar {
        width: 45px;
        height: 45px;
    }
    .player-seat .player-name {
        font-size: 0.7rem;
    }
    .hand-container {
        padding: 8px 8px 4px;
    }
}

/* Écrans peu hauts (768px hauteur) */
@media (max-height: 768px) {
    .card {
        width: 75px;
        height: 121px; /* 75 × 1.618 */
        margin-left: -30px;
    }
    .card.played {
        width: 75px;
        height: 105px;
    }
    .player-hand-zone {
        padding: 8px 0 10px;
    }
    .hand-container {
        padding: 8px 8px 4px;
    }
    .played-cards {
        min-height: 115px;
    }
    .trump-card-img {
        width: 85px;
        height: 137px;
    }
}

/* Combinaison petite largeur ET petite hauteur (1366×768) */
@media (max-width: 1366px) and (max-height: 768px) {
    .card {
        width: 68px;
        height: 110px; /* 68 × 1.618 = 110 */
        margin-left: -27px;
    }
    .card.played {
        width: 68px;
        height: 95px;
    }
    .card:hover {
        transform: translateY(-5px);
    }
    .card.selected {
        transform: translateY(-12px);
    }
    .trump-card-img {
        width: 75px;
        height: 121px;
    }
    .played-cards {
        min-height: 105px;
    }
    .player-seat .avatar {
        width: 42px;
        height: 42px;
    }
    .player-seat .player-name {
        font-size: 0.65rem;
    }
    .game-header {
        padding: 6px 12px;
    }
}

