/* ========== SECTION COLLECTION HOMME ========== */

.collection-homme {
    padding: 80px 20px 100px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1d1c1c 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* ========== BOUTON RETOUR ========== */

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid rgba(201, 162, 71, 0.4);
    border-radius: 10px;
    color: #c9a94e;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* === Effet de fond doré au survol === */
.btn-retour::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #c9a94e, #f5d67a, #c9a94e);
    background-size: 200% 200%;
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-retour:hover::before {
    left: 0;
}

/* === Texte et icône au-dessus du fond === */
.btn-retour span,
.btn-retour i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* === Hover === */
.btn-retour:hover {
    color: #000000;
    border-color: transparent;
    transform: translateX(-5px);
    box-shadow: 0 10px 40px rgba(201, 162, 71, 0.3);
}

.btn-retour:hover i {
    transform: translateX(-5px);
}

/* === Animation d'entrée === */
.btn-retour {
    opacity: 0;
    animation: btnRetourFadeIn 0.6s ease forwards;
    animation-delay: 0.5s;
}

@keyframes btnRetourFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .btn-retour {
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .btn-retour {
        padding: 8px 16px;
        font-size: 0.7rem;
        gap: 8px;
    }
}
/* === خلفية متحركة === */
.collection-homme::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 162, 71, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 162, 71, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(201, 162, 71, 0.178) 0%, transparent 40%);
    animation: backgroundMove 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-5%, -5%) scale(1.05);
    }
    50% {
        transform: translate(5%, 5%) scale(1.1);
    }
    75% {
        transform: translate(-3%, 3%) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* === Particules dorées en arrière-plan === */
.collection-homme::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(201, 162, 71, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(201, 162, 71, 0.08), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(201, 162, 71, 0.12), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(201, 162, 71, 0.06), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(201, 162, 71, 0.1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(201, 162, 71, 0.08), transparent);
    background-size: 200px 200px;
    animation: particlesFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0.5;
    }
}

/* === En-tête de la section === */
.collection-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.collection-title {
    color: #c9a94e;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(201, 162, 71, 0.2);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(201, 162, 71, 0.2);
    }
    50% {
        text-shadow: 0 0 50px rgba(201, 162, 71, 0.4), 0 0 100px rgba(201, 162, 71, 0.1);
    }
}

.collection-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a94e, #f5d67a, #c9a94e, transparent);
    margin: 15px auto 0;
    animation: linePulse 3s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { transform: scaleX(0.8); opacity: 0.5; }
    50% { transform: scaleX(1); opacity: 1; }
}

.collection-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* === Container des cartes === */
.collection-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* === Carte individuelle === */
.collection-card-homme {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 71, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0;
    animation: cardFadeIn 0.8s ease forwards;
}

.collection-card-homme:nth-child(1) {
    animation-delay: 0.2s;
}

.collection-card-homme:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === Bordure dorée animée autour de la carte === */
.collection-card-homme::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #c9a94e, #f5d67a, #c9a94e, #f5d67a, #c9a94e);
    background-size: 300% 300%;
    border-radius: 21px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: borderGlow 4s ease infinite;
}

.collection-card-homme:hover::before {
    opacity: 1;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === HOVER CARD === */
.collection-card-homme:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(201, 162, 71, 0.15),
        0 0 120px rgba(201, 162, 71, 0.05);
    border-color: rgba(201, 162, 71, 0.4);
}

/* === Image === */
.card-image-homme {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #0a0a0a;
}

.card-image-homme img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9) contrast(1.05);
}

.collection-card-homme:hover .card-image-homme img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.1);
}

/* === Overlay sur l'image === */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.collection-card-homme:hover .card-overlay {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #c9a94e, #f5d67a);
    color: #000000;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(201, 162, 71, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === Corps de la carte === */
.card-body-homme {
    padding: 25px 30px 30px;
    text-align: left;
}

.card-brand {
    color: #c9a94e;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.card-model {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 15px;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 15px 0;
}

.card-features span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.card-features span i {
    color: #c9a94e;
    font-size: 0.75rem;
}

.collection-card-homme:hover .card-features span {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.card-price {
    margin: 15px 0 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(201, 162, 71, 0.1);
}

.price {
    color: #f5d67a;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* === Bouton DÉCOUVRIR === */
.btn-decouvrir {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(201, 162, 71, 0.4);
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}

.btn-decouvrir span {
    position: relative;
    z-index: 1;
}

.btn-decouvrir i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

/* === Effet de fond du bouton === */
.btn-decouvrir::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #c9a94e, #f5d67a, #c9a94e);
    background-size: 200% 200%;
    transition: left 0.6s ease;
    border-radius: 6px;
}

.btn-decouvrir:hover::before {
    left: 0;
}

.btn-decouvrir:hover {
    color: #000000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(201, 162, 71, 0.3);
}

.btn-decouvrir:hover i {
    transform: translateX(8px);
}

/* === Effet de lumière au survol du bouton === */
.btn-decouvrir::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.btn-decouvrir:hover::after {
    opacity: 1;
}

/* =========================================== */
/* === RESPONSIVE === */

/* Tablettes */
@media (max-width: 992px) {
    .collection-homme {
        padding: 60px 15px 80px;
    }
    
    .collection-title {
        font-size: 2.2rem;
        letter-spacing: 6px;
    }
    
    .collection-cards-container {
        gap: 30px;
    }
    
    .collection-card-homme {
        min-width: 280px;
        max-width: 450px;
    }
    
    .card-image-homme {
        height: 320px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .collection-homme {
        padding: 40px 10px 60px;
    }
    
    .collection-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    
    .collection-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
    
    .collection-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .collection-card-homme {
        min-width: unset;
        max-width: 400px;
        width: 100%;
    }
    
    .card-image-homme {
        height: 280px;
    }
    
    .card-body-homme {
        padding: 20px;
    }
    
    .card-brand {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .btn-decouvrir {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .collection-homme {
        padding: 30px 8px 40px;
    }
    
    .collection-title {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    
    .collection-subtitle {
        font-size: 0.85rem;
    }
    
    .collection-cards-container {
        gap: 20px;
    }
    
    .collection-card-homme {
        max-width: 340px;
    }
    
    .card-image-homme {
        height: 220px;
    }
    
    .card-body-homme {
        padding: 15px;
    }
    
    .card-brand {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .card-model {
        font-size: 0.85rem;
    }
    
    .card-features span {
        font-size: 0.75rem;
    }
    
    .price {
        font-size: 0.9rem;
    }
    
    .btn-decouvrir {
        padding: 8px 15px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}