﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}*/

/*.header {
    width: 100%;
    padding: 20px;
    text-align: center;
    background-color: white;
    box-shadow: var(--shadow);
}*/

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.subtitle {
    font-size: 14px;
    color: var(--text);
    margin-top: 5px;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin-top: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.campaign-info {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.thumbnails-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.thumbnail-card {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: grab;
    position: relative;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .thumbnail-card.dragging {
        cursor: grabbing;
        z-index: 10;
    }

.thumbnail {
    width: 100%;
    height: 168px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
}

.thumbnail-info {
    padding: 15px;
    background-color: white;
}

    .thumbnail-info h3 {
        font-size: 16px;
        margin-bottom: 5px;
        color: var(--secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .thumbnail-info p {
        font-size: 12px;
        color: var(--text);
    }

.swipe-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.swipe-right {
    right: -20px;
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.swipe-left {
    left: -20px;
    background-color: var(--comment-blue);
    color: white;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.comment-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--comment-blue);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: var(--shadow);
    z-index: 5;
    opacity: 0;
}

.instructions {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 14px;
    width: 100%;
}

.vote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 71, 87, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vote-confirmation {
    background-color: white;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.vote-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

    .vote-overlay.active .vote-confirmation {
        transform: scale(1);
    }

.comment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 152, 219, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.comment-confirmation {
    background-color: white;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 24px;
    font-weight: bold;
    color: var(--comment-blue);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.comment-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

    .comment-overlay.active .comment-confirmation {
        transform: scale(1);
    }

.comment-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .comment-dialog.active {
        opacity: 1;
        pointer-events: auto;
    }

.comment-form {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.comment-dialog.active .comment-form {
    transform: scale(1);
}

.comment-form h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--comment-blue);
    text-align: center;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: none;
    margin-bottom: 15px;
}

.comment-form-buttons {
    display: flex;
    justify-content: space-between;
}

    .comment-form-buttons button {
        padding: 10px 20px;
        border-radius: 8px;
        border: none;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

.cancel-button {
    background-color: #f1f2f6;
    color: var(--text);
}

    .cancel-button:hover {
        background-color: #dfe4ea;
    }

.confirm-button {
    background-color: var(--comment-blue);
    color: white;
}

    .confirm-button:hover {
        background-color: #2980b9;
    }

.loading {
    display: none;
    text-align: center;
    color: var(--text);
    padding: 20px;
}


.containerVoter {
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center; /* centre verticalement */
    align-items: center; /* centre verticalement */
    flex-wrap: wrap; /* permet le retour à la ligne si trop petit */
    height: 100vh; /* prend toute la hauteur de la fenêtre */
    gap: 1rem; /* espace entre les images */
}

    .containerImgVoterImg {
        max-width: 100%;
        height: auto;
        width: 200px; /* ou un % si tu préfères */
        object-fit: contain;
    }