/* =========================================================
   ULTRARP — DESIGN VIOLET MODERNE
   CSS remis en ordre
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --bg: #070014;
    --panel: rgba(18, 8, 38, 0.82);
    --border: rgba(190, 80, 255, 0.28);

    --violet: #8b00ff;
    --violet2: #d000ff;
    --green: #00ff99;

    --text: #ffffff;
    --muted: #cdb8ff;
    --danger: #ff3366;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(139, 0, 255, 0.28), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #05000d, #100025 52%, #060012);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   LAYOUT GLOBAL
   ========================================================= */

.container,
.admin-page,
.pointeuse-admin {
    width: 100%;
    max-width: 1120px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(23, 10, 48, 0.88), rgba(10, 4, 24, 0.92));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(139, 0, 255, 0.28);
    backdrop-filter: blur(18px);
    text-align: center;
}

.dashboard {
    max-width: 1240px;
}


/* =========================================================
   TITRES / TEXTES
   ========================================================= */

h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(208, 0, 255, 0.85);
}

p,
.subtitle {
    color: var(--muted);
    font-size: 17px;
}


/* =========================================================
   FORMULAIRES / BOUTONS
   ========================================================= */

button {
    width: 100%;
    min-height: 56px;
    margin-top: 14px;
    padding: 14px 20px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--violet), var(--violet2));
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow:
        0 12px 28px rgba(139, 0, 255, 0.24),
        0 0 18px rgba(208, 0, 255, 0.28);
    transition: 0.18s ease;
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

input,
select,
textarea {
    width: 100%;
    margin-top: 12px;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(6, 2, 16, 0.78);
    color: #ffffff;
    outline: none;
    font-size: 15px;
}


/* =========================================================
   BOUTON PROFIL EN HAUT
   ========================================================= */

.profile-top-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 5;
}

.profile-top-btn button {
    width: auto;
    min-width: 110px;
    min-height: 46px;
    padding: 11px 18px;
    margin: 0;
}


/* =========================================================
   SHELL MODERNE
   ========================================================= */

.modern-shell {
    width: 100%;
    max-width: 1280px;
    min-height: 720px;
    display: grid;
    grid-template-columns: 270px 1fr;
    background: rgba(7, 2, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(139, 0, 255, 0.23);
    backdrop-filter: blur(18px);
}

/* =========================================================
   Pointeuses du service
   ========================================================= */
.modern-shell.pointeuse-large{
    width: 100%;
    max-width: 1620px;
    min-height: 720px;
    display: grid;
    grid-template-columns: 270px 1fr;
    background: rgba(7, 2, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(139, 0, 255, 0.23);
    backdrop-filter: blur(18px);
}
/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    padding: 26px 18px;
    background: rgba(4, 2, 13, 0.64);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 42px;
}

.brand-badge {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    background: linear-gradient(135deg, var(--violet), var(--violet2));
    box-shadow: 0 0 22px rgba(208, 0, 255, 0.4);
}

.brand-title {
    text-align: left;
}

.brand-title strong {
    display: block;
    font-size: 26px;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(208, 0, 255, 0.7);
}

.brand-title span {
    color: var(--muted);
    font-size: 12px;
}

.nav-label {
    color: #c580ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: left;
    margin: 28px 10px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin: 7px 0;
    border-radius: 14px;
    color: #eee4ff;
    transition: 0.18s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(139, 0, 255, 0.22);
    box-shadow: 0 0 0 1px rgba(208, 0, 255, 0.18) inset;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--violet2);
}


/* =========================================================
   MAIN / TOPBAR
   ========================================================= */

.main {
    padding: 28px 30px;
}

.topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 20px;
}

.status-pill,
.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.7);
}


/* =========================================================
   HERO
   ========================================================= */

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 10%, rgba(208, 0, 255, 0.24), transparent 35%),
        linear-gradient(135deg, rgba(46, 10, 89, 0.86), rgba(12, 3, 28, 0.88));
    border: 1px solid var(--border);
    box-shadow: 0 0 35px rgba(139, 0, 255, 0.16);
    margin-bottom: 18px;
}

.hero-kicker {
    color: #d16bff;
    font-weight: 900;
    letter-spacing: 4px;
    font-size: 13px;
    text-align: left;
}

.hero-title {
    text-align: left;
    font-size: 30px;
    font-weight: 900;
    margin: 10px 0;
}

.hero-sub {
    text-align: left;
    color: #e4d0ff;
}

.clock-card {
    min-width: 210px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(8, 2, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.clock-time {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
}


/* =========================================================
   CARTES INFO
   ========================================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0 28px;
}

.info-card,
.module-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.info-card strong {
    display: block;
    font-size: 25px;
    margin-bottom: 8px;
}

.info-card span {
    color: var(--muted);
}


/* =========================================================
   MODULES
   ========================================================= */

.section-heading {
    margin: 22px 0 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-heading::before {
    content: "";
    width: 3px;
    height: 16px;
    border-radius: 4px;
    background: var(--violet2);
    box-shadow: 0 0 12px rgba(208, 0, 255, 0.9);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(208, 0, 255, 0.45);
    box-shadow: 0 18px 45px rgba(139, 0, 255, 0.18);
}

.module-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.9), rgba(208, 0, 255, 0.75));
    box-shadow: 0 0 22px rgba(208, 0, 255, 0.28);
    font-size: 24px;
}

.module-title {
    font-size: 20px;
    font-weight: 900;
    margin-top: 18px;
}

.module-desc {
    color: #d8c7ff;
    margin-top: 8px;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 14px;
}

th {
    background: rgba(139, 0, 255, 0.42);
    color: #ffffff;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

td {
    background: rgba(20, 5, 45, 0.72);
    color: #ffffff;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.details-scroll {
    max-height: 520px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    margin-top: 15px;
}

.details-scroll table {
    margin-top: 0;
}

.details-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}


/* =========================================================
   MESSAGES / BADGES / UTILITAIRES
   ========================================================= */

.error {
    color: #ff6b8e;
    margin-top: 15px;
    font-weight: 800;
}

.message {
    color: #65ffbd;
    margin: 15px 0;
    font-weight: 800;
}

.small-btn {
    width: auto;
    min-width: 110px;
    min-height: 42px;
    padding: 10px 14px;
    margin: 0;
    font-size: 14px;
    border-radius: 11px;
}

.danger,
.reject-btn {
    background: linear-gradient(135deg, #ff2b5f, #bd0044) !important;
}

.warning {
    background: linear-gradient(135deg, #ff9f1c, #ff5f00) !important;
}

.service-badge,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(139, 0, 255, 0.16);
    border: 1px solid rgba(208, 0, 255, 0.32);
    color: #efc7ff;
    font-weight: 800;
}

.badge-yellow {
    color: #ffd86b;
    border-color: rgba(255, 216, 107, 0.35);
    background: rgba(255, 216, 107, 0.08);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--violet), var(--violet2));
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(208, 0, 255, 0.35);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .modern-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

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

@media (max-width: 720px) {
    body {
        align-items: flex-start;
        padding: 10px;
    }

    .container,
    .admin-page,
    .pointeuse-admin {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .main {
        padding: 18px;
    }

    .topbar,
    .hero-card {
        flex-direction: column;
        align-items: stretch;
    }

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

    .profile-top-btn {
        position: static;
        display: block;
        margin-bottom: 15px;
    }

    table {
        min-width: 900px;
    }
}

/* ACCUEIL MODERNE ULTRARP */

.landing-shell{
    width:100%;
    max-width:1180px;
    min-height:720px;
    position:relative;
    z-index:1;
    padding:34px;
    border-radius:30px;
    background:
        radial-gradient(circle at 15% 10%, rgba(208,0,255,0.22), transparent 35%),
        linear-gradient(180deg, rgba(18,8,38,0.88), rgba(8,3,20,0.94));
    border:1px solid rgba(190,80,255,0.30);
    box-shadow:
        0 30px 100px rgba(0,0,0,0.55),
        0 0 55px rgba(139,0,255,0.25);
    backdrop-filter:blur(18px);
}

.landing-shell.small{
    max-width:860px;
    min-height:auto;
}

.landing-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:70px;
}

.landing-brand{
    display:flex;
    align-items:center;
    gap:14px;
}

.landing-logo{
    width:58px;
    height:58px;
    border-radius:19px;
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:28px;
    background:linear-gradient(135deg,#8b00ff,#d000ff);
    box-shadow:0 0 26px rgba(208,0,255,0.45);
}

.landing-brand strong{
    display:block;
    font-size:28px;
    color:white;
    text-shadow:0 0 18px rgba(208,0,255,0.75);
}

.landing-brand span{
    color:#cdb8ff;
    font-size:14px;
}

.landing-hero{
    max-width:780px;
    margin:0 auto 42px;
    text-align:center;
}

.landing-hero h1{
    font-size:clamp(44px,7vw,78px);
    line-height:1;
    margin:14px 0 18px;
}

.landing-hero p{
    font-size:20px;
    color:#d8c7ff;
}

.landing-services{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
    max-width:880px;
    margin:0 auto;
}

.service-card,
.action-card{
    display:flex;
    align-items:center;
    gap:18px;
    padding:26px;
    min-height:150px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    border:1px solid rgba(255,255,255,0.10);
    box-shadow:0 18px 45px rgba(0,0,0,0.28);
    transition:.22s ease;
    text-align:left;
}

.service-card:hover,
.action-card:hover{
    transform:translateY(-5px);
    border-color:rgba(208,0,255,0.50);
    box-shadow:
        0 22px 55px rgba(0,0,0,0.36),
        0 0 35px rgba(139,0,255,0.22);
}

.service-icon{
    width:68px;
    height:68px;
    flex:none;
    border-radius:22px;
    display:grid;
    place-items:center;
    font-size:30px;
    font-weight:900;
    color:white;
    background:linear-gradient(135deg,#8b00ff,#d000ff);
    box-shadow:0 0 24px rgba(208,0,255,0.35);
}

.service-content{
    flex:1;
}

.service-content h2,
.action-card h2{
    margin:0 0 8px;
    font-size:28px;
    color:white;
}

.service-content p,
.action-card p{
    margin:0;
    color:#d8c7ff;
}

.service-arrow{
    font-size:42px;
    color:#d000ff;
    margin-left:auto;
}

.landing-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    max-width:760px;
    margin:0 auto 22px;
}

.landing-footer{
    margin-top:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#cdb8ff;
    font-weight:800;
}

@media(max-width:800px){
    .landing-shell{
        min-height:auto;
        padding:24px 16px;
        border-radius:22px;
    }

    .landing-top{
        margin-bottom:46px;
    }

    .landing-services,
    .landing-actions{
        grid-template-columns:1fr;
    }

    .service-card,
    .action-card{
        min-height:130px;
        padding:20px;
    }

    .landing-brand strong{
        font-size:22px;
    }
}

/* CONNEXION / INSCRIPTION MODERNE ULTRARP */

.auth-shell{
    width:100%;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    position:relative;
    z-index:1;
}

.auth-card{
    width:100%;
    max-width:560px;
    padding:34px;
    border-radius:28px;
    background:
        radial-gradient(circle at 15% 10%, rgba(208,0,255,0.20), transparent 38%),
        linear-gradient(180deg, rgba(18,8,38,0.92), rgba(8,3,20,0.96));
    border:1px solid rgba(190,80,255,0.30);
    box-shadow:
        0 30px 100px rgba(0,0,0,0.55),
        0 0 55px rgba(139,0,255,0.22);
    backdrop-filter:blur(18px);
}

.auth-brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:34px;
}

.auth-brand strong{
    display:block;
    font-size:28px;
    color:white;
    text-shadow:0 0 18px rgba(208,0,255,0.75);
}

.auth-brand span{
    color:#cdb8ff;
    font-size:14px;
}

.auth-card h1{
    font-size:clamp(40px,6vw,58px);
    line-height:1;
    margin:12px 0 14px;
    text-align:left;
}

.auth-card p{
    text-align:left;
    color:#d8c7ff;
    margin-bottom:26px;
}

.auth-form{
    margin-top:20px;
}

.auth-form label{
    display:block;
    text-align:left;
    color:#e6d6ff;
    font-weight:800;
    margin-top:16px;
    margin-bottom:6px;
    font-size:14px;
}

.auth-form input{
    margin-top:0;
}

.auth-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.auth-error,
.auth-success{
    width:100%;
    margin:18px 0;
    padding:14px 16px;
    border-radius:14px;
    font-weight:800;
    text-align:left;
}

.auth-error{
    color:#ff8daa;
    background:rgba(255,51,102,0.10);
    border:1px solid rgba(255,51,102,0.35);
}

.auth-success{
    color:#72ffbf;
    background:rgba(0,255,153,0.10);
    border:1px solid rgba(0,255,153,0.35);
}

.auth-links{
    margin-top:24px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    color:#cdb8ff;
    font-weight:800;
}

.auth-links a{
    color:#e8d4ff;
}

.auth-links a:hover{
    color:white;
    text-shadow:0 0 12px rgba(208,0,255,0.8);
}

@media(max-width:650px){
    .auth-shell{
        padding:12px;
        align-items:flex-start;
    }

    .auth-card{
        padding:24px 18px;
        border-radius:22px;
    }

    .auth-grid{
        grid-template-columns:1fr;
        gap:0;
    }

    .auth-brand strong{
        font-size:22px;
    }
}
