@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#202238;--muted:#74778c;--brand:#6f3ee8;--brand2:#ed4f91;--bg:#f7f7fc;--line:#e8e8f1;--white:#fff;--success:#177245;--danger:#b42332}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;line-height:1.6}h1,h2,h3{font-family:Manrope,Arial,sans-serif;line-height:1.2;letter-spacing:-.025em}h1{font-size:clamp(2rem,4vw,3.4rem)}h2{font-size:clamp(1.4rem,2.5vw,2rem)}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.container{width:min(1120px,calc(100% - 32px));margin:auto;min-height:70vh}.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px max(20px,calc((100vw - 1120px)/2));background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{font:800 1.25rem Manrope;color:var(--ink);white-space:nowrap}.brand span{display:block;font-size:.72rem;color:var(--brand);letter-spacing:.12em;text-transform:uppercase}.site-header nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.site-header nav a{font-size:.92rem;color:var(--ink)}.nav-cta{background:var(--brand);color:#fff!important;padding:9px 14px;border-radius:10px}.hero{display:grid;grid-template-columns:1.4fr .8fr;gap:44px;align-items:center;padding:76px 0 54px}.hero-copy h1{max-width:750px;margin:12px 0 20px}.hero-copy>p{font-size:1.1rem;max-width:620px;color:var(--muted)}.eyebrow{font-size:.76rem;font-weight:800;letter-spacing:.16em;color:var(--brand)}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.hero-card{background:linear-gradient(145deg,#fff,#f0eaff);border:1px solid #e7ddff;border-radius:28px;padding:34px;box-shadow:0 24px 70px #4d2d8e12}.hero-card h2{margin-top:12px}.heart{font-size:4rem;color:var(--brand2)}.pill{display:inline-block;border-radius:999px;background:#eee6ff;color:#5830b9;padding:8px 12px;font-size:.82rem;font-weight:700}.btn{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:11px;padding:12px 18px;font-weight:700;font-family:inherit;cursor:pointer;text-decoration:none!important;gap:8px}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover{background:#592bc9}.btn-secondary{background:#f0edfa;color:#45317b}.btn-danger{background:#fff0f0;color:#a11b2b}.btn-small{padding:7px 10px;font-size:.82rem}.full{width:100%}.section{padding:42px 0 64px}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature,.form-card,.member-card,.plan-card,.stat-card,.chat-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 8px 28px #28224d06}.feature b{color:var(--brand);font-size:1.2rem}.form-card{margin:42px auto;max-width:760px}.form-card.narrow{max-width:500px}.form-card h1{font-size:2rem}.form-card form{display:grid;gap:16px}label{display:grid;gap:7px;font-weight:600;font-size:.92rem}input,textarea,select{width:100%;font:inherit;padding:12px 13px;border:1px solid #d9d9e7;border-radius:10px;background:#fff;color:var(--ink)}input:focus,textarea:focus,select:focus{outline:3px solid #6f3ee820;border-color:var(--brand)}textarea{resize:vertical}.muted,.small{color:var(--muted)}.small{font-size:.82rem}.lead{font-size:1.1rem;color:var(--muted);max-width:720px}.alert{margin:18px 0;padding:13px 16px;border-radius:12px;background:#edf3ff;color:#244d87}.alert-success{background:#e8f7ee;color:#17683b}.alert-danger{background:#fff0f0;color:#a11b2b}.alert-warning{background:#fff5df;color:#815000}.profile-heading{display:flex;gap:16px;align-items:center;margin-bottom:24px}.profile-heading h1{font-size:1.8rem;margin:0}.avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#eee4ff,#ffdfea);color:var(--brand);font-size:1.6rem;font-weight:800;flex-shrink:0}.avatar.large{width:78px;height:78px;font-size:2rem}.inline-panel{background:#f8f6ff;border:1px solid #e8e0ff;border-radius:14px;padding:18px;margin-top:24px}.search-bar{display:flex;gap:10px;max-width:650px;margin:24px 0}.member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.member-card h3{margin-bottom:0}.member-card p{overflow-wrap:anywhere}.plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:850px;margin:30px 0}.plan-card{border-color:#ded4ff}.price{font:800 2rem Manrope;color:var(--brand);margin:10px 0}.price small{font-size:.9rem}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat-card span{display:block;color:var(--muted)}.stat-card strong{font:800 2rem Manrope}.admin-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f6f4fb;font-size:.85rem}td{font-size:.9rem}.action-row{display:flex;gap:6px}.chat-panel{max-width:800px;margin:25px auto}.chat-messages{display:flex;flex-direction:column;gap:10px;padding:18px 0;max-height:420px;overflow:auto}.chat-bubble{max-width:80%;padding:12px 15px;border-radius:14px;background:#f1eff9;align-self:flex-start;overflow-wrap:anywhere}.chat-bubble.mine{background:#e9ddff;align-self:flex-end}.chat-bubble p{margin:0 0 5px;white-space:normal}.chat-bubble small{color:var(--muted)}.site-footer{text-align:center;padding:28px 16px;background:#fff;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted);margin-top:30px}.site-footer p{margin:5px}
@media(max-width:800px){.site-header{position:static;align-items:flex-start;flex-direction:column}.site-header nav{gap:12px}.hero{grid-template-columns:1fr;padding-top:42px;gap:24px}.features,.member-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.container{width:min(100% - 22px,1120px)}.site-header{padding:16px}.site-header nav{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.hero{padding:32px 0}.features,.member-grid,.plans{grid-template-columns:1fr}.form-card{padding:18px;margin:25px auto}.search-bar{flex-direction:column}.action-row{flex-direction:column}.stats-grid{grid-template-columns:1fr 1fr}}

/* Badges des notifications OTANTIKAS Rencontres */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    margin-left: 5px;
    border-radius: 50px;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.notification-badge[hidden] {
    display: none;
}

/* =========================================
   OTANTIKAS RENCONTRES — MESSAGERIE
   ========================================= */

.ng-chat-page {
    max-width: 1050px;
    margin: 0 auto;
    padding-bottom: 35px;
}

.ng-chat-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ng-chat-heading h1 {
    margin: 5px 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: -0.7px;
}

.ng-chat-heading p {
    margin: 0;
    color: #718096;
}

.ng-chat-eyebrow {
    color: #6477d8;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.ng-chat-layout {
    width: 100%;
}

.ng-chat-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 20px;
    box-shadow: 0 12px 38px rgba(30, 45, 80, 0.08);
}

.ng-chat-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f5;
    background: #fff;
}

.ng-chat-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5368c9, #8d78dc);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

.ng-chat-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ng-chat-contact strong {
    color: #202b43;
    font-size: 1.05rem;
}

.ng-chat-contact > span {
    color: #748096;
    font-size: 0.8rem;
}

.ng-chat-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #21b982;
}

.ng-chat-live {
    margin-left: auto;
    color: #78849a;
    font-size: 0.75rem;
    text-align: right;
}

.ng-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: min(58vh, 570px);
    min-height: 300px;
    overflow-y: auto;
    padding: 25px clamp(14px, 4vw, 32px);
    background:
        radial-gradient(circle at top right, #eef1ff 0, transparent 35%),
        #f7f8fc;
    scroll-behavior: smooth;
}

.ng-chat-row {
    display: flex;
    width: 100%;
}

.ng-chat-row.is-mine {
    justify-content: flex-end;
}

.ng-chat-row.is-theirs {
    justify-content: flex-start;
}

.ng-chat-bubble {
    max-width: min(78%, 620px);
    padding: 12px 15px 9px;
    border: 1px solid #e7eaf1;
    border-radius: 17px 17px 17px 5px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(25, 40, 70, 0.035);
}

.ng-chat-row.is-mine .ng-chat-bubble {
    color: #fff;
    border-color: #5269c9;
    border-radius: 17px 17px 5px 17px;
    background: linear-gradient(135deg, #5269c9, #6d63ce);
}

.ng-chat-content {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    line-height: 1.65;
    font-size: 0.95rem;
}

.ng-chat-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
    font-size: 0.7rem;
    color: #8590a3;
}

.ng-chat-row.is-mine .ng-chat-meta {
    color: #e3e7ff;
}

.ng-chat-read {
    font-weight: 700;
}

.ng-chat-form {
    padding: 22px 24px 18px;
    border-top: 1px solid #edf0f5;
    background: #fff;
}

.ng-chat-label {
    display: block;
    margin-bottom: 9px;
    color: #36435c;
    font-size: 0.85rem;
    font-weight: 700;
}

.ng-chat-compose {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.ng-chat-compose textarea {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    max-height: 150px;
    resize: vertical;
    padding: 14px 16px;
    border: 1px solid #dfe4ee;
    border-radius: 13px;
    background: #f9faff;
    color: #25324b;
    font: inherit;
    line-height: 1.5;
    transition: border-color .2s, box-shadow .2s;
}

.ng-chat-compose textarea:focus {
    outline: none;
    border-color: #6477d8;
    box-shadow: 0 0 0 3px rgba(100, 119, 216, .13);
}

.ng-chat-send {
    min-height: 48px;
    white-space: nowrap;
    border-radius: 12px;
}

.ng-chat-send span {
    margin-left: 7px;
}

.ng-chat-hint {
    margin-top: 11px;
    color: #8a94a7;
    font-size: 0.76rem;
    line-height: 1.5;
}

.ng-chat-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-top: 1px solid #eee8ff;
    background: #f8f6ff;
}

.ng-chat-premium strong {
    color: #493e85;
}

.ng-chat-premium p {
    margin: 6px 0 0;
    color: #716b8a;
    font-size: 0.88rem;
    line-height: 1.5;
}

.ng-chat-empty {
    padding: 55px 20px;
    border: 1px solid #e6eaf2;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 38px rgba(30, 45, 80, 0.05);
}

.ng-chat-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #eef0ff;
    color: #5c6fd0;
    font-size: 1.8rem;
}

.ng-chat-empty h2 {
    margin-bottom: 8px;
    color: #26334c;
}

.ng-chat-empty p {
    margin-bottom: 22px;
    color: #78849a;
}

.ng-chat-first-message {
    margin: auto;
    padding: 30px 12px;
    color: #8993a7;
    text-align: center;
}

.ng-chat-first-message span {
    font-size: 2rem;
}

.ng-chat-first-message p {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .ng-chat-heading {
        align-items: flex-start;
    }

    .ng-chat-heading > a {
        width: 100%;
        text-align: center;
    }

    .ng-chat-topbar {
        padding: 15px;
    }

    .ng-chat-live {
        max-width: 95px;
        font-size: 0.68rem;
    }

    .ng-chat-messages {
        height: 55vh;
        min-height: 280px;
        padding: 18px 12px;
    }

    .ng-chat-bubble {
        max-width: 88%;
    }

    .ng-chat-form {
        padding: 16px 12px;
    }

    .ng-chat-compose {
        align-items: stretch;
        flex-direction: column;
    }

    .ng-chat-send {
        width: 100%;
    }

    .ng-chat-premium {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .ng-chat-premium .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   OTANTIKAS RENCONTRES — NAVIGATION
   ========================================= */

.or-nav-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e9edf5;
    box-shadow: 0 5px 22px rgba(32, 45, 78, 0.06);
    backdrop-filter: blur(14px);
}

.or-nav-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.or-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    color: #253451;
    text-decoration: none;
}

.or-nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #5c6fd0, #9466cb);
    box-shadow: 0 5px 13px rgba(92, 111, 208, 0.25);
    font-size: 19px;
}

.or-nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}

.or-nav-brand-text strong {
    color: #263451;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.or-nav-brand-text small {
    color: #7c86a0;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.or-nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.or-nav-link,
.or-nav-register {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #536079;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease,
                transform .2s ease;
}

.or-nav-link > i,
.or-nav-register > i {
    font-size: 14px;
}

.or-nav-link:hover {
    color: #5266c7;
    background: #f0f2ff;
}

.or-nav-register {
    margin-left: 5px;
    padding: 0 17px;
    color: #fff;
    background: linear-gradient(135deg, #596dce, #7865cf);
    box-shadow: 0 4px 12px rgba(89, 109, 206, 0.2);
}

.or-nav-register:hover {
    color: #fff;
    background: linear-gradient(135deg, #485cbb, #6955c0);
    transform: translateY(-1px);
}

.or-nav-logout:hover {
    color: #c33d50;
    background: #fff0f2;
}

.or-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
    background: #e7475d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.or-nav-badge[hidden] {
    display: none;
}

.or-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid #e4e8f1;
    border-radius: 12px;
    color: #384969;
    background: #f8f9fd;
    font-size: 21px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.or-nav-toggle:hover {
    color: #5266c7;
    background: #eef0ff;
}

/* Tablettes et téléphones */
@media (max-width: 900px) {
    .or-nav-inner {
        width: calc(100% - 28px);
        min-height: 70px;
        gap: 12px;
    }

    .or-nav-toggle {
        display: inline-flex;
    }

    .or-nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
        max-height: calc(100dvh - 85px);
        overflow-y: auto;
        padding: 14px;
        border-bottom: 1px solid #e7eaf2;
        background: #fff;
        box-shadow: 0 15px 25px rgba(31, 45, 75, 0.12);
    }

    .or-nav-menu.or-nav-open {
        display: flex;
    }

    .or-nav-link,
    .or-nav-register {
        justify-content: flex-start;
        width: 100%;
        min-height: 47px;
        padding: 0 15px;
        margin: 0;
        border-radius: 11px;
        font-size: 14px;
    }

    .or-nav-link > i,
    .or-nav-register > i {
        width: 22px;
        text-align: center;
    }

    .or-nav-badge {
        margin-left: auto;
    }

    .or-nav-register {
        justify-content: center;
        margin-top: 5px;
    }
}


/* Correction robuste du menu burger mobile */
.or-nav-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    isolation: isolate;
}

.or-nav-inner {
    position: relative;
    z-index: 2;
}

.or-nav-toggle {
    position: relative;
    z-index: 10002;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
    .or-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10001;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        max-height: calc(100vh - 75px);
        max-height: calc(100dvh - 75px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        padding: 12px 16px 18px;
        background: #fff;
        border-top: 1px solid #edf0f5;
        box-shadow: 0 12px 25px rgba(31, 45, 75, .14);

        /* Fermé par défaut */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);

        transition:
            opacity .18s ease,
            transform .18s ease,
            visibility .18s ease;
    }

    .or-nav-menu.or-nav-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .or-nav-menu .or-nav-link,
    .or-nav-menu .or-nav-register {
        display: flex;
        width: 100%;
        min-height: 46px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .or-nav-menu {
        transition: none !important;
    }
}

