/*
|--------------------------------------------------------------------------
| EDID STUDIO PLATFORM
|--------------------------------------------------------------------------
| Dashboard Collaborateur Premium
| Fichier : dashboard.css
| Version : 5.0
|--------------------------------------------------------------------------
| Ce fichier gère :
| - le fond studio
| - la sidebar
| - le header
| - les cartes
| - les vues internes
| - le responsive téléphone
|--------------------------------------------------------------------------
*/

/*==============================================================
01 - RESET GLOBAL
==============================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
    background:#000;
    color:#fff;
    font-family:Inter, Poppins, Arial, sans-serif;
    overflow-x:hidden;
}

/*==============================================================
02 - APPLICATION PRINCIPALE
==============================================================*/

.edid-dashboard-app{
    position:relative;
    display:flex;
    width:100%;
    min-height:100vh;
    color:#fff;
    overflow:hidden;
    background:#000;
}

/* Image de fond studio */

.edid-dashboard-app::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        url("https://soleil-du-sud-record.fr/wp-content/uploads/sites/11/2025/04/espaceclient.png")
        center center / cover no-repeat;
    transform:scale(1.05);
    animation:edidDashboardZoom 35s ease-in-out infinite alternate;
    z-index:0;
}

/* Voile cinéma sombre */

.edid-dashboard-app::after{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(
            135deg,
            rgba(0,0,0,.90),
            rgba(0,0,0,.62),
            rgba(0,0,0,.94)
        );
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    z-index:1;
}

@keyframes edidDashboardZoom{
    from{
        transform:scale(1.05);
    }
    to{
        transform:scale(1.12);
    }
}

/* Tous les éléments internes passent au-dessus du fond */

.edid-sidebar,
.edid-dashboard-content{
    position:relative;
    z-index:5;
}

/*==============================================================
03 - SIDEBAR
==============================================================*/

.edid-sidebar{
    position:fixed;
    top:0;
    left:0;
    width:280px;
    height:100vh;
    background:rgba(5,5,5,.72);
    backdrop-filter:blur(25px);
    -webkit-backdrop-filter:blur(25px);
    border-right:1px solid rgba(247,181,0,.28);
    box-shadow:20px 0 70px rgba(0,0,0,.50);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    z-index:20;
}

/* Logo sidebar */

.edid-sidebar-logo{
    padding:35px 25px;
    text-align:center;
}

.edid-sidebar-logo h2{
    color:#f7b500;
    font-size:28px;
    line-height:1.1;
    letter-spacing:2px;
    text-transform:uppercase;
    text-shadow:0 0 25px rgba(247,181,0,.35);
}

.edid-sidebar-logo span{
    display:block;
    margin-top:8px;
    color:#ddd;
    font-size:13px;
    opacity:.85;
}

/* Menu sidebar */

.edid-sidebar-menu{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:20px;
}

.edid-sidebar-menu a{
    display:flex;
    align-items:center;
    gap:14px;
    padding:15px 18px;
    border-radius:14px;
    text-decoration:none;
    color:#fff;
    border:1px solid transparent;
    transition:.30s;
}

.edid-sidebar-menu a:hover{
    background:rgba(247,181,0,.12);
    border-color:rgba(247,181,0,.30);
    transform:translateX(7px);
}

.edid-sidebar-menu a.active{
    background:linear-gradient(135deg,#f7b500,#ff8a00);
    color:#111;
    font-weight:800;
    box-shadow:0 12px 35px rgba(247,181,0,.30);
}

/* Footer sidebar */

.edid-sidebar-footer{
    padding:25px;
}

.edid-logout{
    display:block;
    text-align:center;
    text-decoration:none;
    color:#fff;
    padding:15px;
    border-radius:14px;
    background:linear-gradient(135deg,#8e1717,#c62828);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 12px 30px rgba(180,0,0,.25);
    transition:.30s;
}

.edid-logout:hover{
    color:#fff;
    transform:translateY(-3px);
    background:linear-gradient(135deg,#b71c1c,#e53935);
}

/*==============================================================
04 - CONTENU PRINCIPAL
==============================================================*/

.edid-dashboard-content{
    margin-left:280px;
    width:calc(100% - 280px);
    min-height:100vh;
    background:transparent;
}

/*==============================================================
05 - HEADER
==============================================================*/

.edid-header{
    min-height:90px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;
    padding:24px 40px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    border-bottom:1px solid rgba(247,181,0,.20);
}

.edid-header-title h1{
    font-size:30px;
    color:#fff;
}

.edid-header-title p{
    color:#bdbdbd;
    margin-top:6px;
}

.edid-header-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.edid-search input{
    width:320px;
    padding:12px 18px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,.08);
    color:#fff;
    outline:none;
}

.edid-search input::placeholder{
    color:#aaa;
}

.edid-header-icon{
    width:48px;
    height:48px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.30s;
}

.edid-header-icon:hover{
    background:#f7b500;
    color:#111;
}

.edid-user{
    display:flex;
    align-items:center;
    gap:14px;
}

.edid-user img{
    border-radius:50%;
    border:2px solid #f7b500;
}

.edid-user span{
    display:block;
    color:#bbb;
    font-size:13px;
}

/*==============================================================
06 - HERO / ACCUEIL
==============================================================*/

.edid-hero{
    margin:40px;
    padding:60px;
    border-radius:25px;
    background:rgba(0,0,0,.56);
    border:1px solid rgba(247,181,0,.28);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    box-shadow:0 25px 80px rgba(0,0,0,.45);
}

.edid-hero h1{
    font-size:clamp(34px,5vw,60px);
    color:#fff;
}

.edid-hero h1 span,
.edid-hero h1 strong{
    color:#f7b500;
}

.edid-hero p{
    margin-top:15px;
    color:#d0d0d0;
}

/*==============================================================
07 - CARTES DASHBOARD
==============================================================*/

.edid-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin:40px;
}

.edid-card,
.edid-dashboard-card,
.edid-project-card,
.edid-production-card,
.edid-panel{
    background:rgba(7,7,7,.62);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    border:1px solid rgba(247,181,0,.28);
    border-radius:22px;
    padding:35px;
    box-shadow:0 20px 60px rgba(0,0,0,.42);
    transition:.35s;
    overflow:hidden;
    position:relative;
}

.edid-card:hover,
.edid-dashboard-card:hover,
.edid-project-card:hover,
.edid-production-card:hover{
    transform:translateY(-7px);
    border-color:#f7b500;
    box-shadow:
        0 28px 75px rgba(0,0,0,.55),
        0 0 30px rgba(247,181,0,.14);
}

.edid-card h3,
.edid-dashboard-card h3{
    color:#fff;
    margin-bottom:18px;
}

.edid-card span{
    font-size:38px;
    color:#f7b500;
    font-weight:bold;
}

/*==============================================================
08 - PANELS
==============================================================*/

.edid-panel{
    margin:40px;
}

.edid-panel h2{
    margin-bottom:22px;
    color:#f7b500;
}

.edid-empty,
.edid-empty-state{
    color:#bdbdbd;
}

/*==============================================================
09 - VUES INTERNES DASHBOARD
==============================================================*/

.edid-dashboard-page{
    width:100%;
    padding:40px;
    animation:edidFade .35s ease;
}

.edid-page-header{
    margin-bottom:35px;
}

.edid-page-header h1{
    font-size:34px;
    font-weight:800;
    color:#fff;
    margin-bottom:8px;
}

.edid-page-header p{
    color:#bdbdbd;
    font-size:15px;
}

.edid-dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:25px;
}

.edid-card-icon{
    font-size:42px;
    margin-bottom:20px;
}

@keyframes edidFade{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:none;
    }
}

/*==============================================================
10 - BOUTONS
==============================================================*/

.edid-dashboard-button,
.edid-project-button,
.edid-production-button{
    display:inline-block;
    margin-top:20px;
    padding:13px 22px;
    border-radius:14px;
    background:linear-gradient(135deg,#f7b500,#ff8a00);
    color:#111 !important;
    text-decoration:none;
    font-weight:800;
    border:none;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(247,181,0,.25);
    transition:.25s;
}

.edid-dashboard-button:hover,
.edid-project-button:hover,
.edid-production-button:hover{
    transform:translateY(-3px);
}

/*==============================================================
11 - PROJETS
==============================================================*/

.edid-project-card{
    display:flex;
    flex-direction:column;
}

.edid-project-cover{
    position:relative;
    height:180px;
    margin:-35px -35px 25px -35px;
    background:
        linear-gradient(rgba(0,0,0,.20),rgba(0,0,0,.65)),
        url("../images/studio-cover.jpg") center center / cover no-repeat;
}

.edid-project-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(transparent,rgba(0,0,0,.55));
}

.edid-project-icon{
    position:absolute;
    bottom:18px;
    left:22px;
    font-size:42px;
}

.edid-project-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
}

.edid-project-header h2{
    color:#fff;
    font-size:24px;
    margin:0;
}

.edid-project-meta{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.edid-project-meta div{
    display:flex;
    flex-direction:column;
}

.edid-project-meta strong{
    color:#f7b500;
    font-size:12px;
    text-transform:uppercase;
    margin-bottom:6px;
}

.edid-project-meta span{
    color:#ddd;
}

.edid-project-footer{
    margin-top:30px;
}

/* Statuts projet */

.edid-status{
    padding:8px 16px;
    border-radius:50px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
}

.edid-status-production{
    background:#1d7d3a;
    color:#fff;
}

.edid-status-validation{
    background:#f7b500;
    color:#111;
}

.edid-status-delivered{
    background:#1d4ed8;
    color:#fff;
}

.edid-status-cancelled{
    background:#c62828;
    color:#fff;
}

.edid-status-pending{
    background:#555;
    color:#fff;
}

/*==============================================================
12 - PRODUCTION
==============================================================*/

.edid-production-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(380px,1fr));
    gap:30px;
    margin-top:35px;
}

.edid-production-table{
    width:100%;
    border-collapse:collapse;
}

.edid-production-table td{
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.edid-production-table td:first-child{
    width:160px;
    color:#f7b500;
    font-weight:700;
}

.edid-upload-zone{
    border:2px dashed rgba(247,181,0,.45);
    border-radius:18px;
    padding:60px 30px;
    text-align:center;
    transition:.30s;
    cursor:pointer;
}

.edid-upload-zone:hover,
.edid-upload-zone.drag-over{
    background:rgba(247,181,0,.10);
    border-color:#f7b500;
    transform:scale(1.02);
}

.edid-upload-zone i{
    font-size:55px;
    color:#f7b500;
    margin-bottom:20px;
}

.edid-upload-zone h3{
    color:#fff;
    margin-bottom:12px;
}

.edid-upload-zone p{
    color:#bbb;
}

.edid-upload-zone input{
    display:none;
}

/*==============================================================
13 - FICHIERS
==============================================================*/

.edid-production-files{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.edid-file{
    display:flex;
    align-items:center;
    gap:15px;
    padding:18px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}

.edid-file i{
    font-size:26px;
    color:#f7b500;
}

/*==============================================================
14 - ACTIVITÉ / COMMENTAIRES
==============================================================*/

.edid-production-actions{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.edid-production-activity{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.edid-activity-item{
    padding:15px;
    border-left:4px solid #f7b500;
    background:rgba(255,255,255,.04);
    border-radius:10px;
}

.edid-activity-date{
    display:block;
    color:#f7b500;
    font-size:13px;
    margin-bottom:8px;
}

.edid-activity-text{
    color:#fff;
}

.edid-production-comment{
    width:100%;
    min-height:160px;
    padding:18px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.05);
    color:#fff;
    resize:vertical;
    outline:none;
}

.edid-production-comment:focus{
    border-color:#f7b500;
}

/*==============================================================
15 - UPLOAD PROGRESS
==============================================================*/

#edid-upload-progress{
    display:none;
    margin-top:20px;
}

.edid-progress-bar{
    width:100%;
    height:12px;
    background:#2b2b2b;
    border-radius:20px;
    overflow:hidden;
    border:1px solid #444;
}

.edid-progress-fill{
    width:0;
    height:100%;
    background:linear-gradient(90deg,#f7b500,#ff8a00);
    transition:width .2s linear;
}

.edid-progress-text{
    margin-top:8px;
    text-align:center;
    color:#f7b500;
    font-weight:700;
    font-size:14px;
}

/*==============================================================
16 - TABLEAUX
==============================================================*/

.edid-dashboard-content table{
    width:100%;
    color:#fff;
    border-collapse:collapse;
}

.edid-dashboard-content th{
    color:#f7b500;
    background:rgba(0,0,0,.35);
    text-transform:uppercase;
    font-size:12px;
}

.edid-dashboard-content td,
.edid-dashboard-content th{
    padding:15px;
    border-bottom:1px solid rgba(255,255,255,.10);
}

/*==============================================================
17 - RESPONSIVE TABLETTE
==============================================================*/

@media(max-width:1000px){

    .edid-sidebar{
        width:230px;
    }

    .edid-dashboard-content{
        width:calc(100% - 230px);
        margin-left:230px;
    }

    .edid-search input{
        width:220px;
    }

}

/*==============================================================
18 - RESPONSIVE TÉLÉPHONE
==============================================================*/

@media(max-width:768px){

    .edid-dashboard-app{
        display:block;
        overflow:visible;
    }

    .edid-sidebar{
        position:relative;
        width:100%;
        height:auto;
        min-height:auto;
        border-right:none;
        border-bottom:1px solid rgba(247,181,0,.25);
    }

    .edid-sidebar-logo{
        padding:22px;
    }

    .edid-sidebar-menu{
        flex-direction:row;
        overflow-x:auto;
        gap:10px;
        padding:12px;
        scrollbar-width:none;
    }

    .edid-sidebar-menu::-webkit-scrollbar{
        display:none;
    }

    .edid-sidebar-menu a{
        flex:0 0 auto;
        white-space:nowrap;
        padding:12px 16px;
    }

    .edid-sidebar-menu a:hover{
        transform:translateY(-2px);
    }

    .edid-sidebar-footer{
        padding:12px;
    }

    .edid-dashboard-content{
        width:100%;
        margin-left:0;
    }

    .edid-header{
        height:auto;
        padding:20px;
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .edid-header-right{
        width:100%;
        flex-wrap:wrap;
    }

    .edid-search{
        width:100%;
    }

    .edid-search input{
        width:100%;
    }

    .edid-hero{
        margin:16px;
        padding:30px;
    }

    .edid-cards{
        margin:16px;
        grid-template-columns:1fr;
    }

    .edid-panel{
        margin:16px;
        padding:22px;
    }

    .edid-dashboard-page{
        padding:18px;
    }

    .edid-dashboard-grid,
    .edid-production-grid{
        grid-template-columns:1fr;
    }

    .edid-project-meta{
        grid-template-columns:1fr;
    }

    .edid-project-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .edid-file{
        flex-direction:column;
        align-items:flex-start;
    }

    .edid-dashboard-button,
    .edid-project-button,
    .edid-production-button{
        width:100%;
        text-align:center;
    }

    .edid-dashboard-content table{
        min-width:700px;
    }

    .edid-dashboard-content .widefat,
    .edid-dashboard-content table{
        display:block;
        overflow-x:auto;
    }

}

/*==============================================================
19 - PETITS TÉLÉPHONES
==============================================================*/

@media(max-width:480px){

    .edid-header-title h1{
        font-size:23px;
    }

    .edid-page-header h1{
        font-size:26px;
    }

    .edid-hero h1{
        font-size:32px;
    }

    .edid-hero{
        padding:24px;
    }

    .edid-card,
    .edid-dashboard-card,
    .edid-production-card,
    .edid-panel{
        padding:20px;
        border-radius:18px;
    }

}

/*==============================================================
20 - SCROLLBAR & SÉLECTION
==============================================================*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#f7b500;
    border-radius:30px;
}

::-webkit-scrollbar-thumb:hover{
    background:#ff9900;
}

::selection{
    background:#f7b500;
    color:#000;
}
/*==============================================================
CORRECTION MENU MOBILE COLLABORATEUR
==============================================================*/

@media(max-width:768px){

    .edid-dashboard-app{
        display:block !important;
        overflow-x:hidden !important;
        overflow-y:auto !important;
    }

    .edid-sidebar{
        position:sticky !important;
        top:0 !important;
        width:100% !important;
        height:auto !important;
        max-height:none !important;
        z-index:9999 !important;
    }

    .edid-sidebar-logo{
        padding:14px !important;
    }

    .edid-sidebar-menu{
        display:flex !important;
        flex-direction:row !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        white-space:nowrap !important;
        padding:10px !important;
        gap:10px !important;
        -webkit-overflow-scrolling:touch !important;
    }

    .edid-sidebar-menu a{
        flex:0 0 auto !important;
        min-width:max-content !important;
        padding:12px 16px !important;
    }

    .edid-sidebar-footer{
        display:none !important;
    }

    .edid-dashboard-content{
        margin-left:0 !important;
        width:100% !important;
        padding-bottom:80px !important;
    }

    .edid-header{
        position:relative !important;
        z-index:5 !important;
    }
}
/*==============================================================
RESPONSIVE COMPLET — PC / TABLETTE / TÉLÉPHONE
==============================================================*/

/*--------------------------------------------------------------
PC — ÉCRANS DE 1200 PX ET PLUS
--------------------------------------------------------------*/

@media(min-width:1200px){

    .edid-sidebar{
        width:280px !important;
    }

    .edid-dashboard-content{
        width:calc(100% - 280px) !important;
        margin-left:280px !important;
    }

    .edid-production-grid{
        grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;
    }

    .edid-production-card{
        min-width:0;
    }

    .edid-file{
        display:flex;
        align-items:center;
        flex-wrap:wrap;
        gap:15px;
    }

    .edid-share-file-form{
        width:100%;
    }

}


/*--------------------------------------------------------------
TABLETTE — DE 769 PX À 1199 PX
--------------------------------------------------------------*/

@media(min-width:769px) and (max-width:1199px){

    .edid-sidebar{
        position:fixed !important;
        width:220px !important;
        height:100vh !important;
        overflow-y:auto !important;
    }

    .edid-sidebar-logo{
        padding:25px 15px !important;
    }

    .edid-sidebar-logo h2{
        font-size:22px !important;
    }

    .edid-sidebar-menu{
        padding:12px !important;
        gap:8px !important;
    }

    .edid-sidebar-menu a{
        padding:12px !important;
        font-size:14px !important;
    }

    .edid-dashboard-content{
        width:calc(100% - 220px) !important;
        margin-left:220px !important;
    }

    .edid-header{
        padding:20px !important;
    }

    .edid-production-grid{
        grid-template-columns:1fr !important;
        gap:22px !important;
    }

    .edid-dashboard-page{
        padding:25px !important;
    }

    .edid-production-card{
        width:100% !important;
        min-width:0 !important;
    }

    .edid-file{
        display:flex !important;
        flex-wrap:wrap !important;
        gap:12px !important;
    }

    .edid-file .edid-dashboard-button{
        width:auto !important;
    }

    .edid-share-file-form{
        width:100% !important;
    }

    .edid-share-file-form select,
    .edid-share-file-form input{
        width:100% !important;
        max-width:100% !important;
    }

}


/*--------------------------------------------------------------
TÉLÉPHONE — JUSQU’À 768 PX
--------------------------------------------------------------*/

@media(max-width:768px){

    .edid-dashboard-app{
        display:block !important;
        overflow-x:hidden !important;
    }

    .edid-sidebar{
        position:sticky !important;
        top:0 !important;
        width:100% !important;
        height:auto !important;
        z-index:9999 !important;
    }

    .edid-sidebar-menu{
        display:flex !important;
        flex-direction:row !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        white-space:nowrap !important;
        gap:10px !important;
        padding:10px !important;
        -webkit-overflow-scrolling:touch;
    }

    .edid-sidebar-menu a{
        flex:0 0 auto !important;
        width:auto !important;
    }

    .edid-dashboard-content{
        width:100% !important;
        margin-left:0 !important;
    }

    .edid-dashboard-page{
        padding:15px !important;
    }

    .edid-production-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:18px !important;
    }

    .edid-production-card{
        width:100% !important;
        min-width:0 !important;
        padding:20px !important;
    }

    .edid-file{
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        width:100% !important;
    }

    .edid-file input[type="checkbox"]{
        width:24px !important;
        height:24px !important;
    }

    .edid-file .edid-dashboard-button{
        width:100% !important;
        text-align:center !important;
    }

    .edid-share-file-form select,
    .edid-share-file-form input,
    .edid-share-file-form button{
        width:100% !important;
        max-width:100% !important;
    }

}