
/* DINOT - Identidad institucional */
:root {
    --mvot-blue: #25418e;
    --mvot-sky: #0087d0;
    --mvot-bg: #f5f7fa;
}
body {
    font-family: Sora, "Segoe UI", Arial, sans-serif;
    background: var(--mvot-bg);
    color: #1a1a1a;
    line-height: 1.5;
}
a { color: var(--mvot-blue); }
a:hover { color: #172d69; }
.mvot-brandbar, .header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background: white;
    padding: 20px;
    border-bottom: 4px solid var(--mvot-blue);
    border-radius: 10px;
    margin-bottom: 20px;
}
.mvot-brandbar img, .mvot-logo {
    width: 280px;
    max-width: 100%;
    height: auto;
}
.mvot-brandbar__nombre {
    display: flex;
    flex-direction: column;
    color: var(--mvot-blue);
}
.mvot-brandbar__nombre strong {
    font-size: 1.6rem;
}
#container {
    box-sizing: border-box;
    max-width: 1280px;
    margin-inline: auto;
}
#search, #search_onglet, #resultatrech {
    box-sizing: border-box;
    max-width: 100%;
    padding: 16px;
    background: white;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
}
.navbar-inverse, .btn-primary, input.bouton {
    background: var(--mvot-blue);
    border-color: var(--mvot-blue);
    color: white;
}
.navbar-inverse .navbar-nav > li > a {
    color: white;
}
input, select, textarea, button {
    max-width: 100%;
}
.form-control { border-radius: 8px; }
:where(a,button,input,select,textarea):focus-visible {
    outline: 3px solid #0087d0;
    outline-offset: 2px;
}
@media(max-width:767px) {
    .mvot-brandbar, .header { padding: 12px; }
    .mvot-brandbar img, .mvot-logo { width: 220px; }
    .navbar-form .form-control { width: 100%; }
}

@font-face {
    font-family: Sora;
    src: url('Sora.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}


/* INICIO ENCABEZADO MVOT 2025 */

body#pmbopac {
    background: #f2f2f2;
    color: #1a1a1a;
    font-family: Sora, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
}

#container:has(> #intro) {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 24px;
    width: min(1280px, calc(100% - 40px)) !important;
    max-width: none !important;
    padding: 20px;
    box-sizing: border-box;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(37,65,142,.08);
}

#container > #intro {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
}

#intro #intro_bibli .p1.mvot-brandbar {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    height: auto !important;
    min-height: 125px;
    padding: 24px;
    gap: 24px;
    margin: 0;
    background: #fff !important;
    border: 0;
    border-bottom: 4px solid #25418e;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.mvot-brandbar::after {
    display: none;
}

#intro .mvot-ministerio {
    display: flex;
    align-items: center;
    padding-right: 24px;
    border-right: 1px solid #d9dfe8;
}

#intro #intro_bibli .mvot-ministerio img {
    width: 290px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
}

#intro .mvot-biblioteca {
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 0;
    padding: 0;
    gap: 4px;
    text-align: left;
    color: #25418e;
}

#intro #intro_bibli .mvot-biblioteca img {
    width: 112px !important;
    height: auto !important;
    margin: 0;
}

.mvot-biblioteca span {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mvot-biblioteca strong {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
}

.mvot-biblioteca small {
    font-size: 12px;
    color: #505050;
}

#intro #intro_bibli .p2 {
    height: auto !important;
    margin: 0 !important;
}

#intro_bibli .p2 ul {
    position: relative;
    margin: 0;
}

#container > #main {
    grid-column: 2;
    grid-row: 2;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
}

#container:not(:has(> #bandeau)) > #main {
    grid-column: 1 / -1;
}

#main #main_hors_footer {
    padding-top: 0 !important;
    min-height: 0 !important;
}

#main_header h3 {
    position: static !important;
    margin: 0 !important;
    opacity: 1;
    font-size: 20px;
    color: #25418e;
}

#container > #bandeau {
    grid-column: 1;
    grid-row: 2;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box;
    background: #f7f8fa;
    border: 1px solid #e2e6ec;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

#bandeau #accueil p.centered {
    display: none;
}

#bandeau #accueil #lang_select {
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    background: transparent !important;
}

#bandeau h3 {
    color: #25418e;
    font-size: 14px;
}

#connexion input.login,
#connexion input.password {
    width: 100% !important;
    box-sizing: border-box;
    margin: 5px 0;
}

#navigator {
    padding: 10px;
    background: #f7f8fa;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
}

#search {
    padding: 20px !important;
    margin-top: 18px;
    background: #fff;
    border: 1px solid #dce2ea;
    border-radius: 10px;
}

#main #search ul.search_tabs,
#search_onglet ul.search_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px !important;
    padding: 0;
    list-style: none;
}

#main #search ul.search_tabs li,
#search_onglet ul.search_tabs li {
    float: none;
    background: #edf1f7;
    padding: 9px 12px !important;
    margin: 0 !important;
    border-radius: 6px;
    height: auto !important;
    top: auto !important;
}

#main #search ul.search_tabs li a,
#search_onglet ul.search_tabs li a {
    color: #25418e !important;
}

#main #search ul.search_tabs li#current,
#search_onglet ul.search_tabs li.current {
    background: #25418e !important;
    color: #fff !important;
}

#main #search ul.search_tabs li#current a,
#search_onglet ul.search_tabs li.current a {
    color: #fff !important;
}

#search input.text_query {
    width: min(580px, 100%) !important;
}

input[type="text"],
input[type="password"],
select, textarea {
    font-family: inherit;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #cdd5df;
    border-radius: 5px;
    box-sizing: border-box;
}

input.bouton,
input.boutonrechercher,
input[type="submit"] {
    background: #25418e !important;
    color: white !important;
    font-family: inherit;
    font-size: 13px;
    padding: 9px 13px !important;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

#resultatrech {
    line-height: 1.65;
}

#footer {
    border-top: 1px solid #e2e6ec;
    padding: 18px 0;
    color: #606060;
}

@media(max-width: 760px) {
    #container:has(> #intro) {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 16px) !important;
        padding: 12px;
        gap: 16px;
    }

    #container > #main {
        grid-column: 1;
        grid-row: 2;
    }

    #container > #bandeau {
        grid-column: 1;
        grid-row: 3;
    }

    #intro #intro_bibli .p1.mvot-brandbar {
        padding: 16px;
        gap: 12px;
    }

    #intro .mvot-ministerio {
        border-right: 0;
        padding: 0;
    }

    .mvot-biblioteca strong {
        font-size: 26px;
    }
}

/* FIN ENCABEZADO MVOT 2025 */
