
.wp-journalopes{
    width:min(980px,calc(100% - 60px));
    margin:34px auto 60px;
    color:#111;
}

.wp-journalopes *{
    box-sizing:border-box;
}


/* HEADER */

.wp-journalopes-head{
    margin-bottom:20px;
}

.wp-journalopes-head h1{
    position:relative;
    margin:0 0 14px;
    padding-bottom:8px;

    font-size:1.55rem;
    line-height:1.2;
    font-weight:800;
    text-transform:uppercase;
}

.wp-journalopes-head h1::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;

    width:170px;
    height:2px;

    background:#CA161A;
}

.wp-journalopes-head p{
    margin:0;
    padding-left:14px;

    border-left:4px solid #CA161A;

    font-size:.92rem;
    line-height:1.55;
}


/* BANDEAU ROUGE */

.wp-journalopes-banner{
    min-height:170px;

    margin:16px 0 16px;
    padding:18px 28px 20px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;

    background:#CA161A;
    color:#fff;

    border-radius:6px;

    box-shadow:0 2px 8px rgba(0,0,0,.2);
}

.wp-journalopes-medal{
    width:56px;
    height:56px;

    margin-bottom:12px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#b3a36f;

    font-size:3rem;
    line-height:1;
}

.wp-journalopes-banner h2{
    margin:0 0 12px;

    color:#fff;

    font-size:1.2rem;
    line-height:1.25;

    font-weight:800;
}

.wp-journalopes-banner p{
    margin:0;

    color:#fff;

    font-size:.78rem;
    line-height:1.4;

    font-weight:600;
}


/* TOGGLE */

.wp-journalopes-toggle{
    margin-bottom:26px;
}

.wp-journalopes-toggle details{
    overflow:hidden;

    border-radius:2px;

    box-shadow:0 2px 8px rgba(0,0,0,.28);
}

.wp-journalopes-toggle summary{
    position:relative;

    padding:12px 40px 12px 14px;

    list-style:none;

    cursor:pointer;

    background:#CA161A;
    color:#fff;

    font-size:.88rem;
    line-height:1.2;

    font-weight:700;
}

.wp-journalopes-toggle summary::-webkit-details-marker{
    display:none;
}

.wp-journalopes-toggle summary::before{
    content:"›";

    display:inline-block;

    margin-right:5px;

    font-size:1rem;

    transition:transform .3s ease;
}

.wp-journalopes-toggle details[open] summary::before{
    transform:rotate(90deg);
}


/* CONTENU DU TOGGLE */

.wp-journalopes-toggle-content{
    background:#fff;

    padding:22px;

    border:1px solid #ddd;
    border-top:0;
}

.wp-journalopes-charte{
    padding:22px;

    background:
        #eee
        url('/wp-content/uploads/2020/09/vieux_papier-scaled.jpg')
        center / cover no-repeat;

    border:5px double #777;
}

.wp-journalopes-charte > p{
    margin:0 0 20px;

    font-size:.95rem;
    line-height:1.55;
}

.wp-journalopes-charte ul{
    margin:0;
    padding:0;

    list-style:none;
}

.wp-journalopes-charte li{
    display:grid;
    grid-template-columns:1fr auto;

    gap:6px 14px;

    margin-bottom:18px;
    padding-bottom:12px;

    border-bottom:1px dashed #666;
}

.wp-journalopes-charte li strong{
    font-size:1rem;
}

.wp-journalopes-charte li span{
    color:#CA161A;

    font-weight:700;
}

.wp-journalopes-charte li p{
    grid-column:1 / -1;

    margin:0;

    font-size:.88rem;
    line-height:1.45;
}


/* JURY */

.wp-journalopes-jury{
    margin-top:26px;

    text-align:center;
}

.wp-journalopes-jury h3{
    margin:0 0 18px;

    font-size:1.6rem;
}

.wp-journalopes-jury > div{
    display:grid;
    grid-template-columns:1fr 1fr;

    gap:24px;

    max-width:520px;
    margin:0 auto;
}

.wp-journalopes-jury figure{
    margin:0;
}

.wp-journalopes-jury figcaption{
    margin-bottom:10px;

    font-size:1.2rem;
    font-weight:700;
}

.wp-journalopes-jury img{
    display:block;

    width:auto;
    max-width:110px;
    max-height:110px;

    margin:0 auto;
}

.wp-journalopes-jury > p{
    margin:16px 0 0;

    font-size:1rem;
    font-weight:700;
}


/* GRILLE */

.wp-journalopes-grid{
    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:14px 14px;

    align-items:stretch;
}


/* CARTES */

.wp-journalope-card{
    height:310px;

    display:flex;

    background:#fff;

    border:1px solid #d7d7d7;
    border-radius:3px;

    overflow:hidden;

    box-shadow:
        0 1px 3px rgba(0,0,0,.25),
        0 0 7px rgba(0,0,0,.08);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.wp-journalope-card:hover{
    transform:translateY(-2px);

    box-shadow:0 4px 10px rgba(0,0,0,.25);
}

.wp-journalope-card > a{
    width:100%;
    height:100%;

    display:flex;
    flex-direction:column;

    color:#111;
    text-decoration:none;

    overflow:hidden;
}


/* IMAGE */

.wp-journalope-image{
    width:100%;
    height:150px;

    flex:0 0 150px;

    overflow:hidden;

    background:#eee;
}

.wp-journalope-image img{
    display:block;

    width:100%;
    height:150px;

    object-fit:cover;
}


/* TEXTE */

.wp-journalope-content{
    flex:1;

    padding:10px 11px;

    background:#fff;

    overflow:hidden;
}

.wp-journalope-content h2{
    margin:0 0 10px;

    color:#111;

    font-size:.82rem;
    line-height:1.23;

    font-weight:700;
}

.wp-journalope-content time{
    display:block;

    color:#CA161A;

    font-size:.68rem;
    line-height:1;

    font-weight:700;
}


/* PAGINATION */

.wp-journalopes-pagination{
    display:flex;
    justify-content:center;
    align-items:center;

    gap:8px;

    margin-top:30px;

    font-size:1rem;
    font-weight:600;
}

.wp-journalopes-pagination .page-numbers{
    color:#111;

    text-decoration:none;

    padding:4px 7px;
}

.wp-journalopes-pagination .page-numbers:hover,
.wp-journalopes-pagination .page-numbers.current{
    color:#CA161A;
}


/* TABLETTE */

@media(max-width:900px){

    .wp-journalopes{
        width:92%;
    }

    .wp-journalopes-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}


/* MOBILE */

@media(max-width:650px){

    .wp-journalopes{
        width:calc(100% - 20px);
        margin-top:24px;
    }

    .wp-journalopes-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .wp-journalopes-banner{
        min-height:160px;
        padding:18px;
    }

    .wp-journalopes-toggle-content{
        padding:12px;
    }

    .wp-journalopes-charte{
        padding:14px;
    }

    .wp-journalopes-charte li{
        grid-template-columns:1fr;
    }

    .wp-journalopes-jury > div{
        grid-template-columns:1fr;
    }
}


@media(max-width:420px){

    .wp-journalopes-grid{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   JOURNALOPES — ECHELLE CARTES + DATE TOUJOURS VISIBLE
   ========================================================= */

.wp-journalopes-grid{
    gap:14px 12px !important;
}


/* Carte plus compacte */

.wp-journalope-card{
    height:285px !important;
    min-height:285px !important;
    max-height:285px !important;
}


/* Image moins haute */

.wp-journalope-image{
    height:132px !important;
    min-height:132px !important;
    flex:0 0 132px !important;
}

.wp-journalope-image img{
    height:132px !important;
}


/* Zone texte */

.wp-journalope-content{
    display:flex !important;
    flex-direction:column !important;

    padding:9px 10px 10px !important;

    min-height:0 !important;
}


/* Titres légèrement réduits pour éviter l'effet zoom */

.wp-journalope-content h2{
    margin:0 0 8px !important;

    font-size:.74rem !important;
    line-height:1.18 !important;

    font-weight:700 !important;

    overflow:hidden !important;
}


/* Date toujours visible en bas */

.wp-journalope-content time{
    margin-top:auto !important;

    flex:0 0 auto !important;

    color:#CA161A !important;

    font-size:.66rem !important;
    line-height:1 !important;

    font-weight:700 !important;
}


/* Desktop large : garde une taille naturelle */

@media(min-width:1200px){

    .wp-journalopes{
        width:min(980px,calc(100% - 60px)) !important;
    }
}

