/* ==========================================================================
   GESTIONNAIRE DE FORMATIONS RTEC - STYLE COMPLET
   ========================================================================== */

/* Container principal */
.rtec-wrap {
    background: #e8faec;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    margin: 20px 0;
}

/* Section des filtres (Haut) */
.rtec-filter-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rtec-filter-section label {
    width: 150px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
}

.rtec-filter-section select {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 500px;
    height: 45px;
    font-size: 14px;
}

/* Tableau des participants */
.rtec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.rtec-table th {
    background-color: #f1f3f5;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
}

.rtec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.rtec-table tr:last-child td {
    border-bottom: none;
}

.rtec-table tr:hover {
    background-color: #f8f9fa;
}

/* Debug info (société) */
small {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
}

/* Zone de contrôle PDF (Bas) */
.rtec-pdf-controls {
    background: #f8f9fa;
    padding: 25px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Champ Titre sur toute la largeur */
.rtec-field {
    width: 100%;
}

.rtec-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
}

.rtec-full-input {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border: 1px solid #7e8993 !important; /* Couleur standard bordure WP */
    border-radius: 4px !important;
    box-shadow: none !important;
    margin-top: 5px !important;
}

/* Style au clic (Focus) pour les deux */
.rtec-full-input:focus {
    border-color: #2271b1 !important; /* Le bleu que l'on voit sur votre image */
    box-shadow: 0 0 0 1px #2271b1 !important;
    outline: none !important;
}

.rtec-input-wrapper label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Ligne des boutons */
.rtec-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.rtec-btn {
    flex: 1; /* Les deux boutons prennent 50% chacun */
    padding: 18px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: #ffffff;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

/* Couleurs spécifiques boutons */
.rtec-btn.presence {
    background-color: #0073aa; /* Bleu WP */
    box-shadow: 0 4px 0 #005a87;
}

.rtec-btn.convocations {
    background-color: #D3A51C; /* ocre */
    box-shadow: 0 4px 0 #1e7e34;
}

.rtec-btn.convocations_formateur {
    background-color: #a067e0; /* mauve */
    box-shadow: 0 4px 0 #1e7e34;
}

.rtec-btn.attestation {
    background-color: #28a745; /* Vert */
    box-shadow: 0 4px 0 #1e7e34;
}

.rtec-btn.email {
    background-color: #2196F3; /* Bleu */
    box-shadow: 0 4px 0 #1e7e34;
}

.rtec-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.rtec-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .rtec-buttons {
        flex-direction: column;
    }
    .rtec-filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .rtec-filter-section label {
        width: 100%;
    }
}

.gestiform-tabs { display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 2px solid #004a99; padding-bottom: 10px; }
.tab-btn { padding: 10px 20px; text-decoration: none; background: #eee; color: #333; border-radius: 5px 5px 0 0; font-weight: bold; }
.tab-btn.active { background: #004a99; color: white; }
.gestiform-table th:nth-child(2) { min-width: 115px; } /* Ta demande de +15px sur le prix */

