/* =========================
   PAGE COMPTE / DASHBOARD
========================= */

.offclass-account-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === HEADER COMPTE === */
.oc-account-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.oc-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.oc-user-info h2 {
    font-size: 1.5rem;
    margin: 0;
}

.oc-user-info p {
    font-size: 0.95rem;
    color: #666;
    margin: 0.2rem 0 1rem;
}

/* === BOUTONS === */
.oc-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.oc-btn.logout {
    background-color: #c0392b;
}

.oc-btn:hover {
    background-color: #444;
}

/* === NAVIGATION COMPTE === */
.oc-account-navigation {
    margin-bottom: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.oc-account-content {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* =========================
   FAVORIS
========================= */

.favoris-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.favoris-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.favoris-item {
    background-color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.favoris-item:hover {
    transform: translateY(-4px);
}

.favoris-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #1f2937;
}

.favoris-thumbnail {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.favoris-name {
    padding: 0.75rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    background-color: #ffffff;
}

.remove-fav-button {
    margin: 0.5rem auto 0.8rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-fav-button:hover {
    background-color: #dc2626;
}

/* =========================
   NOTIFICATIONS
========================= */

.btn-notif-toggle {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-notif-toggle:hover {
    background-color: #2563eb;
}

/* Tooltip */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
    cursor: pointer;
}

.tooltip-icon {
    font-size: 1rem;
    color: #6b7280;
}

.tooltip-content {
    visibility: hidden;
    width: 260px;
    background-color: #1f2937;
    color: #fff;
    border-radius: 6px;
    padding: 0.75rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tooltip-wrapper:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* =========================
   ULTIMATE MEMBER
========================= */

.um,
.um-form {
    max-width: 420px;
    margin: 3rem auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.um .um-field {
    margin-bottom: 1.5rem;
}

.um .um-field-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
    color: #1f2937;
}

.um .um-form input[type="text"],
.um .um-form input[type="email"],
.um .um-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: #f9fafb;
    font-size: 1rem;
}

.um .um-button {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.um .um-button:hover {
    background-color: #2563eb;
}
