/* ============================================================
   GCS Reserve — Front CSS  v1.3.2
   Page publique : [gcs_reserve_adherent]
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

.gcs-front-wrap {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
    color: #1d2327;
}

/* ── Entête ──────────────────────────────────────────────── */
.gcs-front-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1d2327;
    color: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 18px;
}
.gcs-front-logo {
    font-size: 2.4rem;
    line-height: 1;
}
.gcs-front-club {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #adb5bd;
    margin-bottom: 2px;
}
.gcs-front-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

/* ── Cartes ──────────────────────────────────────────────── */
.gcs-front-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.gcs-front-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Carte solde ─────────────────────────────────────────── */
.gcs-front-card-solde {
    text-align: center;
}
.gcs-front-adherent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 14px;
}
.gcs-front-avatar {
    font-size: 1.3rem;
}
.gcs-front-solde-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin-bottom: 4px;
}
.gcs-front-solde {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
}
.gcs-front-pos { color: #1e8449; }
.gcs-front-neg { color: #c0392b; }

/* ── Alertes inline ──────────────────────────────────────── */
.gcs-front-alerte {
    background: #fff3cd;
    border-left: 4px solid #e67e22;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: .88rem;
    color: #6d4c00;
    line-height: 1.55;
}
.gcs-front-info {
    background: #e8f4fd;
    border-left: 4px solid #2980b9;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .88rem;
    color: #1a5276;
}
.gcs-front-ok {
    background: #eafaf1;
    border-left: 4px solid #1e8449;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .88rem;
    color: #1e8449;
    font-weight: 600;
}

/* ── Textes ──────────────────────────────────────────────── */
.gcs-front-text {
    font-size: .92rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 16px;
}
.gcs-front-hint {
    font-size: .82rem;
    color: #888;
    line-height: 1.5;
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.gcs-front-empty {
    color: #888;
    font-style: italic;
    font-size: .9rem;
    margin: 0;
}

/* ── Bouton HelloAsso ────────────────────────────────────── */
.gcs-front-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e67e22;
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: background .18s;
    box-shadow: 0 3px 10px rgba(230,126,34,.3);
}
.gcs-front-btn-primary:hover {
    background: #ca6f1e;
    color: #fff !important;
}

/* ── Tableau historique ──────────────────────────────────── */
.gcs-front-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.gcs-front-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.gcs-front-table thead th {
    background: #1d2327;
    color: #fff;
    padding: 9px 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 600;
    white-space: nowrap;
}
.gcs-front-table tbody tr:nth-child(even) { background: #f8f9fa; }
.gcs-front-table tbody tr:hover { background: #eaf0f6; }
.gcs-front-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}
.gcs-front-table td.num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.gcs-front-table td.date { white-space: nowrap; color: #666; font-size: .82rem; }
.gcs-front-table td.libelle { color: #444; }

/* ── Badge type opération ────────────────────────────────── */
.gcs-front-badge {
    display: inline-block;
    background: #eaf0f6;
    border: 1px solid #b3c6d8;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #1a5276;
    white-space: nowrap;
}

/* ── Pied de page ────────────────────────────────────────── */
.gcs-front-footer {
    text-align: center;
    font-size: .8rem;
    color: #999;
    line-height: 1.7;
    padding: 8px 0 4px;
}
.gcs-front-footer a {
    color: #2980b9;
    text-decoration: none;
}
.gcs-front-footer a:hover {
    text-decoration: underline;
}

/* ── Bouton secondaire ───────────────────────────────────── */
.gcs-front-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    color: #1d2327 !important;
    text-decoration: none !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid #ced4da;
    cursor: pointer;
    transition: background .15s;
}
.gcs-front-btn-secondary:hover { background: #e9ecef; }

/* ── Formulaire montant ──────────────────────────────────── */
.gcs-front-montant-row { margin-bottom: 18px; }
.gcs-front-label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.gcs-front-montant-input-wrap {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}
.gcs-front-montant-input-wrap:focus-within {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230,126,34,.15);
}
.gcs-front-input {
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 1.1rem;
    width: 140px;
    background: transparent;
    font-weight: 600;
    color: #1d2327;
}
.gcs-front-input.gcs-front-input-error { background: #fff5f5; }
.gcs-front-currency {
    padding: 10px 12px;
    background: #f8f9fa;
    font-weight: 700;
    color: #888;
    border-left: 1px solid #ced4da;
    font-size: 1rem;
}

/* ── Loading + Iframe checkout ───────────────────────────── */
.gcs-front-checkout-loading {
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.gcs-front-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e67e22;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gcs-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes gcs-spin { to { transform: rotate(360deg); } }

#gcs-front-zone-checkout iframe {
    width: 100% !important;
    max-width: 100%;
    border: none;
    border-radius: 6px;
    min-height: 700px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    .gcs-front-wrap { padding: 10px; }
    .gcs-front-card { padding: 16px; }
    .gcs-front-solde { font-size: 2.3rem; }
    .gcs-front-header { padding: 14px 16px; }
    .gcs-front-btn-primary { width: 100%; justify-content: center; }
}
