/* ===========================
   Style global Kaddle
   =========================== */

.kaddle-single {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.kaddle-single h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #4a1f3f; /* Titre Kaddle */
}

.kaddle-image {
    margin: 1rem 0 2rem 0;
    text-align: center;
}

.kaddle-image img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.kaddle-content {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #444;
}

/* ===========================
   Bloc mot de passe
   =========================== */

.kaddle-password-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.kaddle-password-form p {
    margin-bottom: 0.8rem;
}

.kaddle-password-form input[type="password"] {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.kaddle-password-form button {
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: none;
    background: #b5326f;
    color: #fff;
    cursor: pointer;
}

.kaddle-password-form button:hover {
    background: #9c275d;
}

/* ===========================
   Bloc sondage
   =========================== */

.kaddle-poll {
    margin-top: 2rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.kaddle-poll h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #4a1f3f;
}

.kaddle-voter-name {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: #faf5f8;
    border-radius: 8px;
    border-left: 3px solid #b5326f;
}

.kaddle-voter-name-input {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===========================
   Tableau des dates
   =========================== */

.kaddle-poll-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.kaddle-poll-table thead tr {
    background: #f7eef4;
}

.kaddle-poll-table th,
.kaddle-poll-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.kaddle-poll-table th {
    text-align: left;
    font-weight: 600;
    color: #4a1f3f;
}

.kaddle-poll-table tr:nth-child(even) {
    background: #fcf9fb;
}

.kaddle-poll-table input[type="radio"] {
    transform: scale(1.1);
}

/* Récapitulatif Oui / Non */

.kaddle-summary {
    font-size: 0.9rem;
    color: #555;
}

.kaddle-summary-yes {
    font-weight: 600;
    color: #2e7d32; /* vert discret */
}

.kaddle-summary-no {
    font-weight: 600;
    color: #c62828; /* rouge discret */
}

/* ===========================
   Bouton de validation
   =========================== */

.kaddle-submit-wrapper {
    margin-top: 1rem;
    text-align: right;
}

.kaddle-submit-votes {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #b5326f, #e16a8f);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, opacity 0.2s;
}

.kaddle-submit-votes:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.kaddle-submit-votes:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.kaddle-submit-votes:disabled {
    opacity: 0.5;
    cursor: default;
}

.kaddle-submit-message {
    margin-top: 0.5rem;
}

/* ===========================
   Liste des Kaddles [kaddle_list]
   =========================== */

.kaddle-list {
    max-width: 900px;
    margin: 2rem auto;
}

.kaddle-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kaddle-list-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}

.kaddle-list-thumb img {
    border-radius: 8px;
}

.kaddle-list-excerpt {
    font-size: 0.95rem;
    color: #555;
}

.kaddle-list-item strong {
    font-size: 1.05rem;
    color: #4a1f3f;
}

.kaddle-protected-label {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: #b5326f;
}

/* Responsive */

@media (max-width: 640px) {
    .kaddle-single {
        padding: 1.2rem;
    }

    .kaddle-list-item {
        flex-direction: column;
    }

    .kaddle-poll-table th,
    .kaddle-poll-table td {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }

    .kaddle-submit-wrapper {
        text-align: center;
    }
}
