﻿/* App_Themes/standard/public.css — base applicative (tokens, layout commun).
   Complément : /_shared/Styles/controles.css */

/* =============================================
   1. STYLES DE BASE ET LAYOUT
   ============================================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-item {
    padding: 8px 16px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bs-tertiary-bg);
}

/* =============================================
   3. STYLES DES CONTRÔLES
   ============================================= */

/* SkinID formCheckTableCell / formCheckTableCellSm : voir carerecrut-controls.css (.cr-form-check-table-cell) */
table.table tbody td:has(> input.cr-form-check-table-cell.form-check-input),
table.table tbody td:has(> span input.cr-form-check-table-cell.form-check-input) {
    vertical-align: middle;
}

/* Normalisation globale des CheckBox/Radio WebForms avec Bootstrap/Bootswatch.
   En WebForms, asp:CheckBox applique souvent CssClass sur un span wrapper et non sur le vrai input. */
span.form-check-input {
    display: inline-flex;
    align-items: flex-start;
    width: auto;
    height: auto;
    margin: 0 0.35rem 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    vertical-align: top;
}

span.form-check-input > input[type="checkbox"],
span.form-check-input > input[type="radio"] {
    margin: 0.15rem 0 0 0;
    flex: 0 0 auto;
}

input.form-check-input[type="checkbox"],
input.form-check-input[type="radio"] {
    margin-top: 0.15rem;
    vertical-align: top;
}

span.form-check-input + label.form-check-label,
input.form-check-input + label.form-check-label {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: top;
}

/* Labels et contrôles */
.box-body label { font-weight: normal !important }
button, input, select, textarea { font-family: inherit }

/* Restaurer le caret des DropDownList */
select.form-control,
.form-control select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

/* Bouton extra-small — voir carerecrut-controls.css pour btn-group-sm et pagers */
.btn-xs {
    padding: 5px;
    font-size: 12px !important;
    line-height: 1;
    border-radius: 3px;
    height: 22px;
    min-height: 22px;
}

/* Style pour boutons désactivés */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

/* Style spécifique pour LinkButton désactivé */
a.btn:disabled,
a.btn[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Style pour bouton danger désactivé */
.btn-danger:disabled,
.btn-danger[disabled] {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

/* Style pour classe disabled personnalisée */
.btn.disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Style spécifique pour LinkButton avec classe disabled */
a.btn.disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
    text-decoration: none !important;
}

/* Garder la couleur danger même quand disabled */
.btn-danger.disabled {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.soustitle {
    font-family: avenir, helvetica, arial, sans-serif;
    font-size: 12px;
    font-size: 1vw;
    color: white !important;
    font-weight: lighter !important;
    text-align: center
}

/* Zoom sur images */
.zoom {
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.zoom:hover,
.zoom:active,
.zoom:focus {
    -ms-transform: scale(2.5);
    -moz-transform: scale(2.5);
    -webkit-transform: scale(2.5);
    -o-transform: scale(2.5);
    transform: scale(2.5);
    position: relative;
    z-index: 100;
}

/* Surcharge legend fieldset (base dans /_shared/Styles/controles.css) */
.fieldset legend { font-size: smaller !important; }

.form-control label { margin-right: 10px !important; padding: 3px !important }

/* =============================================
   4. COMPOSANTS DE DATE
   ============================================= */

/* =============================================
   5. ADAPTATIONS RESPONSIVES
   ============================================= */

@media (max-width: 768px) {
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
    }
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* =============================================
   6. IMAGE UTILISATEUR
   ============================================= */

/* Image utilisateur dans la navbar */
.user-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
}

/* =============================================
   CARTES LÉGÈRES
   ============================================= */

/* Style pour cartes avec en-têtes transparents */
.card-light .card-header:not([class*="bg-"]) {
    background-color: transparent !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem 1.25rem !important;
}

/* Titres de cartes (global) */
.card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Titres : ne pas cibler les .card-title dans un en-tête coloré (bg-*), pour garder le texte clair (blanc) */
.card-light .card-body .card-title,
.card-light .card-header:not([class*="bg-"]) .card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--bs-body-color) !important;
    margin-bottom: 0 !important;
}

/* =============================================
   FIN DES STYLES STARTERKIT
   ============================================= */

/* Wrapping element */
.body-content { margin-top: 25px; padding-left: 15px; padding-right: 15px; }

/* Override the default bootstrap behavior where horizontal description lists
   will truncate terms that are too long to fit in the left column
*/
.dl-horizontal dt { white-space: normal; }

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] { max-width: 280px; }

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content { padding: 0; }
}

/* =============================================
   11. STYLES POUR PAGE D'ACCUEIL CANDIDATURE
   ============================================= */

/* Footer transparent pour les cartes de candidature */
.card-footer.bg-transparent {
    background-color: transparent !important;
    border-top: 0 !important;
}