/* ============================================================
   Opaddock - Styles pages /modules/compte/ + dropdown user menu header
   Aucune couleur primaire en dur. Utiliser var(--primary), etc.
   ============================================================ */

/* ---------- Layout pages compte ---------- */
.opd-auth-main {
    max-width: 480px;
    margin: 64px auto;
    padding: 0 24px 80px;
}
.opd-auth-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(15, 23, 42, .06);
    padding: 32px;
}
.opd-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-darker, #0f172a);
    margin: 0 0 8px;
}
.opd-auth-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px;
}
.opd-auth-form {
    display: grid;
    gap: 16px;
}
.opd-form-group { display: grid; gap: 6px; }
.opd-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.opd-input,
.opd-input[type="email"],
.opd-input[type="password"],
.opd-input[type="text"],
.opd-input[type="tel"] {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.opd-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
}
.opd-input.is-invalid {
    border-color: #dc2626;
}
.opd-checkbox-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}
.opd-checkbox-wrap input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}
.opd-btn-primary,
.opd-btn-ghost {
    height: 46px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .05s;
    font-family: inherit;
}
.opd-btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}
.opd-btn-primary:hover { background: var(--primary-dark); }
.opd-btn-primary:active { transform: scale(.98); }
.opd-btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.opd-btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.opd-btn-ghost:hover {
    background: rgba(var(--primary-rgb), .08);
}

/* ---------- Messages ---------- */
.opd-error,
.opd-success,
.opd-info {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 12px;
}
.opd-error {
    background: rgba(220, 38, 38, .08);
    color: #991b1b;
    border-left: 3px solid #dc2626;
}
.opd-success {
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary-darker);
    border-left: 3px solid var(--primary);
}
.opd-info {
    background: rgba(99, 102, 241, .08);
    color: #3730a3;
    border-left: 3px solid #6366f1;
}

/* ---------- Liens secondaires ---------- */
.opd-auth-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 12px;
}
.opd-auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.opd-auth-links a:hover { text-decoration: underline; }
.opd-auth-footer-link {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 24px;
}
.opd-auth-footer-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Password strength meter ---------- */
.opd-pwd-strength {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 4px;
}
.opd-pwd-strength-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width .2s, background .2s;
}
.opd-pwd-strength-bar.is-weak    { background: #ef4444; width: 25%; }
.opd-pwd-strength-bar.is-medium  { background: #f59e0b; width: 60%; }
.opd-pwd-strength-bar.is-strong  { background: var(--primary); width: 100%; }

/* ---------- Header : menu user ---------- */
.opd-user-menu {
    position: relative;
}
.opd-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: border-color .15s;
}
.opd-user-trigger:hover {
    border-color: var(--primary);
}
.opd-user-trigger i {
    color: var(--primary);
    font-size: 18px;
}
.opd-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    padding: 6px;
    display: none;
    z-index: 100;
}
.opd-user-dropdown.is-open {
    display: block;
}
.opd-user-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: background .12s;
}
.opd-user-dropdown a:hover {
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary-darker);
}
.opd-user-dropdown hr {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 6px 4px;
}
.opd-user-dropdown a.opd-danger {
    color: #dc2626;
}
.opd-user-dropdown a.opd-danger:hover {
    background: rgba(220, 38, 38, .08);
}

/* ---------- Buttons connexion/inscription si non logue ---------- */
.opd-auth-buttons {
    display: inline-flex;
    gap: 8px;
}
.opd-auth-buttons a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}
.opd-auth-buttons .opd-btn-ghost-sm {
    color: #334155;
    border: 1.5px solid #e2e8f0;
    background: #fff;
}
.opd-auth-buttons .opd-btn-ghost-sm:hover { border-color: var(--primary); color: var(--primary); }
.opd-auth-buttons .opd-btn-primary-sm {
    background: var(--primary);
    color: #fff;
    border: none;
}
.opd-auth-buttons .opd-btn-primary-sm:hover { background: var(--primary-dark); }

/* ---------- Footer commun ---------- */
.opd-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 48px 24px 24px;
    margin-top: calc(80px + var(--sat,0px));
}
.opd-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.opd-footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}
.opd-footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.opd-footer-cols strong { color: var(--primary-darker, #0f172a); font-size: 16px; }
.opd-footer-cols p { color: #64748b; font-size: 14px; margin: 0; }
.opd-footer-cols a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
}
.opd-footer-cols a:hover { color: var(--primary); }
.opd-footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .opd-footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .opd-auth-main { margin: 24px auto; padding: 0 16px 64px; }
    .opd-auth-card { padding: 24px 20px; border-radius: 14px; }
    .opd-auth-title { font-size: 20px; }
    .opd-auth-buttons .opd-btn-ghost-sm,
    .opd-auth-buttons .opd-btn-primary-sm {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* ============================================================
   Mon compte - Tableau de bord cavalier (modcompte_dashboard.php)
   ============================================================ */

.opd-account-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* ---------- Hero ---------- */
.opd-account-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 32px;
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), .22);
    position: relative;
    overflow: hidden;
}
.opd-account-hero::after {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}
.opd-account-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.opd-account-avatar {
    flex: 0 0 auto;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .5px;
    backdrop-filter: blur(4px);
}
.opd-account-greeting { flex: 1 1 auto; min-width: 0; }
.opd-account-eyebrow {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
}
.opd-account-name {
    margin: 4px 0 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.opd-account-name span {
    opacity: .85;
    font-weight: 500;
    margin-left: 6px;
}
.opd-account-email {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, .14);
    padding: 6px 14px;
    border-radius: 999px;
}
.opd-account-email i { font-size: 16px; }
.opd-account-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .25);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, transform .05s;
    flex: 0 0 auto;
}
.opd-account-logout:hover { background: rgba(255, 255, 255, .28); }
.opd-account-logout:active { transform: scale(.97); }

/* ---------- Grid de cartes ---------- */
.opd-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.opd-account-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
    position: relative;
}
.opd-account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
    border-color: rgba(var(--primary-rgb), .35);
}
.opd-account-card[onclick] { cursor: default; }
.opd-account-card[onclick]:hover { transform: none; border-color: rgba(15, 23, 42, .06); }
.opd-account-card[onclick]:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .05); }

.opd-account-card-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 4px;
}
.opd-icon-emerald {
    background: rgba(var(--primary-rgb), .12);
    color: var(--primary-darker, var(--primary-dark));
}
.opd-icon-amber  { background: rgba(245, 158, 11, .12); color: #b45309; }
.opd-icon-rose   { background: rgba(244, 63, 94, .10);  color: #be123c; }
.opd-icon-slate  { background: rgba(71, 85, 105, .10);  color: #334155; }

.opd-account-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
.opd-account-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    flex: 1 1 auto;
}
.opd-account-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}
.opd-account-card-cta i { transition: transform .15s ease; }
.opd-account-card:hover .opd-account-card-cta i { transform: translateX(3px); }

.opd-account-card-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    align-self: flex-start;
}

.opd-account-meta {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin: 24px 0 0;
}

/* ---------- Pages detaillees (infos, securite) ---------- */
.opd-account-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #94a3b8;
}
.opd-account-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.opd-account-breadcrumb a:hover { color: var(--primary-dark); }
.opd-account-breadcrumb .is-current { color: #334155; font-weight: 600; }

.opd-account-page {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.opd-account-page-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}
.opd-account-page-head h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}
.opd-account-page-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    max-width: 560px;
}
.opd-account-page-icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.opd-account-form {
    display: grid;
    gap: 20px;
}
.opd-account-form .opd-input,
.opd-sec-form .opd-input {
    width: 100%;
    box-sizing: border-box;
}
.opd-account-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.opd-label-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
    margin-left: 4px;
}
.opd-form-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #94a3b8;
}
.opd-form-hint a { color: var(--primary); text-decoration: none; font-weight: 600; }
.opd-form-hint a:hover { text-decoration: underline; }

.opd-input-readonly {
    position: relative;
}
.opd-input-readonly .opd-input {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
    padding-right: 40px;
}
.opd-input-readonly i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 16px;
    pointer-events: none;
}

/* Email display block (read-only, full-width with word-break) */
.opd-email-display {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    min-height: 56px;
    width: 100%;
    box-sizing: border-box;
}
.opd-email-display-icon {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.opd-email-display-value {
    flex: 1 1 auto;
    min-width: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 500;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    letter-spacing: -.1px;
    word-break: break-all;
    line-height: 1.4;
    user-select: all;
}
.opd-email-display-badge {
    flex: 0 0 auto;
    color: #94a3b8;
    background: rgba(255,255,255,.6);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.opd-input-pw {
    position: relative;
    display: block;
    width: 100%;
}
.opd-input-pw .opd-input {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    font-size: 15px;
    padding-right: 48px;
}
.opd-input-pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: background .12s, color .12s;
}
.opd-input-pw-toggle:hover {
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary);
}
.opd-input-pw-toggle i { font-size: 18px; }

.opd-account-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}
.opd-account-form-actions .opd-btn-ghost,
.opd-account-form-actions .opd-btn-primary {
    height: auto;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.opd-account-form-actions .opd-btn-ghost {
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    background: #fff;
}
.opd-account-form-actions .opd-btn-ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.opd-account-sep {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 32px 0 24px;
}

/* ===== Page Securite : redesign step-by-step ===== */
.opd-sec-form {
    display: grid;
    gap: 28px;
}
.opd-sec-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    border: 1px solid #eef1f4;
    border-radius: 18px;
    padding: 24px 26px;
    transition: border-color .2s, box-shadow .2s;
}
.opd-sec-section:focus-within {
    border-color: rgba(var(--primary-rgb), .35);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .06);
}
.opd-sec-section-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.opd-sec-step {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .25);
}
.opd-sec-section-head h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.opd-sec-section-head p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
}

/* Inputs avec icone leading */
.opd-input-leading {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}
.opd-input-pw .opd-input-lead {
    padding-left: 44px;
}
.opd-input-pw:focus-within .opd-input-leading {
    color: var(--primary);
}

/* Strength meter live */
.opd-sec-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.opd-sec-strength-track {
    flex: 1 1 auto;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.opd-sec-strength-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width .25s ease, background .25s ease;
}
.opd-sec-strength-bar.is-empty   { width: 0; }
.opd-sec-strength-bar.is-weak    { width: 25%;  background: #ef4444; }
.opd-sec-strength-bar.is-medium  { width: 50%;  background: #f59e0b; }
.opd-sec-strength-bar.is-good    { width: 80%;  background: #10b981; }
.opd-sec-strength-bar.is-strong  { width: 100%; background: var(--primary); }
.opd-sec-strength-label {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    min-width: 88px;
    text-align: right;
}

/* Checklist live */
.opd-sec-checklist {
    list-style: none;
    padding: 14px 16px;
    margin: 14px 0 0;
    background: #f8fafc;
    border-radius: 12px;
    display: grid;
    gap: 8px;
}
.opd-sec-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    transition: color .15s;
}
.opd-sec-checklist li i {
    font-size: 16px;
    color: #cbd5e1;
    transition: color .15s, transform .2s;
}
.opd-sec-checklist li.is-ok {
    color: #0f172a;
}
.opd-sec-checklist li.is-ok i {
    color: var(--primary);
    transform: scale(1.15);
}
.opd-sec-check-optional {
    color: #94a3b8;
    font-weight: 500;
    margin-left: 4px;
}

/* Session card */
.opd-sec-session {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    margin-top: 8px;
}
.opd-sec-session-icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.7);
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid #fde68a;
}
.opd-sec-session-body { flex: 1 1 auto; min-width: 0; }
.opd-sec-session-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #7c2d12;
}
.opd-sec-session-body p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.55;
}
.opd-sec-session .opd-btn-ghost-danger {
    flex: 0 0 auto;
}

.opd-btn-ghost-danger {
    border: 1.5px solid rgba(220, 38, 38, .25) !important;
    color: #b91c1c !important;
    background: rgba(220, 38, 38, .04) !important;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s;
}
.opd-btn-ghost-danger:hover {
    background: rgba(220, 38, 38, .10) !important;
    border-color: rgba(220, 38, 38, .4) !important;
}

/* Status banners with icons */
.opd-success, .opd-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.opd-success i, .opd-error i { font-size: 18px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .opd-account-shell { padding: 16px 16px 64px; }
    .opd-account-hero { padding: 24px; border-radius: 20px; }
    .opd-account-hero-inner {
        flex-wrap: wrap;
        gap: 16px;
    }
    .opd-account-avatar { width: 64px; height: 64px; font-size: 24px; }
    .opd-account-name { font-size: 22px; }
    .opd-account-logout {
        flex: 1 1 100%;
        justify-content: center;
        order: 3;
    }
    .opd-account-grid { gap: 14px; }
    .opd-account-card { padding: 20px; border-radius: 16px; }
    .opd-account-page { padding: 24px 20px; border-radius: 16px; }
    .opd-account-form-grid-2 { grid-template-columns: 1fr; }
    .opd-account-form-actions { flex-direction: column-reverse; }
    .opd-account-form-actions .opd-btn-ghost,
    .opd-account-form-actions .opd-btn-primary { width: 100%; justify-content: center; }
    .opd-sec-section { padding: 18px 16px; border-radius: 14px; }
    .opd-sec-section-head { gap: 10px; }
    .opd-sec-section-head h2 { font-size: 15px; }
    .opd-sec-strength-label { display: none; }
    .opd-sec-session {
        flex-wrap: wrap;
        padding: 18px;
    }
    .opd-sec-session .opd-btn-ghost-danger {
        width: 100%;
        justify-content: center;
    }
    .opd-email-display { padding: 12px; }
    .opd-email-display-value { font-size: 14px; }
}

/* ============================================================================
   Bloc « Photo de profil » (page Mes informations).
   Aperçu de l'avatar (composant partagé .opd-avatar, css/opd-avatar.css) + actions
   « Changer la photo » / « Retirer la photo ». Tout vient du thème (§1).
   ============================================================================ */
.opd-avatar-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    margin-bottom: 22px;
    border: 1.5px solid var(--primary-100);
    border-radius: 16px;
    background: linear-gradient(150deg, var(--primary-50), transparent 60%);
}
.opd-avatar-section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-darker, var(--primary-dark));
}
.opd-avatar-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
/* Aperçu agrandi : le composant .opd-avatar fait 40px par défaut, on le passe à 96px. */
.opd-avatar.opd-avatar-xl {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    flex: 0 0 auto;
}
.opd-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    flex: 1 1 220px;
}
.opd-avatar-actions .opd-form-hint { margin: 0; }
.opd-avatar-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* Le label sert de bouton (l'input file est caché) : mêmes cotes tactiles (>= 44px). */
.opd-avatar-upload-label,
.opd-avatar-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
}
.opd-avatar-upload-label {
    background: var(--primary);
    color: #fff;
    border: 1.5px solid var(--primary);
}
.opd-avatar-upload-label:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.opd-avatar-upload-label:active { transform: scale(.98); }
/* Focus visible porté par l'input file caché quand on tabule sur le label. */
.opd-avatar-upload-label:focus-within,
.opd-avatar-file:focus + .opd-avatar-upload-label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .35);
}
.opd-avatar-remove-btn:focus-visible,
.opd-avatar-upload-label:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .35);
}
.opd-avatar-remove-btn[hidden] { display: none; }

@media (max-width: 720px) {
    .opd-avatar-row { gap: 14px; }
    .opd-avatar-actions { min-width: 0; flex-basis: 100%; }
    .opd-avatar-btns .opd-avatar-upload-label,
    .opd-avatar-btns .opd-avatar-remove-btn { flex: 1 1 auto; justify-content: center; }
}


/* ── Mes reservations : photo de la structure + bouton d'annulation (11/09/2026) ──
   Une liste de reservations sans visuel se lit comme un tableau de dates : on
   reconnait son sejour a la photo bien avant d'avoir lu le nom. */
.opd-resa-photo {
    flex: 0 0 72px; width: 72px; height: 72px;
    border-radius: 14px; overflow: hidden; display: block;
    background: rgba(var(--primary-rgb), .08);
    margin-right: 14px;
}
.opd-resa-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opd-resa-photo-vide {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 28px;
}

/* Annuler : une action destructrice se propose sans crier. Contour discret au repos,
   plein rouge au survol -- on voit ce qu'on s'apprete a faire au moment de le faire. */
.opd-resa-annuler {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border-radius: 999px;
    border: 1.5px solid #fecdd3;
    background: #fff; color: #e11d48;
    font-family: inherit; font-size: 13.5px; font-weight: 700;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .15s;
}
.opd-resa-annuler:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent; color: #fff;
    box-shadow: 0 6px 18px rgba(225, 29, 72, .3);
}
.opd-resa-annuler:active { transform: translateY(1px); }
.opd-resa-annuler:focus-visible { outline: 2px solid #e11d48; outline-offset: 3px; }

/* Le delai de reponse habituel du gerant : ce qu'on veut savoir en attendant. */
.opd-resa-delai {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 5px 12px; border-radius: 999px;
    background: #fef3c7; color: #92400e;
    font-size: 12.5px; font-weight: 600;
}
@media (max-width: 560px) {
    .opd-resa-photo { width: 56px; height: 56px; flex-basis: 56px; margin-right: 10px; }
    .opd-resa-annuler { width: 100%; justify-content: center; }
}

/* ---------- État vide d'une rubrique du compte ----------
   Écrit le 12/09/2026 : le markup existait (`Mes avis`) mais AUCUNE de ces trois
   classes n'était définie — l'icône sortait en 16px brut et le bouton d'action
   en simple lien souligné. Classes partagées : toute rubrique du compte qui n'a
   rien à montrer reprend ce bloc plutôt que d'en écrire un autre (§00a). */
.opd-account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 56px 24px 60px;
}
.opd-account-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), rgba(var(--primary-rgb), .06));
    margin-bottom: 4px;
}
.opd-account-empty h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}
.opd-account-empty p {
    margin: 0;
    max-width: 46ch;
    font-size: 14.5px;
    line-height: 1.55;
    color: #64748b;
}
/* 44px de hauteur tactile : c'est la seule action de l'écran (§17). */
.opd-account-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px -12px rgba(var(--primary-rgb), .9);
    transition: background .18s, transform .18s, box-shadow .18s;
}
.opd-account-empty-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(var(--primary-rgb), .95);
}
.opd-account-empty-cta:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
@media (max-width: 560px) {
    .opd-account-empty { padding: 40px 16px 44px; }
}

/* ============================================================================
   « VOTRE APPLICATION EQUIMONDO » — une RUBRIQUE du tableau de bord
   ----------------------------------------------------------------------------
   Meme gabarit que les autres cartes (arbitrage du 12/09/2026) : elle occupe une
   cellule de la grille, ni plus large ni plus haute. Ce qui la distingue, c'est
   la COULEUR — fond du theme, contenu en blanc — pas la taille. Un bandeau
   pleine largeur en faisait une publicite posee sous le tableau de bord.
   Toutes les couleurs viennent du theme (§1) : jamais un vert ecrit en dur.
   ========================================================================== */
.opd-eqm-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-color: transparent;
    background: linear-gradient(140deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: #fff;
    box-shadow: 0 14px 32px -18px rgba(var(--primary-rgb), .9);
}
.opd-eqm-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 40px -18px rgba(var(--primary-rgb), .95);
}
/* Tout le contenu passe au BLANC : c'est le seul signal de difference. */
.opd-eqm-card h3,
.opd-eqm-card p,
.opd-eqm-card .opd-eqm-liste li,
.opd-eqm-card .opd-eqm-liste li i { color: #fff; }
.opd-eqm-card p { color: rgba(255, 255, 255, .88); }

.opd-eqm-card-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
.opd-eqm-card-icon i { color: #fff; }

/* Reflet qui balaie la carte, lentement : elle attire l'oeil une fois, elle ne
   clignote pas sous le nez de quelqu'un qui lit le reste de la page. */
.opd-eqm-sheen {
    position: absolute;
    top: 0; left: -140%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
    animation: opdEqmReflet 5.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes opdEqmReflet {
    0%        { left: -140%; }
    55%, 100% { left: 140%; }
}
.opd-eqm-card > *:not(.opd-eqm-sheen) { position: relative; z-index: 1; }

.opd-eqm-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .26);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.opd-eqm-tag i { font-size: 13px; }

/* Les trois atouts : une ligne chacun, en blanc. */
.opd-eqm-liste {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.opd-eqm-liste li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
}
.opd-eqm-liste li i {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .18);
    font-size: 13px;
}

.opd-eqm-card-cta {
    margin-top: auto;
    color: #fff;
    font-weight: 800;
}
.opd-eqm-card-cta i { transition: transform .18s ease; }
.opd-eqm-card:hover .opd-eqm-card-cta i { transform: translateX(4px); }

.opd-eqm-rassure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .78);
}

/* Mouvement reduit : on garde le rendu, on retire le mouvement (§17). */
@media (prefers-reduced-motion: reduce) {
    .opd-eqm-sheen { display: none; }
}
