* =========================================================
   DigiCraft DS — personnel.css
   Version harmonisée avec le design réel de la plateforme
   ========================================================= */

:root{
    --ds-orange:#ff7900;
    --ds-orange-hover:#ff8a1f;
    --ds-black:#050505;
    --ds-black-2:#0b0b0b;
    --ds-field:#1b1b1b;
    --ds-field-hover:#202020;
    --ds-border:#2d2d2d;
    --ds-text:#f5f5f5;
    --ds-muted:#a7a7a7;
}

*{
    box-sizing:border-box;
}

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

body{
    font-family:"Poppins",Arial,sans-serif !important;
    color:var(--ds-text) !important;
    background:
        linear-gradient(rgba(255,121,0,.018) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,121,0,.018) 1px,transparent 1px),
        radial-gradient(circle at 50% 0%,rgba(255,121,0,.045),transparent 45%),
        #050505 !important;
    background-size:64px 64px,64px 64px,100% 100%,auto !important;
}

a{
    text-decoration:none;
}

/* =========================================================
   HEADER — même langage visuel que DigiCraft DS
   ========================================================= */

.ds-header{
    width:100%;
    background:#050505 !important;
    color:#fff !important;
    border-bottom:1px solid #202020;
}

.ds-header-inner{
    min-height:88px;
    padding:10px 5.5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.ds-logo img{
    display:block;
    width:105px;
    max-height:68px;
    object-fit:contain;
}

.ds-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:34px;
}

.ds-nav a{
    color:#fff !important;
    font-size:16px;
    font-weight:600;
    transition:.2s ease;
}

.ds-nav a:hover{
    color:var(--ds-orange) !important;
}

.ds-nav .login{
    padding:10px 18px;
    border:1px solid var(--ds-orange);
    border-radius:8px;
}

.ds-nav .login:hover{
    background:var(--ds-orange);
    color:#111 !important;
}

/* =========================================================
   EN-TÊTE DE PAGE
   ========================================================= */

.ds-hero{
    width:100%;
    padding:55px 20px 38px;
    text-align:center;
    color:#fff !important;
    background:
        radial-gradient(circle at center,rgba(255,121,0,.055),transparent 50%),
        #050505 !important;
    border:0;
}

.container{
    width:min(1120px,calc(100% - 30px));
    margin:0 auto;
}

.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px 15px;
    color:var(--ds-orange) !important;
    background:rgba(255,121,0,.05) !important;
    border:1px solid rgba(255,121,0,.55);
    border-radius:30px;
    font-size:14px;
    font-weight:700;
}

.ds-hero h1{
    margin:18px 0 10px;
    color:#fff !important;
    font-size:clamp(30px,5vw,48px);
    line-height:1.15;
    font-weight:800;
}

.ds-hero p{
    max-width:760px;
    margin:0 auto;
    color:#bcbcbc !important;
    line-height:1.7;
    font-size:15px;
}

/* =========================================================
   ZONE DU FORMULAIRE
   ========================================================= */

.ds-section{
    padding:24px 0 70px;
    background:transparent !important;
}

.ds-card{
    width:100%;
    max-width:1120px;
    margin:0 auto;
    background:#080808 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:hidden;
}

/* Bandeau noir/orange du bloc */
.ds-card-head{
    padding:30px 25px 27px;
    text-align:center;
    color:#fff !important;
    background:#0b0b0b !important;
    border-bottom:4px solid var(--ds-orange) !important;
}

.ds-card-head i{
    display:block;
    margin-bottom:10px;
    color:var(--ds-orange) !important;
    font-size:36px;
}

.ds-card-head h2{
    margin:0 0 8px;
    color:#fff !important;
    font-size:27px;
    font-weight:800;
}

.ds-card-head p{
    margin:0;
    color:#c8c8c8 !important;
    font-size:14px;
}

.ds-body{
    padding:38px 3.5% 50px;
    background:#080808 !important;
}

/* =========================================================
   TITRES DE SECTIONS
   ========================================================= */

.section-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin:31px 0 18px;
    padding-bottom:12px;
    border-bottom:1px solid #292929 !important;
}

.section-title:first-child{
    margin-top:0;
}

.section-title i{
    color:var(--ds-orange) !important;
}

.section-title h3{
    margin:0;
    color:#fff !important;
    font-size:19px;
    font-weight:700;
}

/* =========================================================
   GRILLE
   ========================================================= */

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px 28px;
}

.group{
    margin-bottom:17px;
}

.full{
    grid-column:1/-1;
}

/* =========================================================
   LABELS
   ========================================================= */

label{
    display:block;
    margin-bottom:8px;
    color:#f4f4f4 !important;
    font-size:15px;
    font-weight:700;
}

.required{
    color:var(--ds-orange) !important;
}

/* =========================================================
   CHAMPS — même apparence que l'inscription formation
   ========================================================= */

.input,
.select,
.textarea{
    width:100%;
    min-height:62px;
    padding:14px 18px;
    color:#f2f2f2 !important;
    background:#1b1b1b !important;
    border:1px solid #303030 !important;
    border-radius:12px !important;
    outline:none;
    font-family:"Poppins",Arial,sans-serif;
    font-size:15px;
    transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}

.input:hover,
.select:hover,
.textarea:hover{
    background:#202020 !important;
    border-color:#3b3b3b !important;
}

.input:focus,
.select:focus,
.textarea:focus{
    color:#fff !important;
    background:#1d1d1d !important;
    border-color:var(--ds-orange) !important;
    box-shadow:0 0 0 2px rgba(255,121,0,.12) !important;
}

.input::placeholder,
.textarea::placeholder{
    color:#858585 !important;
    opacity:1;
}

.select option{
    color:#fff;
    background:#1b1b1b;
}

.textarea{
    min-height:125px;
    resize:vertical;
}

input[type="date"]{
    color-scheme:dark;
}

/* =========================================================
   CODE D'ACCÈS
   ========================================================= */

.code-box{
    padding:20px;
    background:#100b07 !important;
    border:1px solid var(--ds-orange) !important;
    border-radius:12px !important;
}

.code-box p{
    margin:0 0 12px;
    color:#d2d2d2 !important;
    font-size:14px;
    line-height:1.65;
}

.code-input{
    min-height:62px;
    text-align:center;
    text-transform:uppercase;
    letter-spacing:2px;
    color:#fff !important;
    background:#1b1b1b !important;
    border-color:#3a3a3a !important;
    font-size:17px;
    font-weight:800;
}

.code-input::placeholder{
    color:#858585 !important;
}

.note{
    display:block;
    margin-top:7px;
    color:#909090 !important;
    font-size:12px;
    line-height:1.5;
}

/* =========================================================
   RÔLES / STATUTS
   ========================================================= */

.roles{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.role{
    position:relative;
}

.role input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
}

.role label{
    display:flex;
    align-items:center;
    min-height:55px;
    margin:0;
    padding:13px 15px;
    color:#ddd !important;
    background:#151515 !important;
    border:1px solid #303030 !important;
    border-radius:10px !important;
    cursor:pointer;
    transition:.2s ease;
}

.role label:hover{
    background:#1d1d1d !important;
    border-color:#505050 !important;
}

.role label i{
    margin-right:9px;
    color:var(--ds-orange) !important;
}

.role input:checked + label{
    color:#fff !important;
    background:rgba(255,121,0,.08) !important;
    border-color:var(--ds-orange) !important;
}

/* =========================================================
   MESSAGES
   ========================================================= */

.info{
    padding:15px 17px;
    color:#aaa !important;
    background:#111 !important;
    border-left:3px solid var(--ds-orange) !important;
    border-radius:8px;
    font-size:13px;
    line-height:1.7;
}

.info i{
    color:var(--ds-orange) !important;
}

.alert{
    padding:14px 16px;
    margin-bottom:22px;
    color:#ff9d9d !important;
    background:rgba(150,0,0,.12) !important;
    border:1px solid rgba(255,80,80,.35) !important;
    border-radius:9px;
}

.success{
    padding:14px 16px;
    margin-bottom:22px;
    color:#91dca7 !important;
    background:rgba(70,180,100,.08) !important;
    border:1px solid rgba(70,180,100,.3) !important;
    border-radius:9px;
}

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

.actions{
    margin-top:30px;
    text-align:center;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:48px;
    padding:12px 25px;
    color:#111 !important;
    background:var(--ds-orange) !important;
    border:1px solid var(--ds-orange) !important;
    border-radius:8px !important;
    font-family:"Poppins",Arial,sans-serif;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    transition:.2s ease;
}

.btn:hover{
    color:#111 !important;
    background:var(--ds-orange-hover) !important;
    transform:translateY(-1px);
}

.btn-dark{
    color:#fff !important;
    background:#171717 !important;
    border-color:#333 !important;
}

.btn-dark:hover{
    color:#fff !important;
    background:#222 !important;
}

.back{
    display:inline-block;
    margin-top:17px;
    color:#999 !important;
    font-size:13px;
    font-weight:600;
}

.back:hover{
    color:var(--ds-orange) !important;
}

/* =========================================================
   TABLEAUX / ADMIN
   ========================================================= */

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

.table{
    width:100%;
    border-collapse:collapse;
    color:#ddd !important;
}

.table th{
    padding:13px;
    color:#fff !important;
    background:#111 !important;
    border-bottom:1px solid #333;
    text-align:left;
    font-size:13px;
}

.table td{
    padding:13px;
    color:#ddd !important;
    background:#080808;
    border-bottom:1px solid #252525;
    font-size:13px;
}

.table tr:hover td{
    background:#111 !important;
}

.pill{
    display:inline-block;
    padding:5px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:800;
}

.pending{
    color:#ffca72 !important;
    background:rgba(255,190,70,.12) !important;
}

.active{
    color:#7ee29d !important;
    background:rgba(82,200,120,.11) !important;
}

.rejected{
    color:#ff8b8b !important;
    background:rgba(255,92,92,.11) !important;
}

/* =========================================================
   PROFIL
   ========================================================= */

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

.profile-box{
    padding:18px;
    background:#111 !important;
    border:1px solid #292929 !important;
    border-radius:10px;
}

.profile-box small{
    display:block;
    margin-bottom:5px;
    color:#888 !important;
}

.profile-box strong{
    color:#fff !important;
}

.role-pills{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.role-pill{
    padding:6px 10px;
    color:#ffad69 !important;
    background:rgba(255,121,0,.08) !important;
    border:1px solid rgba(255,121,0,.35) !important;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer{
    padding:27px 15px;
    color:#999 !important;
    background:#050505 !important;
    border-top:1px solid #1d1d1d;
    text-align:center;
    font-size:13px;
}

.footer strong{
    color:var(--ds-orange) !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:800px){

    .ds-header-inner{
        min-height:auto;
        padding:14px 18px;
        flex-direction:column;
        gap:13px;
    }

    .ds-nav{
        width:100%;
        flex-direction:column;
        gap:4px;
    }

    .ds-nav a{
        width:100%;
        padding:7px 5px;
        text-align:center;
    }

    .ds-nav .login{
        width:auto;
        padding:9px 18px;
    }

    .ds-hero{
        padding:42px 15px 30px;
    }

    .ds-hero h1{
        font-size:31px;
    }

    .ds-section{
        padding:12px 0 50px;
    }

    .ds-body{
        padding:28px 18px 40px;
    }

    .grid,
    .roles,
    .profile-grid{
        grid-template-columns:1fr;
    }

    .full{
        grid-column:auto;
    }

    .input,
    .select,
    .textarea{
        min-height:56px;
    }

    .code-box{
        padding:17px;
    }

    .code-input{
        font-size:15px;
        letter-spacing:1.5px;
    }

    .btn{
        width:100%;
        max-width:360px;
    }
}

@media(max-width:420px){

    .container{
        width:calc(100% - 20px);
    }

    .ds-hero h1{
        font-size:27px;
    }

    .ds-body{
        padding-left:14px;
        padding-right:14px;
    }

    .section-title h3{
        font-size:17px;
    }

    label{
        font-size:14px;
    }

    .input,
    .select,
    .textarea{
        font-size:14px;
    }
}
