/* ════════════════════════════════════════════════
   O2 POINTAGE — Styles
   ════════════════════════════════════════════════ */

.o2p-wrapper {
    max-width: 420px;
    margin: 30px auto;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    box-sizing: border-box;
}
.o2p-wrapper * { box-sizing: border-box; }

.o2p-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.o2p-carte-creneau {
    text-align: left;
    margin-bottom: 16px;
    padding: 22px 20px;
}
.o2p-carte-creneau .o2p-bloc-planning {
    margin-bottom: 0;
}
.o2p-erreur-creneau { margin-top: 10px; }
#o2p-liste-creneaux { max-width: 420px; margin: 0 auto; }
#o2p-horloge.o2p-horloge {
    text-align: center;
    margin-bottom: 16px;
}

.o2p-logo {
    width: 56px; height: 56px;
    background: #1A56DB;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.o2p-logo-img {
    width: 64px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
}

.o2p-logo-mini {
    width: 36px;
    height: auto;
    flex-shrink: 0;
}

.o2p-titre { font-size: 19px; font-weight: 800; color: #0F172A; margin: 0 0 4px; }
.o2p-sous-titre { font-size: 13px; color: #64748B; margin: 0 0 20px; }

.o2p-label {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
}

.o2p-input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 16px;
    color: #0F172A;
    outline: none;
    margin-bottom: 10px;
    text-align: left;
}
.o2p-input:focus { border-color: #1A56DB; }

.o2p-input-pin {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 12px;
    padding: 14px;
}

.o2p-btn {
    width: 100%;
    padding: 14px;
    background: #1A56DB;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.o2p-btn:hover { background: #1340A8; }
.o2p-btn:disabled { opacity: .5; cursor: not-allowed; }
.o2p-btn.o2p-btn-rouge { background: #DC2626; }

.o2p-btn-ghost {
    width: 100%;
    padding: 11px;
    background: none;
    color: #64748B;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.o2p-erreur {
    color: #DC2626;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    min-height: 18px;
}

.o2p-header-pointage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    text-align: left;
}
.o2p-header-pointage-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.o2p-nom { font-weight: 800; font-size: 16px; color: #0F172A; }
.o2p-poste { font-size: 12px; color: #64748B; }

.o2p-btn-deco {
    background: #F1F5F9;
    color: #64748B;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.o2p-bloc-planning {
    background: #EEF3FF;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    text-align: left;
}
.o2p-bloc-planning .client-nom { font-weight: 800; font-size: 15px; color: #0F172A; }
.o2p-bloc-planning .client-adresse { font-size: 13px; color: #64748B; margin-top: 4px; }
.o2p-bloc-planning .heure-poste { font-size: 13px; color: #1A56DB; font-weight: 700; margin-top: 8px; }

.o2p-bloc-heures-mois {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    text-align: center;
}
.o2p-heures-mois-label {
    font-size: 12px;
    color: #16A34A;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.o2p-heures-mois-valeur {
    font-size: 26px;
    font-weight: 800;
    color: #15803D;
}

.o2p-horloge {
    font-size: 48px;
    font-weight: 900;
    color: #1A56DB;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.o2p-resultat-box {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.o2p-resultat-box.succes { background: #F0FDF4; border: 1px solid #BBF7D0; }
.o2p-resultat-box.erreur { background: #FEF2F2; border: 1px solid #FECACA; }
.o2p-resultat-icone { font-size: 44px; margin-bottom: 8px; }
.o2p-resultat-titre { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.o2p-resultat-titre.succes-txt { color: #16A34A; }
.o2p-resultat-titre.erreur-txt { color: #DC2626; }
.o2p-resultat-detail { font-size: 13px; line-height: 1.6; }

.o2p-spinner {
    width: 40px; height: 40px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid #1A56DB;
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: o2p-spin 1s linear infinite;
}
@keyframes o2p-spin { to { transform: rotate(360deg); } }

/* ── Styles admin (back-office WordPress) ── */
.o2p-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}
.o2p-admin-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.o2p-admin-stat-val { font-size: 28px; font-weight: 900; line-height: 1; }
.o2p-admin-stat-label { font-size: 12px; color: #64748B; margin-top: 6px; }

.o2p-admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.o2p-admin-table th, .o2p-admin-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
    font-size: 13px;
}
.o2p-admin-table th { background: #F8FAFC; font-weight: 700; color: #0F172A; }

.o2p-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .o2p-wrapper { margin: 10px auto; }
    .o2p-card { padding: 22px 18px; }
    .o2p-admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Espace Admin dédié (front-end, hors wp-admin) ── */
/* "Full bleed" : force le plugin à occuper toute la largeur de l'écran,
   même si le thème WordPress limite normalement la largeur du contenu
   (ex: thèmes avec une colonne centrale de 800-1200px). */
.o2p-admin-espace {
    font-family: 'Segoe UI', -apple-system, sans-serif;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.o2p-admin-login-wrap {
    display: flex;
    justify-content: center;
    padding: 60px 16px;
}
.o2p-admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0F172A;
    color: #fff;
    padding: 14px 28px;
    font-size: 14px;
}
.o2p-admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.o2p-logo-mini-blanc {
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    width: 30px;
}
.o2p-admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}
.o2p-admin-nav {
    display: flex;
    gap: 6px;
    background: #1E293B;
    padding: 10px 28px;
    flex-wrap: wrap;
}
.o2p-admin-nav-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.o2p-admin-nav-btn.active, .o2p-admin-nav-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.o2p-admin-contenu {
    background: #F1F5F9;
    padding: 24px 28px;
    min-height: calc(100vh - 110px);
}
.o2p-admin-contenu .o2p-input { margin-bottom: 12px; }
.o2p-admin-contenu label { font-size: 13px; font-weight: 600; color: #0F172A; }
