/* ===== CAROUSEL STYLE CARTES MULTIPLES (COMME L'EXEMPLE) ===== */

/* Container principal du carousel */
.dedicaces-carousel {
    padding: 80px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

/* Header du carousel */
.carousel-header {
    text-align: center;
    margin-bottom: 60px;
}

.carousel-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.carousel-title i {
    color: #ffd700;
    font-size: 0.8em;
    animation: heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.carousel-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
}

/* Wrapper du carousel avec cartes multiples */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 15px;
}

/* Slides individuels - Cartes côte à côte */
.carousel-slide {
    flex: 0 0 350px; /* Largeur fixe pour chaque carte */
    height: 280px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.carousel-slide:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

/* Carte de dédicace moderne */
.dedicace-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.9) 50%, 
        rgba(15, 52, 96, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.dedicace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.carousel-slide:hover .dedicace-card::before {
    left: 100%;
}

/* Avatar/Image pour chaque dédicace */
.dedicace-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000000;
    font-size: 18px;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* En-tête de la dédicace sur 2 lignes avec couleurs spécifiques */
.dedicace-from-to {
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    line-height: 1.4;
    color: #ffffff; /* Couleur par défaut pour "Pour" et "de la part de" */
}

.dedicace-from-to .ligne-pour {
    display: block;
    margin-bottom: 4px;
}

.dedicace-from-to .ligne-de-la-part {
    display: block;
}

.dedicace-from-to .pour,
.dedicace-from-to .de-la-part {
    color: #ffffff;
    font-weight: 500;
}

.dedicace-from-to .destinataire {
    color: #dc143c; /* Rouge pour le destinataire (ex: JUSTINE) */
    font-weight: 700;
    font-size: 14px;
}

.dedicace-from-to .expediteur {
    color: #ffd700; /* Or pour l'expéditeur (ex: DAVID) */
    font-weight: 700;
    font-size: 14px;
}

/* Message de la dédicace */
.dedicace-message {
    font-size: 14px;
    color: #ffffff;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Chanson */
.dedicace-song {
    font-size: 12px;
    color: rgba(255, 215, 0, 0.9);
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-style: normal;
    justify-content: center;
}

.dedicace-song::before {
    content: '♫';
    font-size: 14px;
    opacity: 0.8;
}

/* Navigation du carousel */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.carousel-btn {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    border: 2px solid #ffd700;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: #666;
    border-color: #999;
}

/* Indicateurs de pagination */
.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ffd700;
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 215, 0, 0.6);
    transform: scale(1.2);
}

/* Lien "Voir tout" */
.view-all-link {
    text-align: center;
    margin-top: 60px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-btn:hover {
    background: #ffd700;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

.view-all-btn i:last-child {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i:last-child {
    transform: translateX(5px);
}

/* Responsive - Affichage adaptatif des cartes */
@media (max-width: 1200px) {
    .carousel-slide {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .dedicaces-carousel {
        padding: 60px 0;
    }

    .carousel-container {
        padding: 0 20px;
    }

    .carousel-slide {
        flex: 0 0 280px;
        height: 260px;
    }

    .dedicace-card {
        padding: 20px;
    }

    .dedicace-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .dedicace-message {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .carousel-nav {
        gap: 30px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 15px;
    }

    .carousel-slide {
        flex: 0 0 250px;
        height: 240px;
    }

    .dedicace-card {
        padding: 18px;
    }

    .dedicace-from-to {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .dedicace-message {
        font-size: 12px;
    }

    .dedicace-song {
        font-size: 11px;
        padding: 6px 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-nav {
        gap: 25px;
        margin-top: 35px;
    }
}

/* Animation d'apparition */
@keyframes slideInCards {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slide.entering {
    animation: slideInCards 0.6s ease-out;
}

/* Focus pour l'accessibilité */
.carousel-btn:focus,
.carousel-dot:focus,
.view-all-btn:focus {
    outline: 2px solid #ffd700;
    outline-offset: 3px;
}

/* Indicateur de défilement */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 3;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}