/* Styles pour les pages de Tags */
body.tag #main {
    padding: 5px 0;
}

/* Titre principal */
body.tag h1.titre_tag {
    font-family: 'Amaranth', sans-serif;
    color: #000;
    margin: 0 0 20px;
    padding: 10px 8px;
    text-align: center;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3em;
    border-radius: 5px;
    text-transform: capitalize;
}

/* Sous-titre (description) */
body.tag h2 {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
    color: #000;
    font-size: 13px;
    line-height: 1.4em;
    text-align: center;
}

/* Grille de cartes */
body.tag #cartes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    list-style: none;
    margin: 0 0 20px 0;
}

body.tag #cartes li.carte {
    position: relative;
    background: #FFF;
    padding: 0 0 15px 0;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

body.tag #cartes .image {
    margin-bottom: 10px;
    background: transparent url(../img/front/sh_categorie.png) bottom center no-repeat;
    padding-bottom: 13px;
}

body.tag #cartes .image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #fff;
    background: #fff;
    padding: 5px;
    transition: all 0.3s ease;
}

body.tag #cartes .image img:hover {
    background: #FFDA00;
    border: 1px solid #FFDA00;
}

body.tag #cartes li h3.title {
    text-align: left;
    line-height: 1.2em;
    font-family: 'Amaranth', arial, sans-serif;
    margin: 0 0 8px 15px;
    padding: 0 5px 3px 0;
    font-size: 18px;
    font-weight: 400;
}

body.tag #cartes li h3.title a {
    color: #000;
    text-decoration: none;
}

body.tag #cartes li h3.title a:hover {
    color: #FE57A1;
}

body.tag #cartes li .content {
    text-align: left;
    font-size: 13px;
    line-height: 1.3em;
    font-family: arial, sans-serif;
    padding: 0 15px;
    color: #555;
}

/* Message quand pas de cartes */
body.tag .nothing {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
    color: #666;
}
body.tag a.retour{
    text-decoration:underline;
    color:#DB0051;
    display:block;
    margin:20px auto 10px auto;
    text-align:center;
}