/* ===== STYLES PERSONNALISÉS 3B SPORTS ===== */

/* === Reset et base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* === Correction du scroll pour le header fixe === */
/* Le header fait environ 90px (ticker + nav), on ajoute du padding */
section[id] {
    scroll-margin-top: 100px;
}

#accueil {
    scroll-margin-top: 0;
}

/* === Animation du ticker de news === */
.news-ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.news-ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.news-ticker:hover {
    animation-play-state: paused;
}

.news-ticker .news-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.news-ticker .news-item::before {
    content: '•';
    margin-right: 0.75rem;
    font-size: 1.2em;
    opacity: 0.7;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* === Animations d'entrée === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* === Scrollbar personnalisée === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #e63946;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c1121f;
}

/* === Styles des filtres actifs === */
.filter-btn.active {
    background-color: #e63946 !important;
    color: white !important;
}

/* === Styles des tabs admin actifs === */
.admin-tab.active {
    color: #e63946;
    border-bottom-color: #e63946;
}

/* === Carrousel Hero === */
.carousel-slide {
    transition: opacity 1s ease-in-out;
}

.carousel-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    transform: scale(1.3);
}

/* === Effet de skeleton loading === */
.skeleton-card {
    border-radius: 1rem;
    overflow: hidden;
    background: white;
}

.dark .skeleton-card {
    background: #1a1a1a;
}

/* === Transition du panier === */
#cartPanel.open {
    transform: translateX(0) !important;
}

/* === Carte produit hover === */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* === Bouton de paiement sélectionné === */
.payment-method-btn.selected {
    border-color: #e63946 !important;
    background-color: rgba(230, 57, 70, 0.05);
}

/* === Effet de compteur === */
[data-counter] {
    transition: all 0.3s ease;
}

/* === Responsive ajustements === */
@media (max-width: 640px) {
    .news-ticker {
        animation-duration: 20s;
    }
}

/* === Line clamp pour les textes === */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Cours card styles === */
.cours-card {
    transition: all 0.3s ease;
}

.cours-card:hover {
    transform: translateY(-2px);
}

/* === Admin item styles === */
.admin-item {
    transition: all 0.2s ease;
}

.admin-item:hover {
    background-color: rgba(230, 57, 70, 0.03);
}

/* === Toast notification === */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 200;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 320px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

.toast.info {
    background-color: #3b82f6;
}

/* === Formule payment option selected === */
.formule-payment-option.selected {
    border-color: #e63946 !important;
}