/**
 * layout roc_info — cartes informations importantes
 * @author Christian Loubechine
 */

.uneinfo {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    transition: box-shadow .2s, transform .2s;
}

.uneinfo:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    transform: translateY(-3px);
}

/* Vignette à droite, taille naturelle */
.roc-info-thumb {
    flex: 0 0 auto;
    display: block;
    padding: 12px 12px 12px 0;
    align-self: center;
}

.roc-info-thumb img {
    display: block;
    max-width: 120px;
    height: auto;
    border-radius: 4px;
}

/* Corps de la carte */
.uneinfo-body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.uneinfo h3 {
    font-size: 1.8rem;
    margin: 0 0 0.8rem;
    line-height: 1.3;
    color: #0061A0;
}

.uneinfo h3 a {
    color: inherit;
    text-decoration: none;
}

.uneinfo h3 a:hover {
    text-decoration: underline;
}

.uneinfo-intro {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 1.2rem;
    line-height: 1.6;
    flex: 1;
}

/* Lien "Lire la suite" — double classe pour passer au-dessus de KNACSS */
.uneinfo .uneinfo-link,
.uneinfo .uneinfo-link:visited,
.uneinfo .uneinfo-link:hover,
.uneinfo .uneinfo-link:active {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    align-self: flex-start;
}

.uneinfo .uneinfo-link,
.uneinfo .uneinfo-link:visited {
    background: #0061A0;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    transition: background .2s;
}

.uneinfo .uneinfo-link:hover,
.uneinfo .uneinfo-link:active {
    background: #004A78;
}

/* Mobile : image passe en dessous */
@media (max-width: 480px) {
    .uneinfo {
        flex-direction: column;
    }
    .roc-info-thumb {
        padding: 0 0 10px 0;
        align-self: center;
    }
    .roc-info-thumb img {
        max-width: 100px;
    }
}

/* Bloc associés : informations expirées */
.roc-info-expired {
    margin-top: 2rem;
    border: 2px dashed #F5A623;
    border-radius: 6px;
    padding: 1.2rem 1.6rem;
    background: #FFFBF0;
}

.roc-info-exp-header {
    font-size: 1.3rem;
    font-weight: bold;
    color: #7A5A00;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.roc-info-exp-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #F5E6C0;
    font-size: 1.4rem;
}

.roc-info-exp-item:last-child {
    border-bottom: none;
}

.roc-info-exp-title {
    flex: 1;
    color: #555;
}

.roc-info-exp-title a {
    color: #555;
    text-decoration: none;
}

.roc-info-exp-title a:hover {
    text-decoration: underline;
}

.roc-info-exp-date {
    font-size: 1.2rem;
    color: #666;
    white-space: nowrap;
}

.roc-info-exp-edit {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: #F5A623;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
}

.roc-info-exp-edit:visited,
.roc-info-exp-edit:hover {
    color: #fff;
    background: #D4891A;
}
