/* ═══════════════════════════════════════════════════════════
   FEY CLOUD — Feuille de styles
   Direction : chaleureux, professionnel, accents africains.
   Couleur dominante : orange chaleureux (#FF7A00)
   Typo : Fraunces (serif éditoriale) + Inter alternatif local fallback
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --feyc-primary: #FF7A00;
    --feyc-primary-dark: #E56A00;
    --feyc-primary-light: #FFEDD9;
    --feyc-ink: #1A1814;
    --feyc-ink-soft: #5C5851;
    --feyc-paper: #FFFBF5;
    --feyc-paper-2: #FFF5E6;
    --feyc-line: #E8E0D2;
    --feyc-success: #1F9D6E;
    --feyc-warn: #D97706;
    --feyc-danger: #DC2626;
    --feyc-info: #2563EB;

    --feyc-radius-sm: 8px;
    --feyc-radius: 14px;
    --feyc-radius-lg: 24px;
    --feyc-shadow-sm: 0 1px 2px rgba(26,24,20,.06);
    --feyc-shadow: 0 4px 16px rgba(26,24,20,.08);
    --feyc-shadow-lg: 0 12px 40px rgba(26,24,20,.10);

    --feyc-font-display: 'Fraunces', 'Georgia', serif;
    --feyc-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESETS LOCAUX (ne pas écraser tout le thème WP)
═══════════════════════════════════════════════════════════ */
.feyc-signup, .feyc-installer, .feyc-admin, .feyc-client, .feyc-wrap {
    font-family: var(--feyc-font-body);
    color: var(--feyc-ink);
    line-height: 1.55;
    box-sizing: border-box;
}
.feyc-signup *, .feyc-installer *, .feyc-admin *, .feyc-client *, .feyc-wrap * { box-sizing: border-box; }
.feyc-signup h1, .feyc-installer h1, .feyc-admin h1, .feyc-client h1, .feyc-wrap h1,
.feyc-signup h2, .feyc-installer h2, .feyc-admin h2, .feyc-client h2, .feyc-wrap h2,
.feyc-signup h3, .feyc-installer h3, .feyc-admin h3, .feyc-client h3, .feyc-wrap h3 {
    font-family: var(--feyc-font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--feyc-ink);
}

/* ═══════════════════════════════════════════════════════════
   PAGE D'INSCRIPTION
═══════════════════════════════════════════════════════════ */
.feyc-signup {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    background: var(--feyc-paper);
}
.feyc-signup-header {
    text-align: center;
    margin-bottom: 48px;
}
.feyc-signup-header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 16px;
    line-height: 1.05;
}
.feyc-signup-header > p {
    font-size: 1.15rem;
    color: var(--feyc-ink-soft);
    margin: 0 auto 16px;
    max-width: 580px;
}
.feyc-trial-badge {
    display: inline-block;
    background: var(--feyc-primary-light);
    color: var(--feyc-primary-dark);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
}

/* ─── Formulaire ─── */
.feyc-form {
    background: white;
    border-radius: var(--feyc-radius-lg);
    box-shadow: var(--feyc-shadow);
    padding: 40px;
    border: 1px solid var(--feyc-line);
}
.feyc-form-section {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--feyc-line);
    margin-bottom: 32px;
}
.feyc-form-section:last-of-type { border-bottom: 0; margin-bottom: 16px; }
.feyc-form-section h2 {
    font-size: 1.4rem;
    margin: 0 0 20px;
}
.feyc-form label {
    display: block;
    margin-bottom: 18px;
}
.feyc-form label > span {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: var(--feyc-ink);
}
.feyc-form input[type=text],
.feyc-form input[type=email],
.feyc-form input[type=tel],
.feyc-form input[type=password],
.feyc-form input[type=url],
.feyc-form input[type=number],
.feyc-form input[type=color],
.feyc-form select,
.feyc-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    font-size: 1rem;
    font-family: var(--feyc-font-body);
    color: var(--feyc-ink);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.feyc-form input:focus, .feyc-form select:focus, .feyc-form textarea:focus {
    outline: 0;
    border-color: var(--feyc-primary);
    box-shadow: 0 0 0 4px rgba(255,122,0,0.10);
}
.feyc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) { .feyc-row { grid-template-columns: 1fr; } }

/* Préfixe URL */
.feyc-slug-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    overflow: hidden;
    transition: border-color 0.15s;
}
.feyc-slug-wrap:focus-within {
    border-color: var(--feyc-primary);
    box-shadow: 0 0 0 4px rgba(255,122,0,0.10);
}
.feyc-slug-prefix {
    background: var(--feyc-paper-2);
    color: var(--feyc-ink-soft);
    padding: 12px 14px;
    font-size: 0.92rem;
    border-right: 1px solid var(--feyc-line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.feyc-slug-wrap input {
    border: 0 !important;
    border-radius: 0 !important;
    flex: 1;
}
.feyc-slug-wrap input:focus { box-shadow: none !important; }
.feyc-slug-status {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    color: var(--feyc-ink-soft);
}
.feyc-slug-status.feyc-ok { color: var(--feyc-success); }
.feyc-slug-status.feyc-bad { color: var(--feyc-danger); }

/* ─── Toggle cycle facturation ─── */
.feyc-billing-toggle {
    display: inline-flex;
    background: var(--feyc-paper-2);
    border: 1px solid var(--feyc-line);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}
.feyc-pill {
    cursor: pointer;
    position: relative;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.15s;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--feyc-ink-soft);
}
.feyc-pill input { position: absolute; opacity: 0; pointer-events: none; }
.feyc-pill input:checked + span { color: white; }
.feyc-pill:has(input:checked) {
    background: var(--feyc-ink);
    color: white;
}
.feyc-pill em {
    font-style: normal;
    color: var(--feyc-primary);
    background: var(--feyc-primary-light);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.78em;
    margin-left: 4px;
}
.feyc-pill:has(input:checked) em { background: rgba(255,255,255,0.2); color: white; }

/* ─── Grid plans ─── */
.feyc-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.feyc-plans-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feyc-plan-card {
    position: relative;
    background: white;
    border: 2px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    padding: 28px 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}
.feyc-plan-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.feyc-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--feyc-shadow);
}
.feyc-plan-card:has(input:checked),
.feyc-plan-card.feyc-plan-current {
    border-color: var(--feyc-primary);
    background: var(--feyc-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,122,0,0.15);
}
.feyc-plan-featured {
    border-color: var(--feyc-ink);
}
.feyc-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--feyc-ink);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.feyc-plan-card h3 {
    font-size: 1.4rem;
    margin: 0 0 8px;
}
.feyc-plan-price {
    font-family: var(--feyc-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--feyc-ink);
    margin: 12px 0 8px;
    line-height: 1.1;
}
.feyc-plan-price small {
    font-family: var(--feyc-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--feyc-ink-soft);
}
.feyc-plan-desc {
    font-size: 0.9rem;
    color: var(--feyc-ink-soft);
    margin: 0 0 16px;
}
.feyc-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.feyc-plan-features li {
    padding: 4px 0;
    position: relative;
    padding-left: 22px;
}
.feyc-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--feyc-primary);
    font-weight: 700;
}

.feyc-legal {
    font-size: 0.85rem;
    color: var(--feyc-ink-soft);
    text-align: center;
    margin: 24px 0;
}
.feyc-legal a { color: var(--feyc-primary); }

/* ═══════════════════════════════════════════════════════════
   BOUTONS
═══════════════════════════════════════════════════════════ */
.feyc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--feyc-radius);
    font-family: var(--feyc-font-body);
    font-size: 1rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none !important;
    line-height: 1;
}
.feyc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.feyc-btn-primary {
    background: var(--feyc-primary);
    color: white;
}
.feyc-btn-primary:hover:not(:disabled) {
    background: var(--feyc-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--feyc-shadow);
}
.feyc-btn-secondary {
    background: var(--feyc-ink);
    color: white;
}
.feyc-btn-secondary:hover:not(:disabled) { background: #000; }
.feyc-btn-ghost {
    background: white;
    color: var(--feyc-ink);
    border-color: var(--feyc-line);
}
.feyc-btn-ghost:hover:not(:disabled) {
    background: var(--feyc-paper-2);
    border-color: var(--feyc-ink-soft);
}
.feyc-btn-danger {
    background: var(--feyc-danger);
    color: white;
}
.feyc-btn-link {
    background: transparent;
    color: var(--feyc-ink-soft);
    text-decoration: underline !important;
    padding: 12px 8px;
}
.feyc-btn-large {
    padding: 16px 28px;
    font-size: 1.1rem;
    width: 100%;
}
.feyc-btn-tiny {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Messages */
.feyc-error {
    background: rgba(220,38,38,0.08);
    color: var(--feyc-danger);
    padding: 12px 16px;
    border-radius: var(--feyc-radius);
    border-left: 4px solid var(--feyc-danger);
    margin: 16px 0;
    font-size: 0.92rem;
}
.feyc-success {
    background: rgba(31,157,110,0.08);
    color: var(--feyc-success);
    padding: 12px 16px;
    border-radius: var(--feyc-radius);
    border-left: 4px solid var(--feyc-success);
    margin: 16px 0;
    font-size: 0.92rem;
}
.feyc-notice {
    padding: 14px 18px;
    border-radius: var(--feyc-radius);
    margin: 20px 0;
    font-size: 0.94rem;
}
.feyc-notice a { font-weight: 700; }
.feyc-notice-info { background: rgba(37,99,235,0.08); color: var(--feyc-info); border-left: 4px solid var(--feyc-info); }
.feyc-notice-info a { color: var(--feyc-info); }
.feyc-notice-warn { background: rgba(217,119,6,0.08); color: var(--feyc-warn); border-left: 4px solid var(--feyc-warn); }
.feyc-notice-warn a { color: var(--feyc-warn); }
.feyc-notice-success { background: rgba(31,157,110,0.08); color: var(--feyc-success); border-left: 4px solid var(--feyc-success); }

/* ═══════════════════════════════════════════════════════════
   INSTALLEUR
═══════════════════════════════════════════════════════════ */
.feyc-installer {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.feyc-installer-header {
    text-align: center;
    margin-bottom: 32px;
}
.feyc-installer-header h1 {
    font-size: 2.4rem;
    margin: 0 0 8px;
}
.feyc-installer-header p { color: var(--feyc-ink-soft); }

/* Stepper */
.feyc-steps-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 20px;
}
.feyc-steps-nav::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--feyc-line);
    z-index: 0;
}
.feyc-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.feyc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--feyc-line);
    font-weight: 700;
    color: var(--feyc-ink-soft);
    transition: all 0.2s;
}
.feyc-step-label {
    display: block;
    font-size: 0.85rem;
    color: var(--feyc-ink-soft);
    font-weight: 600;
}
.feyc-step-done .feyc-step-num {
    background: var(--feyc-success);
    border-color: var(--feyc-success);
    color: white;
}
.feyc-step-done .feyc-step-num::before { content: '✓'; }
.feyc-step-done .feyc-step-label { color: var(--feyc-success); }
.feyc-step-active .feyc-step-num {
    background: var(--feyc-primary);
    border-color: var(--feyc-primary);
    color: white;
    box-shadow: 0 0 0 6px rgba(255,122,0,0.15);
}
.feyc-step-active .feyc-step-label { color: var(--feyc-primary); font-weight: 700; }

.feyc-step-panel {
    background: white;
    border: 1px solid var(--feyc-line);
    border-radius: var(--feyc-radius-lg);
    padding: 40px;
    box-shadow: var(--feyc-shadow-sm);
}
.feyc-step-panel h2 {
    font-size: 1.6rem;
    margin: 0 0 16px;
}
.feyc-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.feyc-step-actions .feyc-btn-primary { margin-left: auto; }

/* Tables et items dynamiques */
.feyc-dyn-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: var(--feyc-paper-2);
    border-radius: var(--feyc-radius);
    margin-bottom: 8px;
}
.feyc-dyn-row input, .feyc-dyn-row select {
    margin-bottom: 0 !important;
}
.feyc-dyn-remove {
    background: transparent;
    border: 0;
    color: var(--feyc-danger);
    cursor: pointer;
    font-size: 1.4rem;
    padding: 4px 8px;
}
.feyc-menu-row {
    grid-template-columns: 2fr 1fr 1fr 0.8fr auto;
}

/* Cards de paiement (Wave/PayTech/Cash) */
.feyc-payment-providers { display: grid; gap: 14px; margin: 16px 0; }
.feyc-provider-card {
    border: 1.5px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    padding: 20px;
    background: var(--feyc-paper);
}
.feyc-provider-card h3 { margin: 0 0 12px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.feyc-provider-head {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}
.feyc-provider-head input { width: 18px !important; height: 18px !important; }
.feyc-provider-head strong { font-size: 1.05rem; }
.feyc-provider-head small { color: var(--feyc-ink-soft); margin-left: auto; }
.feyc-help { font-size: 0.85rem; color: var(--feyc-ink-soft); display: block; margin-top: 4px; }
.feyc-info {
    background: var(--feyc-primary-light);
    padding: 12px 16px;
    border-radius: var(--feyc-radius);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

/* Récap */
.feyc-recap-card {
    background: linear-gradient(135deg, var(--feyc-primary-light), var(--feyc-paper-2));
    border-radius: var(--feyc-radius);
    padding: 32px;
    text-align: center;
}
.feyc-recap-card h3 {
    font-size: 1.8rem;
    margin: 0 0 16px;
}
.feyc-recap-url a {
    font-family: var(--feyc-font-display);
    font-size: 1.3rem;
    color: var(--feyc-primary);
    word-break: break-all;
}
.feyc-trial-info {
    background: white;
    padding: 12px;
    border-radius: var(--feyc-radius);
    margin: 16px 0;
}
.feyc-recap-card ul { text-align: left; max-width: 360px; margin: 16px auto; }

/* ═══════════════════════════════════════════════════════════
   ADMIN RESTO
═══════════════════════════════════════════════════════════ */
.feyc-admin {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}
.feyc-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--feyc-line);
}
.feyc-admin-brand { display: flex; align-items: center; gap: 14px; }
.feyc-admin-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.feyc-admin-brand h1 { font-size: 1.8rem; margin: 0; line-height: 1; }
.feyc-admin-brand small { color: var(--feyc-ink-soft); font-size: 0.85rem; }
.feyc-admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.feyc-admin-nav a {
    padding: 8px 14px;
    border-radius: var(--feyc-radius);
    text-decoration: none;
    color: var(--feyc-ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.15s;
}
.feyc-admin-nav a:hover { background: var(--feyc-paper-2); color: var(--feyc-ink); }
.feyc-admin-nav a.feyc-active { background: var(--feyc-ink); color: white; }

.feyc-admin-body { padding: 16px 0; }
.feyc-admin-body h2 { font-size: 1.5rem; margin: 24px 0 16px; }

/* Quick links */
.feyc-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.feyc-quick-link {
    background: white;
    border: 1.5px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    padding: 22px;
    text-decoration: none !important;
    color: var(--feyc-ink);
    transition: all 0.15s;
    display: block;
}
.feyc-quick-link:hover {
    border-color: var(--feyc-primary);
    transform: translateY(-2px);
    box-shadow: var(--feyc-shadow);
}
.feyc-quick-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.feyc-quick-link strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.feyc-quick-link small { color: var(--feyc-ink-soft); font-size: 0.85rem; }

/* Onglets settings */
.feyc-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--feyc-line);
    flex-wrap: wrap;
}
.feyc-tabs a {
    padding: 10px 18px;
    text-decoration: none;
    color: var(--feyc-ink-soft);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.feyc-tabs a:hover { color: var(--feyc-ink); }
.feyc-tabs a.feyc-tab-active { color: var(--feyc-primary); border-bottom-color: var(--feyc-primary); }

/* Tableaux de données */
.feyc-data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--feyc-radius);
    overflow: hidden;
    box-shadow: var(--feyc-shadow-sm);
}
.feyc-data-table th {
    background: var(--feyc-paper-2);
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--feyc-ink-soft);
}
.feyc-data-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--feyc-line);
    font-size: 0.95rem;
}
.feyc-data-table tr:hover td { background: var(--feyc-paper); }

/* Bandeau abonnement actuel */
.feyc-billing-current { margin-bottom: 32px; }
.feyc-current-card {
    background: white;
    border: 2px solid var(--feyc-primary);
    border-radius: var(--feyc-radius-lg);
    padding: 28px;
    box-shadow: var(--feyc-shadow);
}
.feyc-current-card strong:first-child {
    font-size: 1.5rem;
    font-family: var(--feyc-font-display);
}
.feyc-pay-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--feyc-line);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Badges */
.feyc-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--feyc-paper-2);
    color: var(--feyc-ink-soft);
}
.feyc-badge-active, .feyc-badge-paid { background: rgba(31,157,110,0.15); color: var(--feyc-success); }
.feyc-badge-pending, .feyc-badge-trial { background: rgba(37,99,235,0.15); color: var(--feyc-info); }
.feyc-badge-suspended, .feyc-badge-expired, .feyc-badge-past_due { background: rgba(220,38,38,0.15); color: var(--feyc-danger); }
.feyc-badge-cancelled { background: rgba(217,119,6,0.15); color: var(--feyc-warn); }
.feyc-badge-free { background: rgba(31,157,110,0.10); color: var(--feyc-success); }

/* Note explicative */
.feyc-note {
    background: var(--feyc-paper-2);
    border-left: 4px solid var(--feyc-primary);
    padding: 14px 18px;
    border-radius: var(--feyc-radius);
    font-size: 0.92rem;
    margin: 20px 0;
}

/* Staff / Perms */
.feyc-perm-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    margin-right: 4px !important;
    margin-bottom: 4px !important;
    background: var(--feyc-paper-2);
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
}
.feyc-perm-pill input { width: 14px !important; height: 14px !important; margin: 0 !important; }
.feyc-perm-form { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.feyc-perms-fieldset {
    border: 1.5px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    padding: 16px;
    margin-bottom: 20px;
}
.feyc-perms-fieldset legend {
    font-weight: 700;
    padding: 0 8px;
    font-size: 0.92rem;
}
.feyc-checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
}
.feyc-checkbox-row input { width: 18px !important; height: 18px !important; margin: 0 !important; }
.feyc-checkbox-row span { margin: 0 !important; }

/* ═══════════════════════════════════════════════════════════
   WP-ADMIN (Super admin plateforme)
═══════════════════════════════════════════════════════════ */
.feyc-wrap { font-family: var(--feyc-font-body); }
.feyc-wrap h1 { font-family: var(--feyc-font-display); }
.feyc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.feyc-stat-card {
    background: white;
    border: 1px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--feyc-shadow-sm);
}
.feyc-stat-label {
    font-size: 0.82rem;
    color: var(--feyc-ink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.feyc-stat-value {
    font-family: var(--feyc-font-display);
    font-size: 2rem;
    font-weight: 700;
    margin: 6px 0;
    color: var(--feyc-ink);
}
.feyc-stat-sub { font-size: 0.82rem; color: var(--feyc-ink-soft); }
.feyc-count { font-size: 1rem; color: var(--feyc-ink-soft); font-weight: 400; }

/* ═══════════════════════════════════════════════════════════
   PAGE CLIENT (menu/commande)
═══════════════════════════════════════════════════════════ */
.feyc-client {
    --feyc-primary: #FF7A00;
    max-width: 720px;
    margin: 0 auto;
    background: var(--feyc-paper);
    min-height: 100vh;
}
.feyc-client-header {
    text-align: center;
    color: white;
    padding: 40px 20px 32px;
    position: relative;
}
.feyc-client-logo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 16px;
}
.feyc-client-header h1 {
    color: white;
    font-size: 2rem;
    margin: 0 0 8px;
}
.feyc-client-table {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    margin: 8px 0 0;
}

/* Onglets catégories */
.feyc-cat-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 16px 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--feyc-line);
    scrollbar-width: none;
}
.feyc-cat-tabs::-webkit-scrollbar { display: none; }
.feyc-cat-tabs a {
    padding: 8px 16px;
    background: var(--feyc-paper-2);
    border-radius: 999px;
    text-decoration: none;
    color: var(--feyc-ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: all 0.15s;
}
.feyc-cat-tabs a.feyc-cat-active {
    background: var(--feyc-primary);
    color: white;
}

.feyc-cat-section {
    padding: 24px 20px 8px;
}
.feyc-cat-section h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.feyc-menu-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--feyc-radius);
    margin-bottom: 10px;
    border: 1px solid var(--feyc-line);
    align-items: center;
    transition: all 0.15s;
}
.feyc-menu-item:hover {
    border-color: var(--feyc-primary);
    box-shadow: var(--feyc-shadow-sm);
}
.feyc-menu-info { flex: 1; }
.feyc-menu-info h3 { font-size: 1.05rem; margin: 0 0 4px; }
.feyc-menu-info p { font-size: 0.88rem; color: var(--feyc-ink-soft); margin: 0 0 6px; }
.feyc-menu-price { font-weight: 700; color: var(--feyc-primary); font-size: 1.05rem; }
.feyc-menu-add {
    background: var(--feyc-primary);
    color: white;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.feyc-menu-add:hover { background: var(--feyc-primary-dark); transform: scale(1.08); }
.feyc-menu-add.feyc-added { background: var(--feyc-success); }

/* Barre de panier flottante */
.feyc-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--feyc-ink);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
    z-index: 10;
}
.feyc-cart-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feyc-cart-count {
    background: var(--feyc-primary);
    color: white;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}
.feyc-cart-total { font-weight: 700; font-size: 1.05rem; margin-left: 8px; }
.feyc-cart-btn {
    background: var(--feyc-primary);
    color: white;
    border: 0;
    padding: 12px 22px;
    border-radius: var(--feyc-radius);
    font-weight: 700;
    cursor: pointer;
}

/* Modal panier */
.feyc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
@media (min-width: 600px) { .feyc-modal { align-items: center; } }
.feyc-modal-content {
    background: white;
    width: 100%;
    max-width: 520px;
    border-radius: var(--feyc-radius-lg) var(--feyc-radius-lg) 0 0;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
}
@media (min-width: 600px) {
    .feyc-modal-content { border-radius: var(--feyc-radius-lg); }
}
.feyc-modal-small { max-width: 380px; text-align: center; }
.feyc-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.feyc-modal-head h2 { margin: 0; }
.feyc-modal-close {
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    line-height: 1;
}
.feyc-cart-items { margin-bottom: 16px; }
.feyc-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--feyc-line);
}
.feyc-cart-item-info { flex: 1; }
.feyc-cart-item-name { font-weight: 600; }
.feyc-cart-item-price { font-size: 0.88rem; color: var(--feyc-ink-soft); }
.feyc-cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feyc-cart-qty button {
    background: var(--feyc-paper-2);
    border: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
}
.feyc-cart-table-input, .feyc-cart-phone-input {
    display: block;
    margin-bottom: 14px;
}
.feyc-cart-table-input span, .feyc-cart-phone-input span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.feyc-cart-table-input input, .feyc-cart-phone-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--feyc-line);
    border-radius: var(--feyc-radius);
    font-size: 1rem;
}
.feyc-cart-note { font-size: 0.92rem; margin-bottom: 14px; color: var(--feyc-ink-soft); }
.feyc-cart-footer {
    border-top: 1px solid var(--feyc-line);
    padding-top: 16px;
}
.feyc-cart-grand-total {
    text-align: right;
    font-size: 1.2rem;
    margin-bottom: 14px;
    font-family: var(--feyc-font-display);
}
.feyc-confirm-ref {
    font-family: var(--feyc-font-display);
    font-size: 1.4rem;
    background: var(--feyc-paper-2);
    padding: 12px;
    border-radius: var(--feyc-radius);
    margin: 16px 0;
}

/* Empty states */
.feyc-empty {
    text-align: center;
    color: var(--feyc-ink-soft);
    padding: 40px;
    font-style: italic;
}

/* Page simple */
.feyc-page {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}
.feyc-card {
    background: white;
    border-radius: var(--feyc-radius-lg);
    padding: 40px;
    box-shadow: var(--feyc-shadow);
    border: 1px solid var(--feyc-line);
}

/* Responsive ajustements */
@media (max-width: 600px) {
    .feyc-form { padding: 24px 18px; }
    .feyc-step-panel { padding: 24px 18px; }
    .feyc-admin-header { flex-direction: column; align-items: flex-start; }
    .feyc-data-table { font-size: 0.88rem; }
    .feyc-data-table th, .feyc-data-table td { padding: 10px; }
    .feyc-dyn-row { grid-template-columns: 1fr; }
    .feyc-menu-row { grid-template-columns: 1fr; }
}

/* Print (pour les QR codes) */
@media print {
    .feyc-admin-header, .feyc-admin-nav, .feyc-tabs, .feyc-btn { display: none !important; }
}
