/**
 * Styles OVR - Gestion Membres
 * @package OVR_Gestion_Membres
 * @since 2.0.0
 */

/* --------------------------------------------------------------
   Pages
-------------------------------------------------------------- */

/* Styles spécifiques à la page /se-connecter/ */
body.page-id-21937 .ovr-magic-login-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.page-id-21937 {
    display: flex;
    min-height: 100vh;
    background: #0d0d0d; /* ou une image */
    align-items: center;
    justify-content: center;
    padding: 40px;
}

body.page-id-21937 .ovr-magic-login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
}


/* --------------------------------------------------------------
   1. NOTICES (messages d’erreur, succès, info)
-------------------------------------------------------------- */

.ovr-notice {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    border-left: 4px solid;
    line-height: 1.6;
    animation: fadeIn 0.4s ease-out;
}

.ovr-notice-success {
    background: #edfaef;
    border-color: #00a32a;
    color: #00a32a;
}

.ovr-notice-error {
    background: #fcf0f1;
    border-color: #d63638;
    color: #d63638;
}

.ovr-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ovr-notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.ovr-notice p {
    margin: 0;
}

.ovr-notice a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------
   2. BOUTONS
-------------------------------------------------------------- */

.ovr-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.ovr-btn-primary {
    background: #2271b1;
    color: #fff;
}

.ovr-btn-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ovr-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.ovr-btn-secondary:hover {
    background: #5a6268;
}

.ovr-btn-danger {
    background: #d63638;
    color: #fff;
}

.ovr-btn-danger:hover {
    background: #b32d2e;
}

a.ovr-btn-refuse {
   margin-left:50px;
}

/* --------------------------------------------------------------
   3. FORMULAIRES (login, inscription, mon compte)
-------------------------------------------------------------- */

.ovr-form-intro {
    margin-bottom: 25px;
    color: #666;
}

.ovr-form-group {
    margin-bottom: 20px;
}

.ovr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ovr-form-group input[type="text"],
.ovr-form-group input[type="email"],
.ovr-form-group input[type="password"],
.ovr-form-group input[type="tel"],
.ovr-form-group select,
.ovr-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

.ovr-form-group input:focus,
.ovr-form-group select:focus,
.ovr-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.ovr-form-links {
    margin-top: 20px;
    text-align: center;
}

.ovr-form-links a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.ovr-form-links a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------
   4. CONTAINERS (login, auth, inscription, mon compte)
-------------------------------------------------------------- */

.ovr-login,
.ovr-auth-container,
.ovr-inscription-container,
.ovr-tuilage-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ovr-mon-compte-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.ovr-mon-compte-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

/* --------------------------------------------------------------
   5. DASHBOARD MEMBRE
-------------------------------------------------------------- */

.ovr-dashboard-membre {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ovr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.ovr-dashboard-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.ovr-dashboard-widget:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------
   6. SERVICES
-------------------------------------------------------------- */

.ovr-services-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
}

.ovr-service-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.ovr-service-card:hover {
    border-color: #2271b1;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------------
   7. RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 768px) {
    .ovr-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .ovr-info-grid {
        grid-template-columns: 1fr;
    }

    .ovr-btn {
        width: 100%;
    }
}


/* ============================================================
   TOGGLE SWITCH — Composant générique
   ============================================================ */

.ovr-toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Masquer le checkbox natif */
.ovr-toggle-switch input[type="checkbox"] {
    display: none;
}

/* Fond du switch */
.ovr-toggle-label {
    position: relative;
    width: 46px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.25s ease;
}

/* Pastille */
.ovr-toggle-inner {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

/* Quand activé */
.ovr-toggle-switch input:checked + .ovr-toggle-label {
    background: #0073aa;
}

.ovr-toggle-switch input:checked + .ovr-toggle-label .ovr-toggle-inner {
    transform: translateX(22px);
}

/* Texte Oui/Non */
.ovr-toggle-text {
    font-weight: 600;
    min-width: 30px;
    display: inline-block;
}



</style>