/* ============================================================
   Golf Event Registrations — Front-end styles
   Calqués sur le design CF7 existant du thème
   ============================================================ */

/* ---- Wrap principal ---- */
.gdf-inscription-wrap {
    max-width: 700px;
    margin: 0 auto;
}

/* ---- En-tête événement ---- */
.gdf-event-header {
    background: linear-gradient(135deg, var(--gdf-color-primary, #00563f) 0%, #004530 100%);
    border-radius: 8px 8px 0 0;
    padding: 1.5rem 2rem;
    margin-bottom: 0;
}

.gdf-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.gdf-event-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gdf-event-date {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.gdf-event-spots {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* ---- Titre formulaire ---- */
.gdf-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gdf-color-primary, #00563f);
    margin: 2rem 0 1.5rem 0;
}

/* ---- Messages ---- */
.gdf-form-message {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.gdf-form-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.gdf-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ---- Ligne double (Nom + Prénom) ---- */
.gdf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.gdf-field-row .gdf-field-wrap:first-child .field-with-label input {
    border-radius: 0 0 0 0 !important;
}

.gdf-field-row .gdf-field-wrap:last-child .field-with-label {
    margin-bottom: 15px;
}

.gdf-field-row .gdf-field-wrap:last-child .field-label {
    border-radius: 0 !important;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.gdf-field-row .gdf-field-wrap:last-child input {
    border-radius: 0 4px 4px 0 !important;
}

/* ---- Section scramble ---- */
.gdf-section-scramble {
    background: rgba(184, 147, 95, 0.08);
    border-left: 4px solid var(--gdf-color-secondary, #b8935f);
    border-radius: 0 6px 6px 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 25px;
}

.gdf-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gdf-color-secondary, #b8935f);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ---- Autocomplete partenaires ---- */
.gdf-partenaire-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.gdf-partenaire-row .field-with-label {
    flex: 1;
    margin-bottom: 0;
}

.gdf-autocomplete-wrap {
    flex: 1;
    position: relative;
}

.gdf-autocomplete-wrap input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 4px 4px 0 !important;
    border-left: none !important;
    min-height: 45px;
    margin-bottom: 0 !important;
    padding: 0.5rem 1rem !important;
}

.gdf-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(184,147,95,0.3);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.gdf-autocomplete-results.active {
    display: block;
}

.gdf-autocomplete-item {
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.gdf-autocomplete-item:last-child {
    border-bottom: none;
}

.gdf-autocomplete-item:hover {
    background: rgba(184,147,95,0.1);
}

.gdf-autocomplete-item .item-index {
    color: #888;
    font-size: 0.8rem;
    margin-left: 6px;
}

.gdf-partenaire-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,86,63,0.1);
    color: var(--gdf-color-primary, #00563f);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.gdf-partenaire-clear {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #888;
    transition: all 0.2s;
    margin-top: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdf-partenaire-clear:hover {
    background: #fee;
    border-color: #dc3545;
    color: #dc3545;
}

/* ---- Section repas ---- */
.gdf-section-repas {
    margin-bottom: 20px;
}

.gdf-repas-label {
    display: flex;
    flex-direction: column;
    gap: 0;
    cursor: pointer;
    padding: 0.7rem 1rem;
    background: rgba(184,147,95,0.08);
    border: 1.5px solid rgba(184,147,95,0.25);
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1.3;
}

.gdf-repas-label-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gdf-repas-label-top .gdf-repas-check {
    margin-top: 0 !important;
    flex-shrink: 0;
    align-self: center;
}

.gdf-repas-label:hover {
    border-color: var(--gdf-color-secondary, #b8935f);
    background: rgba(184,147,95,0.12);
}

.gdf-repas-check {
    /* Checkbox custom — coche blanche sur fond doré */
    -webkit-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-height: unset !important;
    max-width: unset !important;
    margin: 0 !important;
    margin-top: 1px !important;
    padding: 0 !important;
    border: 2px solid var(--gdf-color-secondary, #b8935f);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}

.gdf-repas-check:checked {
    background: var(--gdf-color-secondary, #b8935f);
    border-color: var(--gdf-color-secondary, #b8935f);
}

.gdf-repas-check:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.gdf-repas-text {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gdf-repas-main {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--gdf-color-secondary, #b8935f);
    white-space: nowrap;
}

.gdf-repas-prix {
    background: var(--gdf-color-secondary, #b8935f);
    color: #fff;
    font-weight: 700;
    padding: 0.15rem 0.65rem;
    border-radius: 20px;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ---- Checkboxes obligatoires ---- */
.gdf-checkboxes {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gdf-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0.4rem 0;
    background: transparent;
    border: none;
    line-height: 1;
}

.gdf-check-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-height: unset !important;
    max-width: unset !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    border: 2px solid var(--gdf-color-secondary, #b8935f);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.gdf-check-label input[type="checkbox"]:checked {
    background: var(--gdf-color-secondary, #b8935f);
    border-color: var(--gdf-color-secondary, #b8935f);
}

.gdf-check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 6px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.gdf-check-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gdf-check-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gdf-color-primary, #00563f);
}

.gdf-check-sub {
    font-size: 0.75rem;
    color: #888;
}


/* ---- Bouton submit ---- */
.gdf-submit-btn {
    margin-top: 10px;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    padding: 1.1rem 2rem;
    transition: all 0.3s ease;
}

.gdf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Confirmation ---- */
.gdf-confirmation {
    text-align: center;
    padding: 3rem 2rem;
}

.gdf-confirmation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gdf-confirmation h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gdf-color-primary, #00563f);
    margin-bottom: 1rem;
}

.gdf-confirmation p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- Complet ---- */
.gdf-inscription-complet {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.gdf-complet-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gdf-inscription-complet h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gdf-color-primary, #00563f);
    margin-bottom: 1rem;
}

/* ============================================================
   Shortcode [gdf_mes_inscriptions]
   ============================================================ */

.gdf-mes-inscriptions-wrap { width:100%; max-width:100%; }

.gdf-mi-login, .gdf-mi-empty { color:#888; font-style:italic; padding:1rem 0; }

.gdf-mi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-top: 28px; /* espace pour l'avatar qui déborde */
}

/* ---- Carte ---- */
.gdf-mi-card {
    border-radius: 14px;
    overflow: visible;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ---- Header ---- */
.gdf-mi-card-header {
    position: relative;
    overflow: visible;
    border-radius: 14px 14px 0 0;
    padding: 20px 20px 50px; /* espace bas pour l'avatar */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--gdf-color-primary, #00563f);
    border-bottom: 3px solid rgba(184,147,95,0.55);
}

/* Cercles décoratifs */
.gdf-mi-card-header::before {
    content: '';
    position: absolute;
    top: -35px; right: -35px;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.09);
    pointer-events: none;
}
.gdf-mi-card-header::after {
    content: '';
    position: absolute;
    top: 5px; right: 5px;
    width: 65px; height: 65px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

.gdf-mi-card-title {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    position: relative; z-index: 1;
    margin: 0;
    line-height: 1.3;
}

.gdf-mi-card-date {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative; z-index: 1;
}

.gdf-mi-card-bar { display: none; }

/* ---- Compte à rebours SVG ---- */
.gdf-mi-countdown {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    line-height: 0;
    opacity: 0.95;
}

/* ---- Avatar : centré pile sur la séparation header/corps ---- */
.gdf-mi-avatar {
    position: absolute;
    bottom: -79px; /* centré pile sur la bordure dorée */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50% !important;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.20);
    object-fit: cover;
    z-index: 4;
    display: block;
}

/* ---- Corps ---- */
.gdf-mi-card-body {
    padding: 70px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.gdf-mi-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.88rem;
}

.gdf-mi-label {
    color: #888;
    min-width: 90px;
    flex-shrink: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gdf-mi-value {
    color: #333;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.gdf-mi-partner {
    background: rgba(0,86,63,0.08);
    color: var(--gdf-color-primary, #00563f);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gdf-mi-repas-yes {
    color: var(--gdf-color-secondary, #b8935f);
    font-weight: 700;
}

.gdf-mi-repas-no {
    color: #bbb;
}

/* Pied de carte */
.gdf-mi-card-footer {
    padding: 14px 18px 22px;
    background: #f8f8f8;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.gdf-mi-deadline {
    font-size: 0.78rem;
    font-style: italic;
}

.gdf-mi-deadline-open { color: #28a745; }
.gdf-mi-deadline-closed { color: #dc3545; }

.gdf-mi-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: var(--gdf-color-primary, #00563f);
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.gdf-mi-btn:hover {
    background: #004530;
    color: #fff !important;
}

/* Cartes cachées */
.gdf-mi-card-hidden {
    display: none;
}

/* Bouton Voir plus */
.gdf-mi-show-more-wrap {
    text-align: center;
    margin-top: 20px;
}

.gdf-mi-show-more {
    background: none;
    border: none;
    color: var(--gdf-color-secondary, #b8935f);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    padding: 6px 16px;
    transition: opacity 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gdf-mi-show-more:hover {
    opacity: 0.75;
}

/* ---- Bloc identité collapsible ---- */
.gdf-identity-block {
    margin-bottom: 32px;
}

.gdf-identity-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    font-size: 0.95rem;
    color: #1d2327;
}

.gdf-identity-bar:hover {
    background: #f0f0f0;
}

.gdf-identity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.gdf-identity-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gdf-color-primary, #00563f);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gdf-identity-name {
    flex: 1;
    font-size: 0.95rem;
}

.gdf-identity-chevron {
    flex-shrink: 0;
    color: #888;
    transition: transform 0.2s;
}

.gdf-identity-bar[aria-expanded="true"] .gdf-identity-chevron {
    transform: rotate(180deg);
}

.gdf-identity-fields {
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px 16px 4px;
    background: #fafafa;
}

/* Inputs readonly dans le bloc identité */
.gdf-identity-fields input[readonly] {
    background: #f4f4f4 !important;
    color: #666 !important;
    cursor: default;
    border-color: #e0e0e0 !important;
}

/* Lien modifier profil */
.gdf-edit-profile-link {
    display: block;
    margin: 4px 0 16px;
    font-size: 0.78rem;
    color: #bbb;
    text-decoration: none;
    text-align: right;
    transition: color 0.15s;
}
.gdf-edit-profile-link:hover {
    color: #888;
    text-decoration: underline;
}

/* ---- Bannière déjà inscrit + désinscrire ---- */
.gdf-already-registered {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0.9rem 1.2rem;
    background: rgba(0,86,63,0.08);
    border-left: 4px solid var(--gdf-color-primary, #00563f);
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #333;
}

.gdf-already-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gdf-desinscrire-btn {
    margin-left: auto;
    background: none;
    border: 1.5px solid #dc3545;
    color: #dc3545;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.gdf-desinscrire-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* ---- Inscriptions closes ---- */
.gdf-inscription-closed {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.gdf-closed-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.gdf-inscription-closed h3 {
    font-family: 'Playfair Display', serif;
    color: #555;
    margin-bottom: 0.8rem;
}

.gdf-inscription-closed p {
    color: #777;
    font-size: 0.95rem;
}

/* ---- Deadline dans le header ---- */
.gdf-eh-deadline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.gdf-eh-deadline-open {
    background: rgba(40,167,69,0.1);
    color: #28a745;
}

.gdf-eh-deadline-closed {
    background: rgba(220,53,69,0.1);
    color: #dc3545;
}

.gdf-eh-deadline svg {
    flex-shrink: 0;
}



/* ---- Erreur ---- */
/* ---- Erreurs de validation inline ---- */
.gdf-field-error {
    color: #dc3545;
    font-size: 0.82rem;
    margin: -10px 0 12px 0;
    padding-left: 2px;
    min-height: 0;
    display: none;
}

.gdf-field-error.visible {
    display: block;
}

/* ---- Select + icône info ---- */
.gdf-select-with-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.gdf-select-with-info select {
    flex: 1;
    border-radius: 0 4px 4px 0 !important;
    border-left: none !important;
    min-height: 45px;
    margin: 0 !important;
}

/* Icône ⓘ */
.gdf-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--gdf-color-secondary, #b8935f);
    color: var(--gdf-color-secondary, #b8935f);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.gdf-info-icon:hover,
.gdf-info-icon:focus {
    background: var(--gdf-color-secondary, #b8935f);
    color: #fff;
    outline: none;
}

/* Bulle tooltip */
.gdf-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    width: 260px;
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-weight: 400;
    text-align: left;
}

.gdf-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.gdf-info-icon:hover .gdf-tooltip,
.gdf-info-icon:focus .gdf-tooltip {
    display: block;
}

/* Note repas */
.gdf-repas-note {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
    font-weight: 400;
}

/* Titre section avec note facultatif */
.gdf-section-title-note {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--gdf-color-secondary, #b8935f);
    opacity: 0.85;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
}

/* Prix inline dans le titre repas */
.gdf-repas-prix-inline {
    background: var(--gdf-color-secondary, #b8935f);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Quantité repas — intégré dans le bloc label */
.gdf-repas-qty-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(184,147,95,0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gdf-repas-qty-label {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    margin-right: 2px;
}

.gdf-repas-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gdf-qty-btn {
    background: #fff;
    border: 1.5px solid var(--gdf-color-secondary, #b8935f);
    color: var(--gdf-color-secondary, #b8935f);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.15s;
}

.gdf-qty-btn:hover {
    background: var(--gdf-color-secondary, #b8935f);
    color: #fff;
}

.gdf-qty-input {
    width: 40px !important;
    max-width: 40px !important;
    text-align: center;
    border: 1.5px solid #ddd !important;
    border-radius: 4px !important;
    padding: 4px 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700;
    color: var(--gdf-color-secondary, #b8935f);
    background: #fff !important;
    min-height: unset !important;
    margin: 0 !important;
}

.gdf-repas-total {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gdf-color-secondary, #b8935f);
    margin-left: 4px;
}

/* Titre dans le bloc repas — même style que gdf-section-title mais police différente */
.gdf-section-repas .gdf-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gdf-color-secondary, #b8935f);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    font-style: italic;
}

.gdf-inscription-error {
    padding: 2rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 0 6px 6px 0;
    color: #856404;
}

/* ============================================================
   Shortcode [gdf_event_header] — fond transparent
   ============================================================ */

.gdf-eh-wrap {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

/* Ligne titre */
.gdf-eh-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.gdf-eh-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gdf-color-primary, #00563f);
    margin: 0;
    line-height: 1.2;
}

.gdf-eh-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.gdf-eh-badge-complet {
    background: #dc3545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Ligne infos */
.gdf-eh-infos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.gdf-eh-info {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gdf-eh-info svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.gdf-eh-sep {
    color: #ccc;
    font-size: 0.85rem;
}

.gdf-eh-repas {
    color: var(--gdf-color-secondary, #b8935f);
    font-weight: 600;
}

/* Jauge */
.gdf-eh-gauge-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gdf-eh-gauge-bar {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.gdf-eh-gauge-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.gdf-eh-gauge-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #888;
}

.gdf-eh-gauge-count strong {
    color: var(--gdf-color-primary, #00563f);
    font-size: 0.95rem;
}

/* Description ICS */
.gdf-eh-description {
    margin-top: 3.5rem;
}
.gdf-eh-description p {
    font-size: 15.68px;
    font-family: inherit;
    font-weight: 400;
    line-height: 27.44px;
    color: #333;
    margin: 0 0 1.2em 0;
}
.gdf-eh-description p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Liste des inscrits
   ============================================================ */

.gdf-liste-wrap {
    max-width: 800px;
    margin: 0 auto;
}

/* Pleine largeur du bloc central */
.gdf-liste-full {
    max-width: 100%;
    width: 100%;
}

/* En-tête */
.gdf-liste-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--gdf-color-primary, #00563f) 0%, #004530 100%);
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.gdf-liste-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.gdf-liste-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.gdf-liste-counter {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-shrink: 0;
}

.gdf-liste-count {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.gdf-liste-max {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.gdf-liste-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: center;
    margin-left: 0.3rem;
}

.gdf-liste-complet {
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.08em;
    margin-left: 0.5rem;
    align-self: center;
}

/* Tableau */
.gdf-liste-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8e8e8;
    border-top: none;
}

.gdf-liste-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    table-layout: fixed;
}

.gdf-liste-table thead tr {
    background: rgba(0,86,63,0.06);
}

.gdf-liste-table th {
    padding: 0.85rem 1.2rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gdf-color-primary, #00563f);
    border-bottom: 2px solid rgba(0,86,63,0.15);
    white-space: nowrap;
}

.gdf-liste-table td {
    padding: 0.45rem 1.2rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.gdf-row-even { background: #fff; }
.gdf-row-odd  { background: #fafafa; }

.gdf-liste-table tbody tr:hover td {
    background: rgba(0,86,63,0.04);
}

.gdf-col-num {
    width: 40px;
    color: #aaa;
    font-size: 0.85rem;
    text-align: center;
}

.gdf-col-avatar {
    width: 44px;
    text-align: center;
    padding: 6px 4px !important;
}

.gdf-liste-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 2px solid #e8e8e8;
}

.gdf-liste-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gdf-color-primary, #00563f);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.gdf-col-num      { width: 36px !important; }
.gdf-col-avatar   { width: 50px !important; }
.gdf-col-prenom   { width: 12%; }
.gdf-col-nom      { width: 14%; }
.gdf-col-index    { width: 8%; }
.gdf-col-parcours { width: 9%; }
.gdf-col-preference { width: 11%; }
.gdf-col-partenaires { width: auto; }
.gdf-col-repas    { width: 7%; }

.gdf-liste-table td, .gdf-liste-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Index badge */
.gdf-index-badge {
    display: inline-block;
    background: rgba(184,147,95,0.15);
    color: var(--gdf-color-secondary, #b8935f);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

.gdf-index-empty {
    color: #ccc;
}

.gdf-repas-oui {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

/* Barre de progression */
.gdf-liste-progress {
    padding: 1rem 1.5rem;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gdf-progress-bar {
    flex: 1;
    min-width: 120px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.gdf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gdf-color-primary, #00563f), var(--gdf-color-secondary, #b8935f));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.gdf-progress-label {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

/* Vide */
.gdf-liste-empty {
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #888;
}

.gdf-liste-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .gdf-field-row {
        grid-template-columns: 1fr;
    }

    .gdf-field-row .gdf-field-wrap:last-child .field-label {
        border-radius: 4px 0 0 4px !important;
        border-left: none;
    }

    .gdf-event-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
