/*
 * futuriste.css — habillage FUTURISTE de la GED aux couleurs du logo NextData
 * (demande du client, 2026-10-13 ; choix a la question posee : « futuriste aux
 * couleurs du logo », theme sombre garde, mises en page du 12/10 conservees).
 *
 * Chargee EN DERNIER par app/Config/templateConfig.php, apres futuristic.css
 * (theme d'origine) et affinage.css (mises en page et charte du 12/10).
 * RETOUR ARRIERE = retirer sa ligne de templateConfig.php.
 *
 * Regle de cette feuille : de la PEINTURE seulement — fonds, bordures, ombres,
 * couleurs de texte, lueurs. Aucune largeur, aucune marge, aucun retrait,
 * aucune grille : la mise en page reste celle d'affinage.css.
 *  - Jamais de `transform` ni de `filter` sur div.action_view (ancrage des
 *    elements fixes) ; jamais de retrait sur div.action_view (main.js en lit
 *    le padding en base 2).
 *  - Tout mouvement est coupe sous `prefers-reduced-motion`.
 *  - Les teintes sont celles du logo : jaune #FFC603, rouge #FF4033.
 * `?v=` dans templateConfig.php : a changer a chaque retouche.
 */

:root {
    --fx-jaune: #ffc603;
    --fx-ambre: #ff9f1a;
    --fx-rouge: #ff4033;
    --fx-degrade: linear-gradient(90deg, #ffc603 0%, #ff9f1a 52%, #ff4033 100%);
    --fx-degrade-doux: linear-gradient(135deg, rgba(255, 198, 3, 0.16), rgba(255, 64, 51, 0.10));
    --fx-verre: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    --fx-trait: rgba(255, 198, 3, 0.20);
    --fx-trait-fort: rgba(255, 198, 3, 0.55);
    --fx-lueur: 0 0 0 1px rgba(255, 198, 3, 0.10), 0 18px 48px rgba(0, 0, 0, 0.50), 0 0 42px rgba(255, 198, 3, 0.05);
    --fx-lueur-vive: 0 0 0 1px rgba(255, 198, 3, 0.55), 0 0 22px rgba(255, 198, 3, 0.32);
    --fx-anneau: 0 0 0 3px rgba(255, 198, 3, 0.16), 0 0 20px rgba(255, 198, 3, 0.22);
}

/* ── 1. Ambiance : halos aux deux couleurs du logo et trame fine ───────── */
html body {
    background-color: #0f0c0c;
    background-image:
        radial-gradient(900px 520px at 8% -8%, rgba(255, 198, 3, 0.11), transparent 62%),
        radial-gradient(820px 560px at 104% 4%, rgba(255, 64, 51, 0.10), transparent 60%),
        radial-gradient(700px 500px at 50% 118%, rgba(255, 159, 26, 0.07), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: auto, auto, auto, 46px 46px, 46px 46px;
    background-attachment: fixed;
}

html body div.wrapper div.action_view {
    background: transparent;
}

html body ::selection {
    background: rgba(255, 198, 3, 0.85);
    color: #1a1200;
}

html body * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 198, 3, 0.45) transparent;
}

/* ── 2. En-tete : verre depoli, filet lumineux aux couleurs du logo ────── */
html body div.wrapper header.main {
    background: rgba(15, 12, 12, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
    border-bottom: 2px solid transparent;
    border-image: var(--fx-degrade) 1;
}

html body div.wrapper header.main a.app_name:link,
html body div.wrapper header.main a.app_name:visited {
    background-image: var(--fx-degrade);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 0.08em;
    text-shadow: none;
    filter: drop-shadow(0 0 14px rgba(255, 198, 3, 0.28));
}

html body div.wrapper header.main h1.title {
    color: #d9cfcb;
    letter-spacing: 0.02em;
}

html body div.wrapper header.main a.menu_switch,
html body div.wrapper header.main a.language_switch,
html body div.wrapper header.main .dropdown-toggle {
    border-color: var(--fx-trait);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html body div.wrapper header.main a.menu_switch:hover,
html body div.wrapper header.main a.language_switch:hover,
html body div.wrapper header.main .dropdown-toggle:hover {
    border-color: var(--fx-trait-fort);
    box-shadow: var(--fx-anneau);
}

/* ── 3. Menu lateral ────────────────────────────────────────────────────── */
html body div.wrapper nav.main_navigation {
    background: linear-gradient(180deg, rgba(22, 18, 18, 0.96), rgba(13, 10, 10, 0.98));
    border-inline-end: 1px solid var(--fx-trait);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
}

html body div.wrapper nav.main_navigation ul.app_navigation li a:hover {
    background: rgba(255, 198, 3, 0.07);
    box-shadow: inset 2px 0 0 rgba(255, 198, 3, 0.55);
}

html body div.wrapper nav.main_navigation ul.app_navigation li.selected > a:link,
html body div.wrapper nav.main_navigation ul.app_navigation li.selected > a:visited {
    background: var(--fx-degrade-doux);
    box-shadow: inset 3px 0 0 var(--fx-jaune), 0 0 24px rgba(255, 198, 3, 0.10);
    color: #ffffff;
}

html body div.wrapper nav.main_navigation ul.app_navigation li.selected > a > svg,
html body div.wrapper nav.main_navigation ul.app_navigation li.selected > a > i {
    color: var(--fx-jaune);
    filter: drop-shadow(0 0 6px rgba(255, 198, 3, 0.55));
}

/* ── 4. Titres de page ─────────────────────────────────────────────────── */
html body div.wrapper div.action_view div.container-fluid > h2:first-child,
html body div.wrapper div.action_view div.page_entete > h2 {
    /* Arrets en PIXELS : le titre est un bloc de toute la largeur ; en pourcentage,
       un titre court ne montrerait que le blanc du debut. */
    background-image: linear-gradient(90deg, #ffffff 0, #ffe38a 70px, #ffc603 170px, #ff9f1a 320px, #ff9f1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.01em;
    filter: drop-shadow(0 0 18px rgba(255, 198, 3, 0.18));
}

/* ── 5. Panneaux : verre, lisere jaune, lueur ──────────────────────────── */
html body div.wrapper div.action_view fieldset,
html body div.wrapper div.action_view form.appForm fieldset,
html body div.wrapper div.action_view form.appForm[action="/cvtheque"] fieldset,
html body div.wrapper div.action_view form.appForm.docoffice_parametres fieldset,
html body div.wrapper div.action_view fieldset.appForm,
html body div.wrapper div.action_view div.show_table,
html body div.wrapper div.action_view div.docoffice_carte,
html body div.wrapper div.modal div.modal-content {
    background-color: rgba(26, 21, 21, 0.78);
    background-image: var(--fx-verre);
    border-color: var(--fx-trait);
    box-shadow: var(--fx-lueur), inset 0 1px 0 rgba(255, 198, 3, 0.38);
}

html body div.wrapper div.action_view fieldset legend,
html body div.wrapper div.action_view form.appForm fieldset legend,
html body div.wrapper div.action_view form.appForm[action="/cvtheque"] fieldset legend,
html body div.wrapper div.action_view fieldset.appForm legend {
    /* Fond opaque : la legende chevauche le lisere du cadre, qui la barrait. */
    background-color: #151111;
    color: var(--fx-jaune);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(255, 198, 3, 0.35);
}

/* ── 6. Tableaux ───────────────────────────────────────────────────────── */
html body div.wrapper table.data {
    background-color: rgba(26, 21, 21, 0.78);
    background-image: var(--fx-verre);
    border-color: var(--fx-trait);
    box-shadow: var(--fx-lueur);
}

html body div.wrapper table.data tr th {
    /* `background-color`, pas `background` : DataTables pose ses fleches de tri en image de fond. */
    background-color: rgba(255, 198, 3, 0.06);
    color: #ffd75a;
    letter-spacing: 0.14em;
    box-shadow: inset 0 -1px 0 var(--fx-trait-fort), inset 0 -10px 18px -14px rgba(255, 198, 3, 0.55);
}

html body div.wrapper table.data tr td {
    background-color: transparent;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

html body div.wrapper table.data tr.odd td {
    background-color: rgba(255, 255, 255, 0.014);
}

html body div.wrapper table.data tbody tr:hover td {
    background-color: rgba(255, 198, 3, 0.065);
}

html body div.wrapper table.data tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--fx-jaune);
}

html body div.wrapper table.data tr.groupe_metier td,
html body div.wrapper table.data tr.groupe_metier:hover td {
    background-image: var(--fx-degrade-doux);
    background-color: rgba(255, 198, 3, 0.03);
    box-shadow: inset 0 2px 0 var(--fx-jaune), inset 0 12px 22px -16px rgba(255, 198, 3, 0.55);
}

/* ── 7. Boutons ────────────────────────────────────────────────────────── */
html body div.wrapper div.action_view input[type=submit],
html body div.wrapper div.action_view input[type=submit].no_float,
html body div.wrapper div.action_view form.appForm[action="/cvtheque"] input[type=submit] {
    background-color: var(--fx-jaune);
    background-image: linear-gradient(135deg, #ffe066 0%, #ffc603 44%, #ff9f1a 100%);
    border-color: rgba(255, 224, 102, 0.9);
    color: #1a1200;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px rgba(255, 198, 3, 0.35), 0 8px 26px rgba(255, 198, 3, 0.26);
    transition: box-shadow 0.18s ease, background-position 0.3s ease;
}

html body div.wrapper div.action_view input[type=submit]:hover,
html body div.wrapper div.action_view input[type=submit]:focus-visible,
html body div.wrapper div.action_view input[type=submit].no_float:hover {
    background-color: #ffd23f;
    background-image: linear-gradient(135deg, #fff0a8 0%, #ffd23f 44%, #ffb347 100%);
    color: #1a1200;
    box-shadow: 0 0 0 1px rgba(255, 224, 102, 0.9), 0 0 32px rgba(255, 198, 3, 0.55), 0 10px 30px rgba(255, 159, 26, 0.30);
}

html body div.wrapper a.button:link,
html body div.wrapper a.button:visited,
html body div.wrapper button.button {
    background-color: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 198, 3, 0.30);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

html body div.wrapper a.button:hover,
html body div.wrapper a.button:focus-visible,
html body div.wrapper button.button:hover,
html body div.wrapper button.button:focus-visible {
    background-color: rgba(255, 198, 3, 0.10);
    border-color: var(--fx-jaune);
    color: #ffffff;
    box-shadow: var(--fx-lueur-vive);
}

/* Suppression : le rouge du logo, pour qu'un geste sans retour ne ressemble pas aux autres. */
html body div.wrapper button.button.button_danger,
html body div.wrapper a.button.button_danger:link,
html body div.wrapper a.button.button_danger:visited {
    background-color: rgba(255, 64, 51, 0.07);
    border-color: rgba(255, 64, 51, 0.50);
    color: #ffb8b2;
}

html body div.wrapper button.button.button_danger:hover,
html body div.wrapper button.button.button_danger:focus-visible,
html body div.wrapper a.button.button_danger:hover,
html body div.wrapper a.button.button_danger:focus-visible {
    background-color: rgba(255, 64, 51, 0.18);
    border-color: var(--fx-rouge);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 64, 51, 0.55), 0 0 22px rgba(255, 64, 51, 0.34);
}

/* ── 8. Champs et listes : anneau lumineux a la prise de main ──────────── */
html body div.wrapper div.action_view input[type=text],
html body div.wrapper div.action_view input[type=password],
html body div.wrapper div.action_view input[type=email],
html body div.wrapper div.action_view input[type=number],
html body div.wrapper div.action_view input[type=date],
html body div.wrapper div.action_view input[type=search],
html body div.wrapper div.action_view textarea,
html body div.wrapper .bootstrap-select > .dropdown-toggle {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html body div.wrapper div.action_view input[type=text]:focus,
html body div.wrapper div.action_view input[type=password]:focus,
html body div.wrapper div.action_view input[type=email]:focus,
html body div.wrapper div.action_view input[type=number]:focus,
html body div.wrapper div.action_view input[type=date]:focus,
html body div.wrapper div.action_view input[type=search]:focus,
html body div.wrapper div.action_view textarea:focus,
html body div.wrapper .bootstrap-select > .dropdown-toggle:focus,
html body div.wrapper .bootstrap-select.show > .dropdown-toggle {
    border-color: var(--fx-jaune);
    box-shadow: var(--fx-anneau);
    outline: 0;
}

html body div.wrapper .bootstrap-select > .dropdown-toggle:hover {
    border-color: var(--fx-trait-fort);
}

html body div.wrapper .bootstrap-select .dropdown-menu {
    background-color: rgba(20, 16, 16, 0.97);
    border-color: var(--fx-trait);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 198, 3, 0.10);
}

html body div.wrapper div.action_view input[type=checkbox],
html body div.wrapper div.action_view input[type=radio] {
    accent-color: var(--fx-jaune);
}

/* ── 9. Pastilles ──────────────────────────────────────────────────────── */
html body div.wrapper div.action_view span.badge,
html body div.wrapper nav.main_navigation ul.app_navigation li a span.badge {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 12px rgba(255, 198, 3, 0.10);
}

/* ── 10. Fiches libelle / valeur ───────────────────────────────────────── */
html body div.wrapper div.action_view div.show_data_label {
    color: #ffd75a;
    letter-spacing: 0.10em;
}

/* ── 11. Page de connexion (hors de div.wrapper : gabarit propre) ───────── */
html body div.action_view.login {
    background-color: transparent;
    background-image: radial-gradient(ellipse 620px 420px at 50% 34%, rgba(255, 198, 3, 0.10) 0%, transparent 70%);
}

html body div.action_view.login div.login_header {
    background: rgba(15, 12, 12, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 2px solid transparent;
    border-image: var(--fx-degrade) 1;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

html body div.action_view.login div.login_box {
    background-color: rgba(26, 21, 21, 0.82);
    background-image: var(--fx-verre);
    border-color: rgba(255, 198, 3, 0.26);
    box-shadow: 0 0 0 1px rgba(255, 198, 3, 0.10), 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 90px rgba(255, 198, 3, 0.10), inset 0 1px 0 rgba(255, 198, 3, 0.50);
}

html body div.action_view.login div.login_box form h1 {
    background-image: linear-gradient(90deg, #ffffff 0%, #ffe38a 45%, #ffc603 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html body div.action_view.login div.login_box form input[type=text],
html body div.action_view.login div.login_box form input[type=password] {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html body div.action_view.login div.login_box form input[type=text]:focus,
html body div.action_view.login div.login_box form input[type=password]:focus {
    border-color: var(--fx-jaune);
    box-shadow: var(--fx-anneau);
    outline: 0;
}

html body div.action_view.login div.login_box form input[type=submit] {
    background-color: var(--fx-jaune);
    background-image: linear-gradient(135deg, #ffe066 0%, #ffc603 44%, #ff9f1a 100%);
    border-color: rgba(255, 224, 102, 0.9);
    color: #1a1200;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px rgba(255, 198, 3, 0.35), 0 8px 26px rgba(255, 198, 3, 0.26);
    transition: box-shadow 0.18s ease;
    animation: fx-souffle 3.6s ease-in-out infinite;
}

html body div.action_view.login div.login_box form input[type=submit]:hover,
html body div.action_view.login div.login_box form input[type=submit]:focus-visible {
    background-image: linear-gradient(135deg, #fff0a8 0%, #ffd23f 44%, #ffb347 100%);
    box-shadow: 0 0 0 1px rgba(255, 224, 102, 0.9), 0 0 32px rgba(255, 198, 3, 0.55), 0 10px 30px rgba(255, 159, 26, 0.30);
    animation: none;
}

html body div.action_view.login div.login_visitor form input[type=submit] {
    border-color: rgba(255, 198, 3, 0.30);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html body div.action_view.login div.login_visitor form input[type=submit]:hover {
    border-color: var(--fx-jaune);
    box-shadow: var(--fx-lueur-vive);
}

/* ── 12. Pied de page ──────────────────────────────────────────────────── */
html body div.wrapper footer.main {
    background: rgba(13, 10, 10, 0.80);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255, 198, 3, 0.55) 30%, rgba(255, 64, 51, 0.55) 70%, transparent) 1;
}

/* ── 13. Mouvement : discret, et coupe a la demande ────────────────────── */
@keyframes fx-souffle {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 198, 3, 0.35), 0 8px 26px rgba(255, 198, 3, 0.22); }
    50% { box-shadow: 0 0 0 1px rgba(255, 198, 3, 0.55), 0 8px 34px rgba(255, 198, 3, 0.40); }
}

html body div.wrapper div.action_view form.appForm[action="/cvtheque"] input[type=submit] {
    animation: fx-souffle 3.6s ease-in-out infinite;
}

html body div.wrapper div.action_view form.appForm[action="/cvtheque"] input[type=submit]:hover {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    html body *,
    html body *::before,
    html body *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ── 14. Telephone : le flou coute cher, la trame se resserre ──────────── */
@media only screen and (max-width: 1000px) {
    html body {
        background-size: auto, auto, auto, 34px 34px, 34px 34px;
        background-attachment: scroll;
    }

    html body div.wrapper header.main,
    html body div.action_view.login div.login_header {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* ── 15. Menu aligne sur celui de nextdata.ma (2026-10-13) ───────────────
 * Demande du client : « appliquer le meme menu sombre sur ged.nextdata.ma ».
 * Memes reperes que nextdata.ma et ai.nextdata.ma : barre anthracite #161214,
 * filet rouge -> jaune -> rouge, entree survolee eclairee avec un repere
 * lumineux, entree courante en jaune, volets a lisere degrade.
 * Peinture seulement, comme toute la feuille : le filet occupe la bordure de
 * 2 px deja presente (pas de pseudo-element), il est anime par son fond.
 */
html body div.wrapper header.main {
    /* Filet ANIME (demande du client du 13/10 au soir), sans element ajoute : c'est un fond de 2 px de
       haut, cale sur le bas de la boite de bordure, qui se voit a travers la bordure transparente de
       2 px deja la. Il defile comme celui de nextdata.ma ; au repos (animations reduites) il est
       centre : rouge, jaune au milieu, rouge. */
    background: linear-gradient(90deg, transparent 0, #ff4033 22%, #ffc603 50%, #ff4033 78%, transparent 100%) 50% 100% / 200% 2px repeat-x border-box,
        rgba(22, 18, 20, 0.90);
    border-image: none;
    animation: fx-filet 9s linear infinite;
}

@keyframes fx-filet {
    from { background-position: 50% 100%; }
    to { background-position: 250% 100%; }
}

html body div.wrapper header.main a.app_name:link,
html body div.wrapper header.main a.app_name:visited {
    background-image: linear-gradient(90deg, #ff4033, #ffc603);
}

html body div.wrapper nav.main_navigation {
    background: rgba(22, 18, 20, 0.97);
    border-image: linear-gradient(180deg, #ff4033, #ffc603 45%, rgba(255, 255, 255, 0.10) 80%) 1;
}

html body div.wrapper nav.main_navigation ul.app_navigation li a:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 3px 0 0 #ffc603, inset 12px 0 14px -10px rgba(255, 198, 3, 0.55);
    color: #ffffff;
}

html body div.wrapper nav.main_navigation ul.app_navigation li.selected > a:link,
html body div.wrapper nav.main_navigation ul.app_navigation li.selected > a:visited {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 3px 0 0 #ffc603, inset 12px 0 14px -10px rgba(255, 64, 51, 0.60);
    color: #ffc603;
}

/* Volets de l'en-tete (langue, compte) : meme volet que les sous-menus de nextdata.ma. */
html body div.wrapper header.main div.user_menu_container ul.user_menu,
html body div.wrapper header.main ul.language_menu {
    background: linear-gradient(rgba(22, 18, 20, 0.97), rgba(22, 18, 20, 0.97)) padding-box,
        linear-gradient(140deg, #ff4033, #ffc603 45%, rgba(255, 255, 255, 0.10) 80%) border-box;
    border-color: transparent;
    box-shadow: 0 22px 50px rgba(15, 10, 12, 0.38);
}

html body div.wrapper header.main div.user_menu_container ul.user_menu li a:link,
html body div.wrapper header.main div.user_menu_container ul.user_menu li a:visited,
html body div.wrapper header.main ul.language_menu li a:link,
html body div.wrapper header.main ul.language_menu li a:visited {
    color: #f4f1ee;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

html body div.wrapper header.main div.user_menu_container ul.user_menu li a:hover,
html body div.wrapper header.main div.user_menu_container ul.user_menu li a:focus-visible,
html body div.wrapper header.main ul.language_menu li a:hover,
html body div.wrapper header.main ul.language_menu li a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 3px 0 0 #ffc603;
    color: #ffffff;
}
