/* ===== CARTES ACCUEIL & PLANNING ===== */

.card-base {
position: relative;
width: 9.5rem;
height: auto;
perspective: 1000px;
margin: 1rem 0.75rem;
display: flex;
flex-direction: column;
border-radius: 8px;
overflow: hidden;
box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
transition: box-shadow 0.3s ease, transform 0.3s ease;
background: linear-gradient(180deg, #0f172a, #020617);
}

.card-base:hover {
transform: translateY(-2px);
box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(148, 163, 184, 0.05);
}

/* ===== IMAGE CONTAINER ===== */

.card-image-container {
position: relative;
overflow: hidden;
height: 5rem;
background: linear-gradient(
    135deg,
    #020617 0%,
    #0f172a 45%,
    #020617 100%
);
flex-shrink: 0;
}

.card-image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
filter: brightness(0.98) contrast(1.15) saturate(1.05);
transition: transform 0.25s ease, filter 0.25s ease;
will-change: transform;
}

.card-base a:hover .card-image {
transform: scale(1.05);
filter: brightness(1.05) contrast(1.2) saturate(1.1);
}

/* Overlay gradient */
.image-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0) 0%,
    rgba(2, 6, 23, 0.25) 55%,
    rgba(2, 6, 23, 0.75) 100%
);
pointer-events: none;
}

/* Shine effect */
.image-shine {
position: absolute;
inset: 0;
background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0) 60%
);
opacity: 0;
transition: opacity 0.25s ease;
pointer-events: none;
}

.card-base a:hover .image-shine {
opacity: 1;
}

/* ===== BADGES ===== */

.badge {
position: absolute;
background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 0.85),
    rgba(15, 23, 42, 0.85)
);
padding: 0.2rem 0.45rem;
border-radius: 6px;
border: 1px solid rgba(148, 163, 184, 0.25);
z-index: 10;
box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
display: flex;
align-items: center;
justify-content: center;
gap: 0.25rem;
backdrop-filter: blur(4px);
}

.badge-text {
color: #f1f5f9;
font-size: 0.5rem;
font-weight: 800;
letter-spacing: 0.12em;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.badge-glow {
position: absolute;
inset: -6px;
border-radius: 8px;
background: radial-gradient(
    circle,
    rgba(148, 163, 184, 0.35),
    transparent 70%
);
opacity: 0;
transition: opacity 0.25s ease;
pointer-events: none;
}

.card-base a:hover .badge-glow {
opacity: 0.45;
}

/* Badge SCAN */
.scan-badge {
top: 0.3rem;
left: 0.3rem;
}

/* Badge ANIME */
.anime-badge {
top: 0.3rem;
left: 0.3rem;
background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.85),
    rgba(15, 23, 42, 0.9)
);
border-color: rgba(96, 165, 250, 0.45);
}

.anime-card-premium a:hover .anime-badge .badge-glow {
background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.55),
    transparent 70%
);
}

/* ===== BADGE LANGUE (haut droit) ===== */

.language-badge-top {
top: 0.3rem;
right: 0.3rem;
padding: 0.2rem 0.45rem;
background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.85),
    rgba(2, 6, 23, 0.9)
);
border: 1px solid rgba(148, 163, 184, 0.25);
box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
.language-badge-top {
    padding: 0.4rem 0.55rem;
}
}

/* Flag icon */
.flag-icon {
width: 22px;
height: 15px;
object-fit: contain;
display: block;
border-radius: 3px;
margin: 0;
flex-shrink: 0;
box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ===== CARD CONTENT ===== */

.card-content {
padding: 0.75rem 0.6rem;
position: relative;
overflow: hidden;
flex-grow: 1;
display: flex;
flex-direction: column;
border: 1px solid rgba(148, 163, 184, 0.18);
border-top: none;
}

/* Content SCAN */
.scan-card-premium .card-content {
background: linear-gradient(
    180deg,
    #0f0f11 0%,
    #181a20 100%
);
}

/* Content ANIME */
.anime-card-premium .card-content {
background: linear-gradient(
    180deg,
    #020617 0%,
    #020b1a 100%
);
border-color: rgba(96, 165, 250, 0.18);
}

/* Top highlight */
.card-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.35),
    transparent
);
}

.anime-card-premium .card-content::before {
background: linear-gradient(
    90deg,
    transparent,
    rgba(96, 165, 250, 0.45),
    transparent
);
}

/* ===== TITRE ===== */

.card-title {
color: #e5e7eb;
font-size: 0.8rem;
font-weight: 700;
text-align: center;
line-height: 1.15;
letter-spacing: 0.06em;
margin: 0 0 0.5rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6);
transition: color 0.25s ease, text-shadow 0.25s ease;
}

@media (min-width: 768px) {
.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    -webkit-line-clamp: 3;
}
}

.card-base a:hover .card-title {
color: #f8fafc;
text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.75);
}

/* ===== DIVIDER ===== */

.content-divider {
height: 1px;
background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.35),
    transparent
);
margin: 0.35rem 0 0.5rem 0;
flex-shrink: 0;
}

.anime-card-premium .content-divider {
background: linear-gradient(
    90deg,
    transparent,
    rgba(96, 165, 250, 0.45),
    transparent
);
}

/* ===== INFO ITEMS ===== */

.card-info {
display: flex;
flex-direction: column;
gap: 0.35rem;
flex-grow: 1;
justify-content: flex-end;
text-align: center;
}

.info-item {
display: flex;
align-items: center;
justify-content: center;
font-size: 0.65rem;
font-weight: 600;
color: #e5e7eb;
padding: 0.3rem 0.4rem;
border-radius: 6px;
transition: 
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
flex-shrink: 0;
box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
.info-item {
    font-size: 0.75rem;
}
}

/* ===== CHAPTER (SCAN) ===== */

.info-item.chapter {
background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 0.45),
    rgba(30, 41, 59, 0.35)
);
border: 1px solid rgba(148, 163, 184, 0.28);
}

.scan-card-premium a:hover .info-item.chapter {
background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.5),
    rgba(71, 85, 105, 0.42)
);
border-color: rgba(203, 213, 225, 0.4);
color: #f1f5f9;
}

/* ===== EPISODE (ANIME) ===== */

.info-item.episode {
background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.45),
    rgba(15, 23, 42, 0.4)
);
border: 1px solid rgba(96, 165, 250, 0.35);
}

.anime-card-premium a:hover .info-item.episode {
background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.55),
    rgba(30, 58, 138, 0.45)
);
border-color: rgba(147, 197, 253, 0.55);
color: #f1f5f9;
}

/* ===== RELEASE TIME ===== */

.info-item.release-time {
background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 0.38),
    rgba(30, 41, 59, 0.3)
);
border: 1px solid rgba(148, 163, 184, 0.25);
}

.scan-card-premium a:hover .info-item.release-time {
background: linear-gradient(
    135deg,
    rgba(71, 85, 105, 0.42),
    rgba(51, 65, 85, 0.35)
);
border-color: rgba(203, 213, 225, 0.35);
color: #f1f5f9;
}

.anime-card-premium a:hover .info-item.release-time {
background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.45),
    rgba(15, 23, 42, 0.4)
);
border-color: rgba(96, 165, 250, 0.45);
color: #f1f5f9;
}

/* ===== ICÔNES SVG HEROICONS ===== */

.info-icon-svg {
width: 12px;
height: 12px;
margin-right: 0.3rem;
flex-shrink: 0;
stroke: #cbd5e1;
fill: none;
transition: stroke 0.25s ease, filter 0.25s ease;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

@media (min-width: 768px) {
.info-icon-svg {
    width: 14px;
    height: 14px;
}
}

.anime-card-premium .info-icon-svg {
stroke: #60a5fa;
}

.scan-card-premium .info-icon-svg {
stroke: #cbd5e1;
}

/* Time icon */
.time-icon-svg {
width: 12px;
height: 12px;
margin-right: 0.3rem;
flex-shrink: 0;
stroke: #94a3b8;
fill: none;
transition: stroke 0.25s ease, filter 0.25s ease;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

@media (min-width: 768px) {
.time-icon-svg {
    width: 14px;
    height: 14px;
}
}

.anime-card-premium .time-icon-svg {
stroke: #60a5fa;
}

.scan-card-premium .time-icon-svg {
stroke: #94a3b8;
}

/* Hover */
.anime-card-premium a:hover .info-icon-svg,
.anime-card-premium a:hover .time-icon-svg {
stroke: #93c5fd;
filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.45));
}

.scan-card-premium a:hover .info-icon-svg,
.scan-card-premium a:hover .time-icon-svg {
stroke: #f1f5f9;
filter: drop-shadow(0 0 3px rgba(241, 245, 249, 0.35));
}

/* ===== CATALOGUE CARD ===== */

.catalog-card {
position: relative;
width: 9.5rem;
height: auto;
perspective: 1000px;
margin: 0.5rem 0.15rem;
display: flex;
flex-direction: column;
border-radius: 8px;
overflow: visible;
box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
transition: box-shadow 0.3s ease, transform 0.3s ease;
border: 1px solid rgba(148, 163, 184, 0.18);
background: linear-gradient(180deg, #020617, #020617);
}

@media (min-width: 768px) {
.catalog-card {
    width: 13rem;
    margin: 0.5rem 1rem;
}
}

.catalog-card:hover {
transform: translateY(-2px);
box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(148, 163, 184, 0.05);
}

/* ===== IMAGE CONTAINER ===== */

.catalog-card .card-image-container {
position: relative;
overflow: hidden;
height: 5.5rem;
background: linear-gradient(
    135deg,
    #020617 0%,
    #0f172a 45%,
    #020617 100%
);
flex-shrink: 0;
border-radius: 8px 8px 0 0;
}

@media (min-width: 768px) {
.catalog-card .card-image-container {
    height: 7rem;
}
}

.catalog-card .card-image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
filter: brightness(0.98) contrast(1.15) saturate(1.05);
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 0.35s ease;
}

.catalog-card a:hover .card-image {
transform: scale(1.06);
filter: brightness(1.05) contrast(1.2) saturate(1.1);
}

.catalog-card .image-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0) 0%,
    rgba(2, 6, 23, 0.35) 55%,
    rgba(2, 6, 23, 0.85) 100%
);
pointer-events: none;
}

.catalog-card .image-shine {
position: absolute;
inset: 0;
background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.12) 25%,
    rgba(255, 255, 255, 0) 60%
);
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
}

.catalog-card a:hover .image-shine {
opacity: 1;
}

/* ===== CARD CONTENT (NOIR) ===== */

.catalog-card .card-content {
background: linear-gradient(
    180deg,
    #0f1115 0%,
    #020617 100%
);
padding: 0.75rem 0.6rem;
position: relative;
overflow: visible;
flex-grow: 1;
display: flex;
flex-direction: column;
border: 1px solid rgba(148, 163, 184, 0.18);
border-top: none;
border-radius: 0 0 8px 8px;
box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.catalog-card .card-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.25),
    transparent
);
}

/* ===== TITRE ===== */

.catalog-card .card-title {
color: #e5e7eb;
font-size: 0.85rem;
font-weight: 700;
text-align: center;
line-height: 1.15;
letter-spacing: 0.08em;
margin: 0 0 0.4rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
transition: color 0.25s ease, text-shadow 0.25s ease;
text-transform: uppercase;
text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
.catalog-card .card-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
}
}

.catalog-card a:hover .card-title {
color: #f8fafc;
text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ===== TITRES ALTERNATIFS ===== */

.alternate-titles {
color: #94a3b8;
font-size: 0.7rem;
font-style: italic;
line-height: 1.1;
margin: 0 0 0.4rem;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
opacity: 0.65;
transition: opacity 0.25s ease, color 0.25s ease;
text-align: center;
}

@media (min-width: 768px) {
.alternate-titles {
    font-size: 0.72rem;
}
}

.catalog-card a:hover .alternate-titles {
opacity: 0.9;
color: #cbd5f5;
}

/* ===== DIVIDER ===== */

.catalog-card .content-divider {
height: 1px;
background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.22),
    transparent
);
margin: 0.35rem 0 0.5rem 0;
flex-shrink: 0;
}

/* ===== CATALOG INFO ===== */

.catalog-info {
display: flex;
flex-direction: column;
gap: 0.35rem;
flex-grow: 1;
justify-content: flex-start;
}

.info-row {
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.65rem;
}

/* Label */
.info-label {
color: #94a3b8;
font-weight: 700;
letter-spacing: 0.08em;
font-size: 0.7rem;
text-transform: uppercase;
opacity: 0.75;
}

/* Value */
.info-value {
color: #cbd5e1;
font-size: 0.7rem;
font-weight: 500;
margin: 0;
line-height: 1.15;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
transition: color 0.25s ease;
}

@media (min-width: 768px) {
.info-value {
    font-size: 0.7rem;
}
}

.catalog-card a:hover .info-value {
color: #e5e7eb;
}

/* ===== SYNOPSIS TOOLTIP ===== */

.synopsis-tooltip {
position: absolute;
bottom: 100%;
left: 0;
right: 0;
width: 100%;
background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.92)
);
backdrop-filter: blur(10px);
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 8px 8px 0 0;
padding: 0.75rem 0.6rem;
margin-bottom: 0;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease;
pointer-events: none;
z-index: 50;
box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
box-sizing: border-box;
}

@media (max-width: 767px) {
.synopsis-tooltip {
    display: none;
}
}

.catalog-card:hover .synopsis-tooltip {
opacity: 1;
visibility: visible;
}

/* Label */
.synopsis-label {
display: block;
color: #94a3b8;
font-weight: 700;
letter-spacing: 0.08em;
font-size: 0.6rem;
text-transform: uppercase;
opacity: 0.75;
margin-bottom: 0.5rem;
}

/* Content */
.synopsis-content {
color: #cbd5e1;
font-size: 0.7rem;
font-style: italic;
line-height: 1.35;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
.synopsis-content {
    font-size: 0.65rem;
}
}

/* ===== ICÔNES SVG HEROICONS ===== */

.info-icon-svg {
width: 14px;
height: 14px;
margin-right: 0.3rem;
flex-shrink: 0;
stroke: #cbd5e1;
fill: none;
transition: stroke 0.25s ease, filter 0.25s ease;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.anime-card-premium .info-icon-svg {
stroke: #60a5fa;
}

.scan-card-premium .info-icon-svg {
stroke: #cbd5e1;
}

/* Time icon */
.time-icon-svg {
width: 14px;
height: 14px;
margin-right: 0.3rem;
flex-shrink: 0;
stroke: #94a3b8;
fill: none;
transition: stroke 0.25s ease, filter 0.25s ease;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.anime-card-premium .time-icon-svg {
stroke: #60a5fa;
}

.scan-card-premium .time-icon-svg {
stroke: #94a3b8;
}

/* Hover effects */
.anime-card-premium a:hover .info-icon-svg,
.anime-card-premium a:hover .time-icon-svg {
stroke: #93c5fd;
filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.45));
}

.scan-card-premium a:hover .info-icon-svg,
.scan-card-premium a:hover .time-icon-svg {
stroke: #f1f5f9;
filter: drop-shadow(0 0 3px rgba(241, 245, 249, 0.35));
}
