/**
 * FullEvents Core Styles
 * Version: 1.0.0
 * Author: @fullcodered powered by Grok
 */
/* Charger police Inter via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
    --fr-font: "Inter", system-ui, -apple-system, sans-serif;
    --fr-font-size: 13px;
    --fr-border-radius: 15px;
    --fr-dark-background: #1d2327;
    --fr-dark-color: #e0e0e0;
    --fr-dark-button: #444;
    --fr-dark-button-primary: #4d9950;
    --fr-dark-border: 1px solid #555;
    --fr-dark-log-header: #333;
    --fr-dark-log-hover: #444;
    --fr-light-background: #ffffff;
    --fr-light-color: #333333;
    --fr-light-button: #024983;
    --fr-light-border: 1px solid #ccc;
}
#wpwrap {
    background: var(--fr-dark-background);
}
#wpcontent {
    border-left: 1px solid #fff;
}
.fr-wrap {
    width: 97%;
    font-family: var(--fr-font);
    font-size: var(--fr-font-size);
    margin-top: 20px;
    border-radius: var(--fr-border-radius);
}
.fr-dark {
    background: var(--fr-dark-background);
    color: var(--fr-dark-color);
    padding: 20px;
}
.fr-light {
    background: var(--fr-light-background);
    color: var(--fr-light-color);
    padding: 20px;
}
.fr-container {
    width: 100%;
}
.fr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.fr-header h1 {
    font-size: 24px;
}
.fr-dark .fr-header h1 {
    color: var(--fr-dark-color);
}
.fr-light .fr-header h1 {
    color: var(--fr-light-color);
}
.fr-header-right {
    display: flex;
    gap: 20px;
}
.fr-table-body {
    width: 100%;
}
.fr-wrap button, .fr-wrap select, .fr-wrap a {
    padding: 2px 8px;
    border-radius: var(--fr-border-radius);
}
.fr-dark button, .fr-dark select, .fr-dark a {
    background: var(--fr-dark-button);
    color: var(--fr-dark-color);
    border: var(--fr-dark-border);
}
.fr-dark button:hover, .fr-dark a:hover {
    background: var(--fr-dark-color);
    color: var(--fr-dark-button);
}
.fr-dark .button-primary {
    background: var(--fr-dark-button-primary);
    color: var(--fr-dark-color);
    border: var(--fr-dark-border);
}
.fr-dark .button-primary:hover {
    background: #3b7a3d;
}
.fr-light button, .fr-light select, .fr-light a {
    background: var(--fr-light-background);
    color: var(--fr-light-color);
    border: var(--fr-light-border);
}
.fr-light button:hover, .fr-light a:hover {
    background: #f0f0f0;
}
.fr-light .fullevents-button {
    background: var(--fr-light-button);
    color: #fff;
}
.fr-light .fullevents-button:hover {
    background: #035a9b;
}
.fr-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: var(--fr-dark-border);
}
.fr-tab {
    padding: 10px 20px;
    cursor: pointer;
    background: var(--fr-dark-button);
    color: var(--fr-dark-color);
    border-radius: var(--fr-border-radius) var(--fr-border-radius) 0 0;
    transition: background 0.2s;
}
.fr-tab:hover {
    background: var(--fr-dark-log-hover);
}
.fr-tab-active {
    background: var(--fr-dark-log-header);
    color: var(--fr-dark-color);
    border-bottom: 2px solid #4d9950;
}
.fr-tab-content {
    display: none;
}
.fr-tab-content.active {
    display: block;
}
.fr-table {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
}
.fr-table-header, .fr-table-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.fr-table-header-cell, .fr-table-cell {
    flex: 1;
    padding: 8px;
    background: var(--fr-dark-background);
}
.fr-table-header-cell {
    background: var(--fr-dark-log-header);
    font-weight: 600;
}
.fr-table-row:hover .fr-table-cell {
    background: var(--fr-dark-log-hover);
}
.fr-table-cell .dashicons {
    cursor: pointer;
    font-size: 18px;
}
.fr-table-cell .dashicons-edit { color: #4d9950; }
.fr-table-cell .dashicons-admin-page { color: #0073aa; }
.fr-table-cell .dashicons-trash { color: #b32d2e; }
.fr-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: var(--fr-border-radius);
    z-index: 1000;
}
.fr-notice-success {
    background: #4d9950;
    color: #fff;
}
.fr-notice-error {
    background: #b32d2e;
    color: #fff;
}
.fr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.fr-modal
.fr-modal-content {
    background: var(--fr-dark-log-header);
    color: var(--fr-dark-color);
    margin: 3% auto;
    padding: 20px;
    border: var(--fr-dark-border);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: var(--fr-border-radius);
    overflow-y: auto;
}
.fr-light .fr-modal-content {
    background: var(--fr-light-background);
    color: var(--fr-light-color);
    border: var(--fr-light-border);
}
.fr-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
}
.fr-modal-close:hover {
    color: var(--fr-dark-color);
}
.fr-light .fr-modal-close:hover {
    color: var(--fr-light-color);
}
.fr-modal-content input, .fr-modal-content select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border-radius: var(--fr-border-radius);
}
.fr-dark .fr-modal-content input, .fr-dark .fr-modal-content select {
    border: var(--fr-dark-border);
    background: var(--fr-dark-background);
    color: var(--fr-dark-color);
}
.fr-light .fr-modal-content input, .fr-light .fr-modal-content select {
    border: var(--fr-light-border);
    background: var(--fr-light-background);
    color: var(--fr-light-color);
}
.fullevents-events, .fullevents-event, .fullevents-reservation {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    box-shadow: 0 5px 10px #848484;
    border-radius: var(--fr-border-radius);
}
.fullevents-reservation {
    margin: 40px 0;
    flex-direction: column;
    align-items: center;
}
.fullevents-event {
    background: var(--fr-light-background);
    border: 1px solid #e1e1e1;
    border-radius: var(--fr-border-radius);
}
.fullevents-event-image {
    max-width: 200px;
    border-radius: var(--fr-border-radius);
    margin-bottom: 10px;
}
.fullevents-instructors {
    margin-top: 20px;
}
.fullevents-instructor {
    margin-bottom: 15px;
}
.fullevents-instructor h4 {
    margin: 0 0 10px;
    font-size: 16px;
}
.fullevents-instructor img {
    max-width: 100px;
    border-radius: var(--fr-border-radius);
    margin-top: 10px;
}
.fullevents-reservation-form, .fullevents-waitlist-form {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fullevents-reservation h1, .fullevents-recap h1 {
    margin: 0;
}
.fullevents-reservation h2 {
    text-align: center;
}
.fullevents-field {
    position: relative;
}
.fullevents-field label {
    font-size: 14px;
    font-weight: 500;
    padding: 0 5px;
    margin-bottom: 5px;
}
.fr-dark .fullevents-field label {
    color: var(--fr-dark-color);
    background: var(--fr-dark-background);
}
.fr-light .fullevents-field label {
    color: var(--fr-light-color);
    background: var(--fr-light-background);
    margin-bottom: 10px;
}
.fr-light .fullevents-field .fullevents-tariffs-grid .fullevents-tariff-card {
     padding: 10px;
}
.fullevents-field input, .fullevents-field select {
    width: 100%;
    padding: 8px;
    border-radius: var(--fr-border-radius);
}
.fr-dark .fullevents-field input, .fr-dark .fullevents-field select {
    border: var(--fr-dark-border);
    background: var(--fr-dark-background);
    color: var(--fr-dark-color);
}
.fr-light .fullevents-field input, .fr-light .fullevents-field select {
    border: var(--fr-light-border);
    background: var(--fr-light-background);
    color: var(--fr-light-color);
}
.fullevents-field textarea {
    width: 100%;
    padding: 8px;
    border-radius: var(--fr-border-radius);
    min-height: 100px;
}
.fr-dark .fullevents-field textarea {
    border: var(--fr-dark-border);
    background: var(--fr-dark-background);
    color: var(--fr-dark-color);
}
.fr-light .fullevents-field textarea {
    border: var(--fr-light-border);
    background: var(--fr-light-background);
    color: var(--fr-light-color);
}
.fullevents-button {
    background: var(--fr-light-button);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.fullevents-button:hover {
    background: #035a9b;
}
.fullevents-error {
    background: #b32d2e;
    padding: 10px;
    border: 1px solid #ffcccc;
    border-radius: var(--fr-border-radius);
    color: #ffebeb;
}
.fullevents-error ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}
.fullevents-payment-title {
    margin: 0px;
}
.fullevents-payment-title h2 {
    margin: 10px 0px;
}
.fullevents-payment-recap {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--fr-border-radius);
    width: 80%;
}
.fullevents-payment-recap p {
    margin: 5px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.day-field, .accommodation-field, .meal-field, .workshop-field, .contact-field {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.day-field input, .accommodation-field input, .meal-field input, .workshop-field input, .contact-field input, .contact-field select {
    flex: 1;
}
.contact-field .remove-field {
    flex-shrink: 0;
    padding: 5px 10px;
}
.fullevents-preview {
    margin-top: 15px;
    padding: 10px;
    background: var(--fr-dark-log-header);
    border-radius: var(--fr-border-radius);
}
.fullevents-preview ul {
    margin: 0;
    padding-left: 20px;
}
.fullevents-preview li {
    margin-bottom: 5px;
}
.fr-cgv-link, .fr-cgu-link {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}
.fr-cgv-link:hover, .fr-cgu-link:hover {
    color: #005a87;
}
.error {
    border: 1px solid #b32d2e !important;
}
.fullevents-ticket-price {
    padding: 8px;
    color: var(--fr-light-color);
}
.fullevents-reservation-message {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: var(--fr-border-radius);
}
.fullpay-transact-form {
    max-width: 100% !important;
    width: 100%;
    display: block !important;
    margin-top: 10px;
}
.fullevents-recap {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}
.fullevents-recap p {
    margin: 8px 0;
}
.fullevents-check {
    text-align: center;
    padding: 40px;
    font-size: 18px;
}
.valid { color: #4d9950; }
.invalid { color: #b32d2e; }
.fullevents-gender-count {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9em;
}
.fullevents-gender-count p {
    margin: 5px 0;
    color: #555;
}
.fullevents-gender-count strong {
    color: #333;
}
.fullevents-tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0px 0;
}

/* === BOUTON RADIO VISIBLE À GAUCHE DU TARIF === */
.fullevents-tariff-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.fullevents-tariff-card input[type="radio"] {
    position: static !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 4px 0 0 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

/* État sélectionné */
.fullevents-tariff-card input[type="radio"]:checked {
    accent-color: #007bff;
}

.fullevents-tariff-card input[type="radio"]:checked + .tariff-content {
    background: #f0f8ff;
}

.fullevents-tariff-card input[type="radio"]:checked ~ .tariff-content .tariff-name {
    color: #007bff;
    font-weight: 600;
}

.fullevents-tariff-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fullevents-tariff-card.sold-out {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.fullevents-tariff-card.sold-out input[type="radio"] {
    cursor: not-allowed;
}

.tariff-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.tariff-price {
    font-size: 1.4em;
    color: #0073aa;
    font-weight: bold;
    margin: 8px 0;
}

.tariff-deposit {
    font-size: 0.9em;
    color: #555;
    margin: 4px 0;
}

.tariff-places {
    font-size: 0.9em;
    color: #28a745;
    margin: 8px 0;
}

.tariff-places.sold-out-text {
    color: #dc3545;
    font-weight: bold;
}

.tariff-max {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
}

.fullevents-tariff-card.sold-out {
    opacity: 0.6;
    background: #f8f9fa;
    cursor: not-allowed;
}

.fullevents-tariff-card.sold-out:hover {
    border-color: #ddd;
    box-shadow: none;
}
.fullevents-back-button {
    display: none;
}
.fullevents-field-data {
    border: var(--fr-light-border);
    padding: 8px;
    border-radius: var(--fr-border-radius);    
}
.fullevents-field [type="radio"], .fullevents-field [type="checkbox"] {
    width: auto;
    margin-right: 5px;
}
.fr-cgv-link {
    color: var(--fr-light-button);
    text-decoration: none;
    border: none;
}
.fr-light .fr-cgv-link {
    border: none;
}
.fullevents-gender-count {
    display: none;
}
.stripe-payment-form button {
    color: #ffffff;
    background: var(--fr-light-button);
}
.stripe-payment-form button:hover {
    background: #035a9b;
}
.fullevents-stripe {
    width: 120px;
}
.fullevents-payment-form-container {
    text-align: center;
}
.fullevents-payment-form-container h3 {
    align-items: center;
    margin: 10px 0 0 0;
}
.fullevents-payment-return, .fullevents-payment-status {
    width: 100%;
    text-align: center;
}
#download-pdf, #download-pdf:hover {
    color: #ffffff;
    background: var(--fr-light-button);
    margin-top: 20px;
}
.tariff-places {
    display: none;
}
.fullevents-return {
    flex-direction: column;
    margin: 40px 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    box-shadow: 0 5px 10px #848484;
    border-radius: var(--fr-border-radius);
}
.fullevents-return h1 {
    margin: 0;
}
.fr-form-notice {
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fullevents-field input[type="number"] {
    -moz-appearance: textfield;
}
.fullevents-field input[type="number"]::-webkit-outer-spin-button,
.fullevents-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* === CARTE SÉLECTIONNÉE → ENTIÈRE === */
.fullevents-tariff-card.selected {
    background: #f0f8ff !important;
    border: 2px solid #007bff !important;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
    transition: all 0.2s ease;
}

.fullevents-tariff-card.selected .tariff-name,
.fullevents-tariff-card.selected .tariff-price {
    color: #007bff;
    font-weight: 600;
}

/* === FEEDBACK COMMUN === */
.field-feedback {
    color: #d63384;
    font-size: 0.9em;
    margin-top: 4px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* === RÉCAP STANDARDISÉ (tous les blocs alignés) === */
.fullevents-recap {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.6;
}
.fullevents-recap h3 {
    margin: 0 0 15px;
    color: #1d4ed8;
    font-size: 18px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}
.fullevents-recap .recap-grid {
    display: block;  /* Single colonne, pas de grid multi-cols */
    margin: 15px 0;
}
.fullevents-recap .recap-grid p {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;  /* Label à gauche, value à droite */
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;  /* Séparateur léger */
}
.fullevents-recap .recap-grid p:last-child {
    border-bottom: none;  /* Pas de ligne sur le dernier */
}
.fullevents-recap .recap-grid strong {
    color: #333;
    min-width: 140px;  /* Fixe la largeur des labels */
    font-weight: 600;
    text-align: left;
}
.fullevents-recap .recap-grid span {
    color: #555;
    text-align: right;
    flex: 1;
}
.fullevents-recap .total-line {
    grid-column: 1 / -1;
    background: #e9ecef;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-align: right;
}
.fullevents-recap .total-amount {
    color: #4d9950;
    font-size: 1.2em;
}
.fullevents-recap .options-list {
    grid-column: 1 / -1;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.fullevents-recap .options-list li {
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 4px 0;
    border-left: 3px solid #1d4ed8;
}
.fullevents-recap .pdf-actions {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
    gap: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.fullevents-recap .pdf-actions a {
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.fullevents-recap .pdf-actions a:hover {
    background: #3b7a3d;
}
.fullevents-recap .pdf-actions .invoice-btn {
    background: #024983;
}
.fullevents-recap .pdf-actions .invoice-btn:hover {
    background: #0d47a1;
}
.fullevents-recap .newsletter-note {
    grid-column: 1 / -1;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    color: #155724;
    font-size: 14px;
}

/* === VÉRIF QR / BILLET (aligné sur récap) === */
.fullevents-check {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.fullevents-check .qr-scanner {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}
.fullevents-check .qr-status {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
}
.fullevents-check .qr-status.valid {
    background: #d4edda;
    color: #155724;
}
.fullevents-check .qr-status.invalid {
    background: #f8d7da;
    color: #721c24;
}
.fullevents-check .recap-qr {
    margin-top: 20px;
}
.fullevents-check .pdf-actions {
    margin-top: 20px;
}
.fullevents-check input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}
.fullevents-check button {
    background: #4d9950;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}
.fullevents-check button:hover {
    background: #3b7a9d;
}
.fr-resa-header {
    text-align: center;
}
.fullevents-event-header {
    text-align: center;
    margin: 20px 0 0 0;
    border-radius: 12px;    
}
.fullevents-event-header h2 {
    margin: 10px 0;
}
.fullevents-reservation-form {
    margin: 5px 0 20px 0;
    padding: 15px;
    border-radius: 12px;    
    width: 80%;
}
.fullevents-recap {
    width: 80%;
}
#payment-recap .fullevents-recap {
    width:100%;
}
.fullevents-field-radio {
    margin-bottom: 0px !important;
}
.tariff-max{
    display: none;
}
.fullevents-full {
    text-align: center; 
    padding: 20px; 
    background: #fdf2f2; 
    border: 1px solid #f5c2c7; 
    border-radius: 12px;
    width: 60%;
}
.fullevents-check .fullevents-recap {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .fullevents-recap .recap-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .fullevents-recap .recap-grid p {
        justify-content: flex-start;
    }
    .fullevents-recap .pdf-actions {
        flex-direction: column;
        align-items: center;
    }
}


/* Responsive adjustments */
@media (max-width: 782px) {
    .fr-table-header, .fr-table-row {
        flex-direction: column;
    }
    .fr-table-header-cell, .fr-table-cell {
        flex: none;
        width: 100%;
    }
    .fr-table-header-cell {
        background: var(--fr-dark-log-header);
    }
    .fullevents-reservation-form, .fullevents-payment-recap, .fullevents-waitlist-form {
        width: 100%;
    }
    .fr-tabs {
        flex-direction: column;
    }
    .fr-tab {
        border-radius: var(--fr-border-radius);
        margin-bottom: 5px;
    }
    .contact-field {
        flex-direction: column;
        align-items: stretch;
    }
}