/* 
 * Styles pour le frontend - Thème Echelette
 * corvee-inscriptions/assets/css/public.css
 */


/* Wrapper principal */
.corvees-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

.corvees-title {
    margin: 0 0 20px 0;
    padding: 0;
    text-decoration: none !important;
    border: none !important;
    font-weight: normal;
}

/* Messages */
.corvees-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.corvees-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.corvees-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Formulaire */
.corvees-form {
    margin-bottom: 30px;
}

.corvees-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.corvees-form-group {
    margin-bottom: 15px;
}

.corvees-label {
    display: block;
    margin-bottom: 5px;
    //font-weight: normal;
    font-weight: 600;
}

.required {
    color: #d32f2f;
    font-weight: bold;
}

.corvees-input,
.corvees-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
}

.corvees-textarea {
    resize: vertical;
}

/* Boutons radio */
.corvees-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.corvees-radio-label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
}

.corvees-radio-label input[type="radio"] {
    margin: 0 10px 0 0;
    cursor: pointer;
}

.corvees-radio-text {
    font-size: 14px;
}

/* Bouton d'envoi - style simple */
.corvees-submit-wrapper {
    margin-top: 20px;
}

.corvees-button {
    //padding: 10px 30px;
    font-size: 14px;
    //background: #4a90e2;
    //color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 20em;
    height: 2em;
}


.corvees-button:hover {
    //background: #357ab8;
}

/* Lien "Inscriptions" - simple texte */
.corvees-link-wrapper {
    margin: 30px 0 20px 0;
}

.corvees-link-simple {
    color: #000;
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
}

.corvees-link-simple:hover {
    text-decoration: underline;
}

/* Section liste */
.corvees-list-section {
    margin-top: 20px;
}

.corvees-list-section h3 {
    font-size: 1.3em;
    margin: 30px 0 20px 0;
    font-weight: normal;
}

/* Tableau des inscriptions */
.corvees-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.corvees-list-table thead tr {
    background: #808080;
    color: white;
}

.corvees-list-table th {
    padding: 10px;
    text-align: center;
    font-weight: 800;
    color: white;
}

.corvees-list-table th.col-nom {
    text-align: center;
    width: 15%;
    font-weight: 800;;
}

.corvees-list-table th.col-option {
    text-align: center;
    width: 15%;
    font-size: 14px;
    font-weight: 800;
}

.corvees-list-table th.col-date {
    width: 15%;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}


.corvees-list-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.corvees-list-table tbody tr:hover {
    background: #f9f9f9;
}

.corvees-list-table td {
    padding: 10px;
}

.corvees-list-table td.col-option {
    text-align: center;
}

.corvees-list-table td.col-option img {
    width: auto;
    height: 25px;
    vertical-align: middle;
}

.corvees-list-table td.col-date {
    //font-size: 0.9em;
    font-size: 11px;
    color: #666;
}

/* Résumé sous le tableau */
.corvees-summary {
    margin: 15px 0;
    font-size: 14px;
    font-weight: 800;
}

/* Total des réponses */
.corvees-total {
    margin: 20px 0;
    font-size: 16px;
    font-weight: bold;
}

/* Section remarques */
.corvees-remarques {
    margin: 30px 0;
}

.corvees-remarques h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: normal;
}

.corvees-remarques-table {
    width: 100%;
    border-collapse: collapse;
}

.corvees-remarques-table td {
    padding: 8px 0;
    vertical-align: top;
}

.corvees-remarques-table td.rem-nom {
    width: 200px;
    padding-right: 15px;
    text-align: left !important;
}

.corvees-remarques-table td.rem-text {
    color: #333;
    text-align: left !important;
}

/* Lien statistiques */
.corvees-stats-link {
    margin: 30px 0;
}

.corvees-stats-link a {
    color: #4a90e2;
    text-decoration: none;
}

.corvees-stats-link a:hover {
    text-decoration: underline;
}

/* ================================================
   TOTAUX EN PIED DE TABLEAU (TFOOT)
   ================================================ */

/* Fond gris pour tout le pied de tableau */
.corvees-list-table tfoot {
    background-color: #B4B4B4;
}

/* Style général de la ligne des totaux */
.corvees-list-table tfoot tr.corvees-totals-row td {
    background-color: #B4B4B4;
    padding: 10px;
}

/* Colonne "Nom" vide à gauche */
.corvees-list-table tfoot tr.corvees-totals-row td.col-nom-summary {
    background-color: #B4B4B4;
}

/* Colonnes des totaux (8h, 9h, absent) */
.corvees-list-table tfoot tr.corvees-totals-row td.col-option-summary {
    background-color: #B4B4B4;
    text-align: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
}

/* Colonne "Date" vide à droite */
.corvees-list-table tfoot tr.corvees-totals-row td.col-date-summary {
    background-color: #B4B4B4;
}


/* Message aucune inscription */
.corvees-no-data {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .corvees-form-row {
        grid-template-columns: 1fr;
    }
    
    .corvees-list-table {
        font-size: 0.9em;
    }
    
    .corvees-list-table th,
    .corvees-list-table td {
        padding: 8px 5px;
    }
    
    .corvees-list-table th.col-option,
    .corvees-list-table td.col-option {
        width: auto;
    }
    
    .corvees-remarques-table td.rem-nom {
        width: auto;
        display: block;
        padding-bottom: 5px;
    }
    
    .corvees-remarques-table td.rem-text {
        display: block;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .corvees-list-table {
        font-size: 0.85em;
    }
    
    .corvees-list-table th,
    .corvees-list-table td {
        padding: 6px 3px;
    }
    
    .corvees-button {
        width: 100%;
    }
}