*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;
}

body{
    background:#eef3f8;
    color:#333;
}

.container{
    display:flex;
    min-height:100vh;
}

/*=========================
SIDEBAR
=========================*/

.sidebar{
    width:260px;
    background:#012b57;
    color:#fff;
}

.logo{
    padding:30px 20px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.logo img{
    width:140px;
    height:auto;
    margin-bottom:15px;
}

.logo h2{
    font-size:24px;
    font-weight:700;
}

.menu{
    list-style:none;
    padding:20px 0;
}

.menu li{
    display:flex;
    align-items:center;
    gap:15px;
    padding:16px 25px;
    cursor:pointer;
    transition:.3s;
}

.menu li:hover{
    background:#01448b;
}

.menu li.active{
    background:#0166d3;
    border-left:5px solid #fff;
}

.menu li i{
    width:22px;
    text-align:center;
}

/*=========================
CONTENU
=========================*/

.content{
    flex:1;
    padding:20px;
    width:calc(100% - 260px);
}
.topbar{
    margin-bottom:25px;
}

.topbar h1{
    font-size:30px;
    color:#012b57;
}

.topbar p{
    color:#666;
    margin-top:5px;
}

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

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:25px;
}

.card{
    background:#fff;
    border-radius:12px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    text-align:center;
}

.card i{
    font-size:32px;
    color:#0166d3;
    margin-bottom:15px;
}

.card h4{
    color:#666;
    margin-bottom:10px;
}

.card h2{
    color:#012b57;
    font-size:34px;
}

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

.dashboard{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
}

.box{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    margin-bottom:20px;
}

.box-title{
    background:#012b57;
    color:#fff;
    padding:15px 20px;
    font-size:17px;
    font-weight:600;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#f3f7fb;
    padding:14px;
    border-bottom:1px solid #ddd;
    text-align:left;
}

td{
    padding:14px;
    border-bottom:1px solid #eee;
}

.schema{
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#777;
    font-size:20px;
}

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

@media(max-width:1100px){

.cards{
grid-template-columns:repeat(2,1fr);
}

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

}

@media(max-width:768px){

.container{
flex-direction:column;
}

.sidebar{
width:100%;
}

.cards{
grid-template-columns:1fr;
}

}
.menu li a{
    display:flex;
    align-items:center;
    gap:15px;
    width:100%;
    color:#fff;
    text-decoration:none;
}

.menu li a i{
    width:22px;
    text-align:center;
}


/* Couleurs */

.module1{
background:linear-gradient(135deg,#0D47A1,#1565C0);
}

.module2{
background:linear-gradient(135deg,#0097A7,#26C6DA);
}

.module3{
background:linear-gradient(135deg,#3F51B5,#5C6BC0);
}

.module4{
background:linear-gradient(135deg,#EF6C00,#FB8C00);
}

.module5{
background:linear-gradient(135deg,#C62828,#EF5350);
}

.module6{
background:linear-gradient(135deg,#8E24AA,#AB47BC);
}

.module7{
background:linear-gradient(135deg,#0288D1,#29B6F6);
}

.module8{
background:linear-gradient(135deg,#43A047,#66BB6A);
}

.module9{
background:linear-gradient(135deg,#455A64,#78909C);
}

.module10{
    background:linear-gradient(135deg,#2E7D32,#66BB6A) !important;
}

/*=========================================
BOUTON LANCER L'ANALYSE
=========================================*/

.actions{

    margin-top:35px;

    text-align:center;

}

.btn-analyse{

    display:inline-block;

    background:#012b57;

    color:#ffffff;

    padding:16px 45px;

    border-radius:10px;

    text-decoration:none;

    font-size:18px;

    font-weight:600;

    transition:.3s;

    box-shadow:0 8px 18px rgba(0,0,0,.15);

}

.btn-analyse:hover{

    background:#01448b;

    transform:translateY(-3px);

}

.btn-analyse i{

    margin-right:10px;

}
/*====================================================
            FENÊTRES WATERPILOT
====================================================*/

.fenetre{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    overflow:auto;
    z-index:9999;
}

.contenu-fenetre{

    width:75%;
    max-width:900px;

    max-height:85vh;
	margin:30px auto;

    background:#fff;

    border-radius:15px;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    box-shadow:0 20px 50px rgba(0,0,0,.25);

}

.corps-fenetre form{
    width:100%;
}

.entete-fenetre{
    color:#fff;
    padding:18px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:24px;
    font-weight:600;
}

.entete-fenetre i{
    margin-right:10px;
}

.croix{
    font-size:32px;
    cursor:pointer;
}

.corps-fenetre{

    flex:1 1 auto;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    padding:25px;

    scrollbar-width:thin;

    scrollbar-color:#1565C0 #f2f2f2;

}
.corps-fenetre::-webkit-scrollbar{
    width:10px;
}

.corps-fenetre::-webkit-scrollbar-thumb{
    background:#1565C0;
    border-radius:20px;
}

.corps-fenetre::-webkit-scrollbar-track{
    background:#f2f2f2;
}

.corps-fenetre label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
    color:#444;
}

.corps-fenetre input,
.corps-fenetre select{
    width:100%;
    padding:12px;
    border:1px solid #d8d8d8;
    border-radius:8px;
    font-size:15px;
    margin-bottom:18px;
}

.corps-fenetre input:focus,
.corps-fenetre select:focus{
    border-color:#1565C0;
    outline:none;
}

.pied-fenetre{
    background:#f7f8fa;
    padding:18px;
    text-align:right;
    border-top:1px solid #e5e5e5;
}

.btn-gris{
    background:#7b8794;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    cursor:pointer;
}

.btn-gris:hover{
    background:#65717c;
}

.btn-bleu{
    background:#1565C0;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    cursor:pointer;
    margin-left:10px;
}

.btn-bleu:hover{
    background:#0f4fa0;
}

/*====================================================
        COULEURS DES EN-TÊTES
====================================================*/

.entete-module1{background:#1565C0;}
.entete-module2{background:#1E8449;}
.entete-module3{background:#6F42C1;}
.entete-module4{background:#F39C12;}
.entete-module5{background:#D63031;}
.entete-module6{background:#16A085;}
.entete-module7{background:#0B5ED7;}
.entete-module8{background:#27AE60;}
.entete-module9{background:#2C3E50;}
.entete-module10{background:#558B2F;}

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

.modules-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:16px;

    margin-top:25px;

}


.module-card{

    position:relative;

    overflow:hidden;

    border-radius:16px;

    height:110px;

    padding:18px;

    color:#fff;

    cursor:pointer;

    transition:.30s;

    box-shadow:0 8px 20px rgba(0,0,0,.18);

}

.module-card:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 30px rgba(0,0,0,.25);

}


/*======================
ICONE
======================*/

.module-icon{

    width:44px;

    height:44px;

    border-radius:12px;

    background:rgba(255,255,255,.18);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:20px;

    margin-bottom:14px;

}


.module-card h3{

    margin:0;

    font-size:20px;

    font-weight:700;

}


.module-card p{

    margin-top:8px;

    font-size:12px;

    color:rgba(255,255,255,.92);

}


/*======================
BADGE
======================*/

.module-badge{

    position:absolute;

    top:14px;

    right:16px;

    width:34px;

    height:34px;

    border-radius:50%;

    background:rgba(255,255,255,.20);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:14px;

    font-weight:bold;

}


/*======================
CERCLES
======================*/

.module-card::before{

    content:"";

    position:absolute;

    width:110px;

    height:110px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    right:-25px;

    top:-35px;

}


.module-card::after{

    content:"";

    position:absolute;

    width:70px;

    height:70px;

    border-radius:50%;

    background:rgba(255,255,255,.06);

    right:25px;

    bottom:-25px;

}
.wp-stats{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

margin-bottom:25px;

}

.wp-stat{

border-radius:12px;

transition:.25s;

}

.wp-stat:hover{

transform:translateY(-3px);

}

.wp-stat-icon{

font-size:32px;

width:60px;

height:60px;

display:flex;

align-items:center;

justify-content:center;

border-radius:50%;

background:#f5f7fa;

}

.wp-stat-content h2{

margin:0;

font-size:28px;

}

.wp-stat-content span{

color:#666;

font-size:14px;

}
.wp-table{

width:100%;

border-collapse:collapse;

font-size:14px;

}

.wp-table th{

background:#edf4fa;

padding:12px;

text-align:left;

font-weight:700;

border:1px solid #d9e6f0;

}

.wp-table td{

padding:11px;

border:1px solid #e5edf5;

}

.wp-table tbody tr:nth-child(even){

background:#fafcff;

}

.wp-table tbody tr:hover{

background:#eef7ff;

}
.wp-badge{

padding:5px 12px;

border-radius:30px;

font-size:12px;

font-weight:700;

display:inline-block;

}
/*====================================================
=            CARTES WATERPILOT
====================================================*/

.wp-card{

background:#ffffff;

border:1px solid #dce6ef;

border-radius:12px;

margin-bottom:25px;

overflow:hidden;

box-shadow:0 2px 8px rgba(0,0,0,.05);

transition:.25s;

}

.wp-card:hover{

box-shadow:0 8px 18px rgba(0,0,0,.10);

transform:translateY(-2px);

}
.wp-card-header{

display:flex;

align-items:center;

justify-content:space-between;

padding:16px 22px;

background:linear-gradient(90deg,#0f4c81,#1667aa);

color:#fff;

font-size:18px;

font-weight:700;

}

.wp-card-header i{

margin-right:10px;

font-size:18px;

}
.wp-card-body{

padding:20px;

}
.wp-card-header h3{

margin:0;

font-size:22px;

}
.wp-success{

background:#eaf8ef;

border:1px solid #b7e4c7;

padding:15px;

border-radius:8px;

color:#1b5e20;

font-weight:bold;

}

.wp-success i{

margin-right:8px;

}
.wp-etape{

display:flex;

align-items:center;

margin-bottom:12px;

padding:12px;

background:#f7fbff;

border-left:5px solid #0f4c81;

border-radius:8px;

font-weight:600;

}

.wp-numero{

width:35px;

height:35px;

border-radius:50%;

background:#0f4c81;

color:white;

display:flex;

align-items:center;

justify-content:center;

margin-right:15px;

font-weight:bold;

}
.wp-warning{

background:#fff3cd;

border:1px solid #ffe69c;

padding:15px;

margin-bottom:20px;

border-radius:8px;

color:#856404;

font-weight:bold;

}
.wp-success,
.wp-warning{

border-radius:10px;

padding:16px 18px;

margin-bottom:20px;

font-size:15px;

font-weight:600;

}
.wp-dashboard{

margin-top:25px;

}

.wp-dashboard-left>.wp-card,

.wp-dashboard-right>.wp-card{

margin-bottom:25px;

}
/*====================================================
=            TRAITEMENTS
====================================================*/

.wp-traitement{

display:flex;

align-items:center;

padding:12px;

margin-bottom:12px;

background:#ffffff;

border:1px solid #dbe8f3;

border-radius:8px;

}

.wp-traitement:hover{

background:#f5fbff;

}

.wp-traitement-icone{

width:45px;

height:45px;

border-radius:50%;

background:#0f4c81;

color:#fff;

display:flex;

align-items:center;

justify-content:center;

font-size:18px;

margin-right:15px;

flex-shrink:0;

}

.wp-traitement-texte{

font-weight:600;

color:#23384d;

}
/*====================================================
=            SCHEMA FILIERE
====================================================*/

.wp-schema{

display:flex;

flex-direction:column;

align-items:center;

margin-top:20px;

}

.wp-schema-etape{

display:flex;

align-items:center;

width:100%;

background:#ffffff;

border:1px solid #d9e5ef;

border-radius:10px;

padding:12px;

margin:4px 0;

}

.wp-schema-cercle{

width:42px;

height:42px;

border-radius:50%;

background:#0f4c81;

color:#fff;

display:flex;

align-items:center;

justify-content:center;

font-weight:bold;

margin-right:15px;

flex-shrink:0;

}

.wp-schema-libelle{

font-weight:600;

flex:1;

}

.wp-schema-fleche{

font-size:24px;

color:#0f4c81;

margin:4px 0;

}
