/* =========================================================
   TM ANNONCES MODULE FOR DIVI - STANDALONE
   ========================================================= */

.tm-annonces,
.tm-annonces *{
    box-sizing:border-box;
}

.tm-annonces{
    width:100% !important;
    max-width:var(--tm-max-width-desktop,430px) !important;
    background:#ffffff;
    border:1px solid #dfe4ec;
    border-radius:14px;
    padding:16px 14px 14px;
    box-shadow:none;
    font-family:inherit;
}

.tm-annonces__header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:3px !important;
    padding-bottom:14px;
    position:relative;
}

.tm-annonces__title{
    position:relative;
    margin:0 !important;
    padding:0 0 14px !important;
    color:#0c2d67;
    font-size:16px !important;
    line-height:1.15;
    font-weight:800;
    text-transform:uppercase;
}

.tm-annonces__title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:40px;
    height:3px;
    border-radius:3px;
    background:#357CBD;
}

.custom-underline2{
    display:none !important;
}

.tm-annonces__top-link{
    position:relative;
    z-index:20;
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#0c2d67;
    font-size:10px;
    line-height:1;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
}

.tm-annonces__arrow{
    font-size:14px;
    line-height:1;
}

.tm-annonces__list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.tm-annonce-card{
    position:relative;
    display:grid;
    grid-template-columns:52px minmax(0,1fr) var(--tm-date-width-desktop,82px) !important;
    align-items:center;
    gap:12px;
    min-height:76px;
    padding:10px 12px;
    background:#ffffff;
    border:1px solid #e3e8f0;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(15,45,90,.045);
    transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}

.tm-annonce-card:hover{
    transform:translateY(-1px);
    border-color:#d3deeb;
    box-shadow:0 8px 18px rgba(15,45,90,.075);
}

.tm-annonce-card__overlay{
    position:absolute;
    inset:0;
    z-index:10;
    display:block;
    border-radius:8px;
}

.tm-annonce-card__icon,
.tm-annonce-card__content,
.tm-annonce-card__date{
    position:relative;
    z-index:2;
    pointer-events:none;
}

.tm-annonce-card__icon{
    width:40px;
    height:40px;
    border-radius:7px;
    background:#F2F6FF;
    display:flex;
    align-items:center;
    justify-content:center;
}

.tm-annonce-card__icon svg{
    width:21px;
    height:21px;
    fill:#3478e5;
}

.tm-annonce-card__content{
    min-width:0 !important;
    width:100%;
    overflow:hidden;
}

.tm-annonce-card__type{
    margin:0 0 3px;
    color:#3478d4;
    font-size:9px;
    line-height:1.1;
    font-weight:800;
    text-transform:uppercase;
}

.tm-annonce-card__title{
    margin:0 !important;
    padding:0 !important;
    width:100%;
    min-width:0;
    max-width:100%;
    color:#0c2d67 !important;
    font-size:12px !important;
    line-height:1.25 !important;
    font-weight:700 !important;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    white-space:normal;
}

.tm-annonce-card__date{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:center !important;
    justify-self:end !important;
    align-self:center !important;
    gap:5px !important;

    width:var(--tm-date-width-desktop,82px) !important;
    min-width:0 !important;
    max-width:none !important;

    height:40px !important;
    min-height:40px !important;

    padding:0 8px !important;
    margin:0 !important;

    background:#F2F6FF !important;
    border-radius:8px;
    white-space:nowrap !important;
    line-height:1 !important;
}

.tm-annonce-card__date span{
    display:inline-block !important;
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
    white-space:nowrap !important;
}

.tm-annonce-card__day{
    color:#ef2639;
    font-size:18px;
    line-height:1 !important;
    font-weight:900;
}

.tm-annonce-card__month{
    color:#0c2d67;
    font-size:16px !important;
    line-height:1 !important;
    font-weight:800;
    text-transform:uppercase;
}

/* Tablet */
@media(max-width:980px){

    .tm-annonces{
        max-width:var(--tm-max-width-tablet,100%) !important;
    }
}

/* Mobile */
@media(max-width:600px){

    .tm-annonces{
        width:100% !important;
        max-width:var(--tm-max-width-mobile,100%) !important;
        padding:12px !important;
    }

    .tm-annonce-card{
        grid-template-columns:36px minmax(0,1fr) var(--tm-date-width-mobile,58px) !important;
        gap:8px !important;
        padding:8px !important;
        width:100% !important;
        max-width:100% !important;
    }

    .tm-annonce-card__icon{
        width:36px !important;
        height:36px !important;
    }

    .tm-annonce-card__icon svg{
        width:18px !important;
        height:18px !important;
    }

    .tm-annonce-card__content{
        min-width:0 !important;
        width:100% !important;
        overflow:hidden !important;
    }

    .tm-annonce-card__type{
        font-size:7px !important;
        line-height:1.15 !important;
        white-space:normal !important;
    }

    .tm-annonce-card__title{
        width:100% !important;
        max-width:100% !important;
        font-size:10.5px !important;
        line-height:1.2 !important;
        white-space:normal !important;
        overflow:hidden !important;
    }

    .tm-annonce-card__date{
        width:var(--tm-date-width-mobile,58px) !important;
        min-width:0 !important;
        max-width:none !important;
        height:34px !important;
        min-height:34px !important;
        padding:0 4px !important;
        gap:2px !important;
    }

    .tm-annonce-card__day{
        font-size:14px !important;
    }

    .tm-annonce-card__month{
        font-size:9px !important;
        white-space:nowrap !important;
    }
}
