﻿/* modern.css */

/* =======================
   DECLARATION DES VARIABLES
========================== */

:root {
    --font-family-base: "Segoe UI", Verdana, sans-serif;
    --font-family-icon: FontAwesome, "Segoe UI", Verdana, sans-serif;
    --font-size-base: 1rem; /* équivaut à ~16px */
    --font-size-small: 0.875rem; /* ~14px */
    --font-size-large: 1.125rem; /* ~18px */

    --primary-color: #507CD1;
    --primary-color-dark: #3f68b1;
    --secondary-color: #6CA0DC;
    --text-color: #333;
    --bg-color: #ffffff;
    --white: #ffffff;
    --border-radius: 0.25rem; /* 4px */
    --box-shadow-soft: 0 2px 5px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 0 5px rgba(80, 124, 209, 0.3);
    --modal-bg: rgba(0, 0, 0, 0.5);
    --modal-content-bg: #fefefe;
    --modal-border-color: #888;
    --modal-padding: 0.625rem; /* 10px */
    --modal-radius: 0.25rem; /* 4px */
    --modal-btn-padding: 0.5rem 1rem; /* 8px 16px */
    --modal-btn-font: 0.875rem; /* 14px */
    --modal-max-width: 25rem; /* 400px */
}

/* =======================
   GLOBAL
========================== */

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

td, tr {
    padding: 0;
    margin: 0;
}

/* =======================
   FORMULAIRE (modern style)
========================== */

form {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    /*box-shadow: 0 10px 25px rgba(0,0,0,0.1);*/
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: 100%;
    margin: 40px auto;
    box-sizing: border-box;
}

/* =======================
   STYLES DES CONTROLS
========================== */

.CTS_label {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem; /* 4px */
    display: inline-block;
}

.CTS_textbox {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    padding: 0.25rem 0.5rem; /* 4px 8px */
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    height: 2rem; /* 32px */
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .CTS_textbox:focus {
        border-color: var(--primary-color);
        box-shadow: var(--box-shadow-hover);
        outline: none;
    }

    .CTS_textbox:hover {
        border-color: var(--primary-color);
        background-color: #f7faff;
        box-shadow: 0 2px 6px rgba(80, 124, 209, 0.15);
    }

.CTS_image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* ombre douce de base */
    cursor: pointer;
    max-width: 100%;
    height: auto;
}

    .CTS_image:hover {
        transform: translateY(-4px); /* soulève l’image */
        box-shadow: 0 6px 18px rgba(80, 124, 209, 0.4); /* ombre plus marquée au survol */
    }

.CTS_dropdown {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    padding: 0.25rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: var(--white);
    height: 2rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .CTS_dropdown:focus {
        border-color: var(--primary-color);
        box-shadow: var(--box-shadow-hover);
        outline: none;
    }

    .CTS_dropdown:hover {
        border-color: var(--primary-color);
        background-color: #f7faff;
        box-shadow: 0 2px 6px rgba(80, 124, 209, 0.15);
    }

.CTS_radio {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

    .CTS_radio:hover {
        background-color: #eef2f7;
        box-shadow: 0 2px 6px rgba(80, 124, 209, 0.2);
        transform: translateY(-1px);
    }

    .CTS_radio:active {
        transform: translateY(0);
        box-shadow: none;
    }

.CTS_checkbox {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

    .CTS_checkbox:hover {
        background-color: #eef2f7;
        box-shadow: 0 2px 6px rgba(80, 124, 209, 0.2);
        transform: translateY(-1px);
    }

    .CTS_checkbox:active {
        transform: translateY(0);
        box-shadow: none;
    }

.CTS_Padding {
    font-family: var(--font-family-icon);
    /*font-size: var(--font-size-large);*/
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--white);
    background-color: var(--secondary-color);
    border: none;
    border-radius: 0.5rem;/*var(--border-radius);*/
    cursor: pointer;
    box-shadow: var(--box-shadow-soft);
    padding: 0.25rem 0.625rem;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
    display: inline-block;
    user-select: none;
    /* Ajouts pour le comportement responsive */
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

    .CTS_Padding:hover {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        box-shadow: 0 6px 18px rgba(80, 124, 209, 0.5);
        transform: translateY(-2px);
    }

    .CTS_Padding:active {
        transform: translateY(0);
        box-shadow: var(--box-shadow-soft);
    }

.CTS_gridview {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-family-base);
    /*font-size: var(--font-size-small);*/
    font-size: var(--font-size-base);
    margin-top: 0.625rem;
    transition: box-shadow 0.3s ease;
}

    .CTS_gridview th {
        background-color: var(--primary-color);
        color: var(--white);
        font-weight: bold;
        padding: 0.625rem;
        /*text-align: left;*/
        text-align: center;
        border: 1px solid #ccc;
        transition: background-color 0.3s ease;
    }

    .CTS_gridview td {
        background-color: #f9f9f9;
        padding: 0.625rem;
        border: 1px solid #ccc;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .CTS_gridview tr:nth-child(even) td {
        background-color: #eef2f7;
    }

    .CTS_gridview tr:hover td {
        background-color: #e3ecf9;
        box-shadow: 0 2px 6px rgba(80, 124, 209, 0.15);
    }

.CTS_gridview_ButtonFieldItemStyle-image {
    text-align: Center;
    width: 20px;
}

.CTS_gridview_ButtonFieldControlStyle-image {
    width: 24px;
    height: 24px;
}

.CTS_fileupload {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    padding: 0.375rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;/*var(--border-radius);*/
    background-color: var(--white);
    color: var(--primary-color-dark);
    cursor: pointer;
}

    .CTS_fileupload:hover {
        border-color: var(--primary-color);
        background-color: #f0f4ff;
    }

/* =======================
   COMPOSANTS RELIEF VIEW ACCUEIL
========================== */
.CTS_ACCUEIL_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center; /* <-- centre les frames horizontalement */
}


.CTS_ACCUEIL_image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* ombre douce de base */
    cursor: pointer;
    max-width: 100%;
    height: 48px;
    width: 48px;
}
    .CTS_ACCUEIL_image:hover {
        transform: translateY(-4px); /* soulève l’image */
        box-shadow: 0 6px 18px rgba(80, 124, 209, 0.4); /* ombre plus marquée au survol */
    }

/* =======================
   COMPOSANTS STYLE IOS ACCUEIL
========================== */
/* Panel général */
.panel-ios {
    background-color: transparent; /* transparent */
    padding: 15px;
    text-align: center;
    display: inline-block;
    align-items: center; /* ❤️ centre tous les éléments horizontalement */
    position: relative;
    width: 104px;
    /*border-radius: 12px;*/
    /*cursor: pointer;*/
}
    .panel-ios:active {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

/* Zone image + badge */
.image-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    background-color: #fff; /* blanc si tu veux un encadré clair */
    border-radius: 12px;
    padding: 6px;
    /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex; /* centrer l'image à l’intérieur */
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    /* 🖱️ Hover uniquement sur image-wrapper */
    .image-wrapper:hover {
        transform: translateY(-2px);
        /*box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);*/
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

/* Image */
.ios-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: none;
    /*border-radius: 8px;*/
    /*width: 100%;
    height: 100%;*/
}

/* Titre */
.ios-label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ios-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Pastille de notification */
.notification-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background-color: var(--primary-color-dark);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%; /* cercle parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    box-shadow: 0 0 0 2px white;
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
}

/* Pastille de notification */
.notification-badgeV {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%; /* cercle parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    box-shadow: 0 0 0 2px white;
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
}

/* ===== Petits laptops / tablettes paysage (≤ 1366px) ===== */
@media (min-width: 1025px) and (max-width: 1366px) {
    .CTS_ACCUEIL_image {
        height: 54px;
        width: 54px;
    }
       /* .CTS_ACCUEIL_image:hover {
            transform: translateY(-5px);
            box-shadow: 0 7px 19px rgba(80, 124, 209, 0.45);
        }*/

    .panel-ios {
        width: 140px;
    }

    .image-wrapper {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        padding: 8px;
    }

    .ios-icon {
        width: 100px;
        height: 100px;
        /*border-radius: 16px;*/
    }

    .ios-label {
        margin-top: 12px;
        font-size: 18px;
    }

    .notification-badge {
        top: -9px;
        left: -9px;
        font-size: 18px;
        width: 30px;
        height: 30px;
        /*box-shadow: 0 0 0 3px white;*/
        /*position: absolute;*/
        /*background-color: var(--primary-color-dark);*/
        /*color: white;*/
        /*font-weight: bold;*/
        /*border-radius: 50%;*/ /* cercle parfait */
        /*display: flex;*/
        /*align-items: center;*/
        /*justify-content: center;*/
        /*text-align: center;*/
        /*line-height: 1;*/
        /*z-index: 10;*/
        /*overflow: hidden;*/
        /*white-space: nowrap;*/
    }

    .notification-badgeV {
        top: -9px;
        right: -9px;
        font-size: 18px;
        width: 30px;
        height: 30px;
        /*background-color: orange;*/
        /*box-shadow: 0 0 0 3px white;*/
        /*position: absolute;*/
        /*background-color: red;*/
        /*color: white;*/
        /*font-weight: bold;*/
        /*border-radius: 50%;*/ /* cercle parfait */
        /*display: flex;*/
        /*align-items: center;*/
        /*justify-content: center;*/
        /*text-align: center;*/
        /*line-height: 1;*/
        /*z-index: 10;*/
        /*overflow: hidden;*/
        /*white-space: nowrap;*/
    }

    .CTS_gridview_ButtonFieldItemStyle-image {
        width: 30px;
    }

    .CTS_gridview_ButtonFieldControlStyle-image {
        width: 30px;
        height: 30px;
    }
}

/* Style mobile/tablette (≤1024px) */
/*@media (min-width: 769px) and (max-width: 1024px) {*/
@media (max-width: 1024px) {
    .CTS_ACCUEIL_image {
        height: 60px;
        width: 60px;
    }
        /*.CTS_ACCUEIL_image:hover {
            transform: translateY(-6px);
            box-shadow: 0 8px 20px rgba(80, 124, 209, 0.45);
        }*/

    .panel-ios {
        width: 220px;
    }

    .image-wrapper {
        width: 180px;
        height: 180px;
        border-radius: 28px;
        padding: 10px;
    }

    .ios-icon {
        width: 180px;
        height: 180px;
        /*border-radius: 20px;*/
    }

    .ios-label {
       margin-top: 16px;
       font-size: 22px;
    }

    .notification-badge {
        top: -12px;
        left: -12px;
        font-size: 24px;
        width: 40px;
        height: 40px;
        /*box-shadow: 0 0 0 4px white;*/
        /*position: absolute;*/
        /*background-color: var(--primary-color-dark);*/
        /*color: white;*/
        /*font-weight: bold;*/
        /*border-radius: 50%;*/
        /*display: flex;*/
        /*align-items: center;*/
        /*justify-content: center;*/
        /*text-align: center;*/
        /*line-height: 1;*/
        /*z-index: 10;*/
        /*overflow: hidden;*/
        /*white-space: nowrap;*/
    }

    .notification-badgeV {
        top: -12px;
        right: -12px;
        font-size: 24px;
        width: 40px;
        height: 40px;
        /*background-color: blue;*/
        /*box-shadow: 0 0 0 4px white;*/
        /*position: absolute;*/
        /*background-color: red;*/
        /*color: white;*/
        /*font-weight: bold;*/
        /*border-radius: 50%;*/
        /*display: flex;*/
        /*align-items: center;*/
        /*justify-content: center;*/
        /*text-align: center;*/
        /*line-height: 1;*/
        /*z-index: 10;*/
        /*overflow: hidden;*/
        /*white-space: nowrap;*/
    }

    .CTS_gridview_ButtonFieldItemStyle-image {
        width: 36px;
    }

    .CTS_gridview_ButtonFieldControlStyle-image {
        width: 36px;
        height: 36px;
    }
}

/* ===== Mobiles (≤ 768px) ===== */
/*@media (max-width: 768px) {
    .CTS_ACCUEIL_image {
        height: 66px;
        width: 66px;
    }*/
        /*.CTS_ACCUEIL_image:hover {
            transform: translateY(-5px);
            box-shadow: 0 7px 19px rgba(80, 124, 209, 0.5);
        }*/

    /*.panel-ios {
        width: 170px;
    }

    .image-wrapper {
        width: 150px;
        height: 150px;
        border-radius: 24px;
    }

    .ios-icon {
        width: 150px;
        height: 150px;*/
        /*border-radius: 18px;*/
/*}

    .ios-label {
        font-size: 28px;
        margin-top: 18px;
    }

    .notification-badge {
        top: -16px;
        left: -16px;
        font-size: 30px;
        width: 50px;
        height: 50px;*/
        /*box-shadow: 0 0 0 4px white;
        position: absolute;
        background-color: var(--primary-color-dark);
        color: white;
        font-weight: bold;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1;
        z-index: 10;*/
    /*}

    .notification-badgeV {
        top: -16px;
        right: -16px;
        background-color: green;
        font-size: 30px;
        width: 50px;
        height: 50px;*/
        /*box-shadow: 0 0 0 4px white;
        position: absolute;
        background-color: red;
        color: white;
        font-weight: bold;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1;
        z-index: 10;*/
    /*}

    .CTS_gridview_ButtonFieldItemStyle-image {
        width: 36px;
    }

    .CTS_gridview_ButtonFieldControlStyle-image {
        width: 36px;
        height: 36px;
    }
}*/

/* =======================
   MODALES
========================== */
.modal,
.VisuPDFmodal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-bg);
}

.modal-content,
.VisuPDFmodal-content {
    background-color: var(--modal-content-bg);
    margin: 15% auto;
    padding: var(--modal-padding);
    border: 1px solid var(--modal-border-color);
    width: 80%;
    max-width: var(--modal-max-width);
    border-radius: var(--modal-radius);
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

/* Spécifique à VisuPDF */
.VisuPDFmodal-content {
    margin: 1% auto;
    max-width: 80%;
    height: 80%;
    max-height: 80%;
}

.modal-footer,
.VisuPDFmodal-footer {
    text-align: right;
}

    .modal-footer button,
    .VisuPDFmodal-footer button {
        cursor: pointer;
        padding: var(--modal-btn-padding);
        background-color: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: var(--modal-radius);
        font-size: var(--modal-btn-font);
        transition: background-color 0.3s ease;
    }

        .modal-footer button:hover,
        .VisuPDFmodal-footer button:hover {
            background-color: var(--primary-color-dark);
        }

/* =======================
   TEXT COLORS / STYLES
========================== */

.CTS_Timer {
    color: #284E98;
    font-weight: bold;
    font-size: medium;
}

.CTS_Vert {
    color: #006400;
}

.CTS_Rouge {
    color: #FF0000;
}

.CTS_Orange {
    color: #FFA500;
}

.CTS_Bleu {
    color: #284E98;
}

/* =======================
   BORDURES 
========================== */

.CTS_Bleu_Bordure {
    border: 2px ridge #507CD1;
    padding: 10px;
}

/* =======================
   TITRES
========================== */

.CTS_ColonneSaisieRH {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    background-color: #507CD1;
    height: 30px;
    color: white;
}

/* =======================
   TABLES
========================== */

.cellPadding {
    padding-left: 2px;
    padding-right: 10px;
}

.table-stripped tr:nth-child(odd) {
    background-color: #EFF3FB;
}

.table-stripped tr:nth-child(even) {
    background-color: #DDDDDD;
}

/* =======================
   IMAGE RESPONSIVE / LOGO
========================== */

.ImgBandeau {
    max-width: 100%;
    height: auto;
}

.logo-fixed {
    max-width: none;
    height: auto;
}

