Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.
/* Card base styling */
.tg-card {
    position: relative;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Card header and footer */
.tg-card-header,
.tg-card-footer {
    padding: 0.5rem 1rem;
    background: #eaecf0;
}

.tg-card-footer {
    font-size: 0.875rem;
}

/* Flexbox integration */
.template-flexbox-item .tg-card {
    height: 100%;
}

.tg-card blockquote {
    margin-left: 0;
    margin-right: 0;
}

/* Card image container */
.tg-card-image {
    position: relative;
    display: flex;
    flex-grow: 1;
}

/* After image styling */
.tg-card-afterImage {
    position: relative;
    margin-top: -0.5rem;
    padding: 0 1rem 1rem 1rem;
    background-color: #000;
}

.tg-card-afterImage a {
    color: #fff;
}

.tg-card-afterImage,
.tg-card-label,
.tg-card-caption {
    font-size: 0.75rem;
}

/* Card label styling */
.tg-card-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.tg-card-label > a,
.tg-card-label > span {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-bottom-right-radius: 8px;
    background: #0645ad;
    color: #fff;
    line-height: 1;
}

.tg-card-label > a:hover {
    background: #0b5394;
}

.tg-card-label > a:active {
    background: #0b5394;
}

/* Card content */
.tg-card-content {
    padding: 1rem;
}

.tg-card-label + .tg-card-content {
    margin-top: 1.5rem;
}

/* Card title styling */
.tg-card-title {
    color: #000;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Card caption */
.tg-card-caption {
    margin-top: 0.25rem;
    color: #54595d;
    line-height: 1.3;
}

.tg-card-title + .tg-card-body,
.tg-card-caption + .tg-card-body {
    margin-top: 1rem;
}

/* Card background and overlay */
.tg-card-background,
.tg-card-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.tg-card-background {
}

/* Simplified gradient overlay */
.tg-card-background::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 20%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.2) 80%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Image positioning variants */
.tg-card-background--top img {
    vertical-align: top;
}

.tg-card-background--bottom img {
    vertical-align: bottom;
}

/* Card background image */
.tg-card-background img {
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease;
}

.tg-card:hover .tg-card-background img {
    transform: scale(1.1);
}

/* Card link overlay */
.tg-card-link {
    opacity: 0;
}

.tg-card-link > a {
    display: block;
    height: 100%;
}

/* Image card content positioning */
.tg-card-image .tg-card-content {
    position: relative;
    margin-top: auto;
    line-height: 1.3;
    flex-grow: 1;
}

.tg-card-image .tg-card-title {
    color: #fff;
}

.tg-card-image .tg-card-caption,
.tg-card-afterImage {
    color: #ddd;
}

/* Card variants - different themes */
.tg-card--light {
    background-color: #fff;
    border-color: #c8ccd1;
}

.tg-card--dark {
    background-color: #27292d;
    border-color: #404244;
    color: #a2a9b1;
}

.tg-card--dark .tg-card-title {
    color: #fff;
}

.tg-card--success {
    border-color: #00af89;
}

.tg-card--warning {
    border-color: #fc3;
}

.tg-card--error {
    border-color: #d73333;
}

/* Card size variants */
.tg-card--small {
    font-size: 0.875rem;
}

.tg-card--small .tg-card-content {
    padding: 0.75rem;
}

.tg-card--small .tg-card-title {
    font-size: 1rem;
}

.tg-card--large .tg-card-content {
    padding: 1.5rem;
}

.tg-card--large .tg-card-title {
    font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tg-card-content {
        padding: 0.75rem;
    }
    
    .tg-card-title {
        font-size: 1.125rem;
    }
    
    .tg-card-label > a,
    .tg-card-label > span {
        height: 28px;
        padding: 0 8px;
        font-size: 0.75rem;
    }
    
    .tg-card:hover .tg-card-background img {
        transform: none; /* Disable hover effect on mobile */
    }
}

/* Accessibility improvements */
.tg-card-link > a:focus {
    outline: 2px solid #0645ad;
    outline-offset: -2px;
}

.tg-card-background img {
    /* alt: "";  Decorative images should be empty alt */
}