/*
 * 30573: ParuVendu.re > migration en copix
 * Styles des composants du front paruvendu.re
 * (equivalent des styles encapsules des composants Angular : header, footer,
 *  navbar, liste, annonce, alaune, modales)
 */

/* Note : la police "Material Icons" (@font-face + classe .material-icons) est
 * inlinee dans le gabarit, comme sur le front Angular, pour eviter un FOUT. */

/* ------------------------------------------------------------------ */
/* Header (app-header)                                                 */
/* ------------------------------------------------------------------ */
.navbar-pvre img.card-avatar {
    border: 1px solid #c9c9c9;
    border-radius: .25rem;
    max-height: 24px;
    max-width: 100%;
}

.links_compte button i {
    vertical-align: text-bottom;
}

.navbar-pvre .material-icons.md-18 {
    margin: 0 5px 0 2px;
    vertical-align: -.2em;
}

@media (max-width: 992px) {
    .logopvre img {
        height: 26px;
        vertical-align: inherit;
        width: auto;
    }
}

/* ------------------------------------------------------------------ */
/* Navbar de liste (app-navbar)                                        */
/* ------------------------------------------------------------------ */
.links_search {
    padding: 0 15px;
}

.links_rubriques button i {
    vertical-align: text-bottom;
}

.navfixe-bottom i {
    vertical-align: text-bottom;
}

/* ------------------------------------------------------------------ */
/* Liste (app-liste)                                                   */
/* ------------------------------------------------------------------ */
.liste-actions .btn-filtre,
.liste-actions .btn-alert {
    color: #495057;
    border: 1px solid #ced4da;
}

.liste-actions .btn-filtre i,
.liste-actions .btn-alert i {
    vertical-align: text-bottom;
}

.liste-actions .btn-filtre:after,
.liste-actions .btn-alert:after {
    display: none;
}

.btn-valid {
    border-radius: 0 0 calc(.3rem - 1px) calc(.3rem - 1px);
}

/* ------------------------------------------------------------------ */
/* Carte annonce (app-annonce)                                         */
/* ------------------------------------------------------------------ */
.card {
    margin-bottom: 1rem;
}

.card a {
    color: #545454;
}

.card a .bloc-image {
    position: relative;
    height: 230px;
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
}

.card a img.card-img-left {
    height: 100%;
}

.card a img.card-logo {
    height: 40px;
    min-width: 40px;
    max-width: 100%;
    border-radius: .25rem;
    border: 1px solid #c9c9c9;
}

.card a:hover {
    color: #545454;
    text-decoration: none;
}

.card a:hover img.card-img-left {
    transform: scale(1.1);
}

.txt-px {
    font-size: 90%;
}

.card-body {
    padding: 1rem;
    height: 186px;
}

.card-body p.ann-ttl {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bloc-image {
    overflow: hidden;
}

img.card-img-left {
    width: 100%;
    height: 180px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: #ebeced;
    object-fit: cover;
    transform: scale(1);
    transition: .3s ease-in-out;
}

.bloc-text {
    min-height: 42px;
}

.card-text {
    font-size: 14px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    line-height: 1.5em;
    max-height: 3em;
    text-align: justify;
}

.card-text:before {
    content: "...";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: .9rem;
    background: white;
}

.card-text:after {
    content: "";
    position: absolute;
    right: 0;
    width: .9rem;
    height: 1rem;
    margin-top: .2em;
    background: white;
}

.badgephoto {
    position: absolute;
    bottom: 2%;
    left: 2%;
    background-color: #0009;
}

.badgeannoncealaune {
    position: absolute;
    top: 2%;
    right: 2%;
    font-size: 95%;
}

.badgelike {
    position: absolute;
    top: 2%;
    left: 2%;
    background-color: #0009;
}

.badgelike i.active {
    color: #fff;
}

.loc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loc i {
    vertical-align: bottom;
}

.prix {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .prix {
        font-size: 1.1rem;
    }
}

/* ------------------------------------------------------------------ */
/* Fil d'ariane (app-breadcrumb)                                       */
/* ------------------------------------------------------------------ */
.filariane .btn-retour {
    margin: .5rem 0;
}

@media (max-width: 576px) {
    .filariane .btn-retour {
        float: none;
    }

    .filariane ol {
        font-size: 90%;
        padding: 0;
    }
}

/* ------------------------------------------------------------------ */
/* Detail d'une annonce (app-detail)                                   */
/* Les selecteurs trop larges du composant angular (i, .card-title,    */
/* .card .card-text) sont limites a #detail pour ne pas deborder sur   */
/* les autres pages.                                                   */
/* ------------------------------------------------------------------ */
.carrousel-detail img {
    height: 50vh;
    object-fit: cover;
    width: 100%;
}

.listbtn-detail button.btnshare:after {
    display: none;
}

#detail i {
    vertical-align: bottom;
}

.detail-sidebar img.card-logo {
    border: 1px solid #c9c9c9;
    border-radius: .25rem;
    max-height: 60px;
    max-width: 100%;
}

#detail .card-body {
    height: auto;
}

#detail .card .card-text {
    white-space: pre-wrap;
    max-height: none;
    overflow: visible;
    font-size: inherit;
}

#detail .card .card-text:before,
#detail .card .card-text:after {
    content: none;
}

#detail .card-title {
    margin-bottom: .75rem;
}

.detail-ttl small {
    flex-grow: 1;
    font-size: 1.25rem;
    text-align: right;
}

.detail-ttl small:before {
    content: "\e0c8";
    font-family: "Material Icons";
    font-size: 1.5rem;
    font-style: normal;
    font-weight: normal;
    vertical-align: text-top;
}

/* Classes energie / GES */
.nrj-classeA { background-color: #1a7f18; }
.nrj-classeB { background-color: #4fb767; }
.nrj-classeC { background-color: #afdc1a; }
.nrj-classeD { background-color: #fef000; }
.nrj-classeE { background-color: #ffd000; }
.nrj-classeF { background-color: #fc9d00; }
.nrj-classeG { background-color: #f8000d; }
.ges-classeA { background-color: #fdecfe; }
.ges-classeB { background-color: #e7c2f8; }
.ges-classeC { background-color: #daa8f0; }
.ges-classeD { background-color: #d095f3; }
.ges-classeE { background-color: #c172f0; }
.ges-classeF { background-color: #ac4ceb; }
.ges-classeG { background-color: #8f19e0; }
.ges2022-classeA { background-color: #a4dcf5; }
.ges2022-classeB { background-color: #89b6d7; }
.ges2022-classeC { background-color: #7792af; }
.ges2022-classeD { background-color: #606f8e; }
.ges2022-classeE { background-color: #4d5270; }
.ges2022-classeF { background-color: #38344d; }
.ges2022-classeG { background-color: #261c34; }

/* Coche sur le graphique de diagnostic */
.newdpe_coche {
    background: url(/lareunion/images/cochenewdpe.png) no-repeat;
    width: 32px;
    height: 28px;
    position: absolute;
}

.NoteGraph_ { display: none; }
.NoteGraph_A { top: 36px; left: 12px; }
.NoteGraph_B { top: 72px; left: 12px; }
.NoteGraph_C { top: 106px; left: 12px; }
.NoteGraph_D { top: 138px; left: 12px; }
.NoteGraph_E { top: 172px; left: 12px; }
.NoteGraph_F { top: 208px; left: 12px; }
.NoteGraph_G { top: 242px; left: 12px; }
.NoteGraph_NC { background: none; }
.NoteGes_ { display: none; }
.NoteGes_A { top: 72px; left: 327px; }
.NoteGes_B { top: 100px; left: 327px; }
.NoteGes_C { top: 130px; left: 327px; }
.NoteGes_D { top: 158px; left: 327px; }
.NoteGes_E { top: 188px; left: 327px; }
.NoteGes_F { top: 216px; left: 327px; }
.NoteGes_G { top: 244px; left: 327px; }
.NoteGes_NC { background: none; }
.OldNoteGraph_ { display: none; }
.OldNoteGraph_A { top: 28px; left: 9px; }
.OldNoteGraph_B { top: 56px; left: 9px; }
.OldNoteGraph_C { top: 90px; left: 9px; }
.OldNoteGraph_D { top: 124px; left: 9px; }
.OldNoteGraph_E { top: 159px; left: 9px; }
.OldNoteGraph_F { top: 194px; left: 9px; }
.OldNoteGraph_G { top: 227px; left: 9px; }
.OldNoteGraph_NC { background: none; }
.OldNoteGes_ { display: none; }
.OldNoteGes_A { top: 28px; left: 287px; }
.OldNoteGes_B { top: 56px; left: 287px; }
.OldNoteGes_C { top: 90px; left: 287px; }
.OldNoteGes_D { top: 124px; left: 287px; }
.OldNoteGes_E { top: 159px; left: 287px; }
.OldNoteGes_F { top: 194px; left: 287px; }
.OldNoteGes_G { top: 227px; left: 287px; }
.OldNoteGes_NC { background: none; }

/* ------------------------------------------------------------------ */
/* Pages 404 / 410 (app-gone)                                          */
/* ------------------------------------------------------------------ */
.gone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: 3rem 0;
}

.gone-box {
    max-width: 540px;
}

.gone-icon {
    font-size: 5rem;
    line-height: 1;
    color: #EE1C24;
    opacity: .9;
}

.gone-title {
    margin-top: 1.25rem;
    font-size: 1.75rem;
}

.gone-text {
    margin: .75rem 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .gone {
        min-height: 45vh;
        padding: 2rem 0;
    }

    .gone-icon {
        font-size: 4rem;
    }

    .gone-title {
        font-size: 1.4rem;
    }

    .gone-text {
        font-size: 1rem;
    }
}

/* ------------------------------------------------------------------ */
/* Annonces a la une (app-alaune)                                      */
/* ------------------------------------------------------------------ */
.carrousel-liste {
    display: block;
}

.carrousel-liste .card-body {
    height: 186px;
    vertical-align: baseline;
}

.carrousel-liste .card-autopromoune a {
    color: #FFFFFF;
}

.carrousel-liste .card-autopromoune a:hover {
    color: #FFFFFF;
}

.carrousel-liste .carousel-indicators {
    margin-bottom: 1.5rem;
}

.carrousel-liste .carousel-indicators li {
    color: #595959;
}
