/* ===================================================================
   Design cartes actualités — GLOBAL
   S'applique partout où une carte .card-rectangle est utilisée :
   home ("à la une"), page liste /actualites, et tout rappel d'actu.
   =================================================================== */

.card-rectangle{
    height:320px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(28,61,104,.10);
    transition:transform .35s ease, box-shadow .35s ease;
}
.card-rectangle:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 44px rgba(28,61,104,.22);
}

/* Image : zoom doux au survol, sans assombrissement global */
.card-rectangle .card-bg{
    filter:none;
    transform:scale(1.001);
    transition:transform .6s ease;
}
.card-rectangle:hover .card-bg{filter:none;transform:scale(1.08)}

/* Voile bleu marine charté plein cadre (lisibilité homogène) */
.card-rectangle .card-gradient{
    top:0;height:100%;padding:24px;
    display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;
    background:linear-gradient(to top,
        rgba(15,28,50,.92) 0%,
        rgba(20,40,70,.45) 42%,
        rgba(20,40,70,0) 100%);
}
.card-rectangle .card-info{width:100%}

/* Date : badge rose (comme le hero article) */
.card-rectangle .publication-date{
    display:inline-block;align-self:flex-start;
    background:#dd2656;color:#fff;text-shadow:none;
    font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
    padding:5px 12px;border-radius:4px;margin-bottom:14px;
}

/* Titre : 3 lignes max */
.card-rectangle h1{
    font-size:19px;line-height:1.28;font-weight:700;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

/* Extrait éventuel : 2 lignes discrètes (présent sur la home) */
.card-rectangle p{
    color:#eaeaea;font-size:13px;line-height:1.5;margin-top:10px;opacity:.9;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* Flèche : pastille ronde révélée au survol */
.card-rectangle .card-angle-right{
    position:absolute;top:18px;right:18px;z-index:4;
    width:42px;height:42px;border-radius:50%;
    background-color:rgba(255,255,255,.92);
    background-image:url('/img/angle-right-template.svg');
    background-size:16px;background-position:center;background-repeat:no-repeat;
    opacity:0;transform:translateX(8px);
    transition:opacity .3s ease, transform .3s ease;
}
.card-rectangle:hover .card-angle-right{opacity:1;transform:translateX(0)}
