/* ========================================
   PROXISTORE - DESIGN PREMIUM SÉNÉGALAIS
   Thème chaleureux avec glassmorphisme
   ======================================== */

/* ========================================
   VARIABLES CSS - THÈME SÉNÉGALAIS
   ======================================== */
:root {
    /* Palette Sénégalaise Chaude */
    --gold-senegal: #D4A84B;
    --gold-light: #E8C872;
    --gold-dark: #B8923A;
    --terracotta: #C75B39;
    --terracotta-light: #E07A5A;
    --terracotta-dark: #A84A2E;
    --sand-warm: #F4E4C1;
    --sand-light: #FBF5E8;
    --baobab-green: #2D5016;
    --baobab-light: #4A7A28;
    --ocean-blue: #1E3A5F;
    --ocean-light: #2D5A8A;

    /* Couleurs de fond */
    --bg-cream: #FFFDF7;
    --bg-sand: #FDF8ED;

    /* Glassmorphisme */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px rgba(199, 91, 57, 0.15);

    /* Dégradés */
    --gradient-hero: linear-gradient(135deg, #C75B39 0%, #D4A84B 50%, #E8C872 100%);
    --gradient-hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
    --gradient-gold: linear-gradient(135deg, #D4A84B 0%, #E8C872 100%);
    --gradient-terracotta: linear-gradient(135deg, #C75B39 0%, #E07A5A 100%);
    --gradient-warm: linear-gradient(135deg, #F4E4C1 0%, #FBF5E8 100%);

    /* Animations */
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ANIMATIONS KEYFRAMES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 168, 75, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   HERO SECTION PREMIUM
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero-overlay);
    z-index: 1;
}

/* Pattern africain subtil */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    animation: fadeInUp 1s var(--animation-smooth) forwards;
}

.hero-content>p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
    animation: fadeInUp 1s 0.2s var(--animation-smooth) both;
}

/* ========================================
   CITY SELECTOR GLASSMORPHIQUE
   ======================================== */
.city-selector {
    animation: fadeInUp 1s 0.4s var(--animation-smooth) both;
}

.city-selector h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.city-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.4s var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    z-index: 0;
}

.city-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(212, 168, 75, 0.3);
    border-color: var(--gold-light);
}

.city-card:active {
    transform: translateY(-4px) scale(1.01);
}

.city-image {
    font-size: 3rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s var(--animation-bounce);
}

.city-card:hover .city-image {
    transform: scale(1.15);
    animation: float 2s ease-in-out infinite;
}

.city-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.city-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* ========================================
   SECTION STATISTIQUES PREMIUM
   ======================================== */
.stats-section {
    background: var(--bg-cream);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(199, 91, 57, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--animation-smooth);
    border: 1px solid rgba(212, 168, 75, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 50px rgba(199, 91, 57, 0.15),
        0 5px 20px rgba(0, 0, 0, 0.08);
}

.stat-card:nth-child(1) {
    animation: fadeInUp 0.6s 0.1s both;
}

.stat-card:nth-child(2) {
    animation: fadeInUp 0.6s 0.2s both;
}

.stat-card:nth-child(3) {
    animation: fadeInUp 0.6s 0.3s both;
}

.stat-card:nth-child(4) {
    animation: fadeInUp 0.6s 0.4s both;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(2) .stat-icon {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) .stat-icon {
    animation-delay: 1s;
}

.stat-card:nth-child(4) .stat-icon {
    animation-delay: 1.5s;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--terracotta);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    background: var(--gradient-terracotta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--ocean-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SECTION PRODUITS PREMIUM
   ======================================== */
.featured-section {
    background: var(--gradient-warm);
    padding: 100px 0;
    position: relative;
}

.featured-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--ocean-blue);
    margin-bottom: 15px;
}

.featured-section .section-subtitle {
    text-align: center;
    color: var(--terracotta);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card-home {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--animation-smooth);
    position: relative;
}

.product-card-home::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-gold);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-home:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(199, 91, 57, 0.15),
        0 0 30px rgba(212, 168, 75, 0.2);
}

.product-card-home:hover::before {
    opacity: 1;
}

.product-card-home .product-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-card-home .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-home:hover .product-image img {
    transform: scale(1.1);
}

.product-city-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-terracotta);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(199, 91, 57, 0.3);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand-light);
    font-size: 4rem;
}

.product-card-home .product-info {
    padding: 20px;
}

.product-card-home .product-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ocean-blue);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-home .product-shop {
    font-size: 0.9rem;
    color: var(--baobab-green);
    margin-bottom: 12px;
}

.product-card-home .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--terracotta);
}

/* CTA Section dans Featured */
.cta-section {
    text-align: center;
    margin-top: 50px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--ocean-blue);
    margin-bottom: 20px;
}

.cta-section .btn-primary {
    background: var(--gradient-terracotta);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(199, 91, 57, 0.3);
    transition: all 0.4s ease;
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(199, 91, 57, 0.4);
}

/* ========================================
   SECTION AVANTAGES PREMIUM
   ======================================== */
.about-section {
    background: #fff;
    padding: 100px 0;
    position: relative;
}

.about-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--ocean-blue);
    margin-bottom: 60px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 24px;
    background: var(--sand-light);
    border: 1px solid rgba(212, 168, 75, 0.15);
    transition: all 0.4s var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 0 0 4px 4px;
}

.mission-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(199, 91, 57, 0.1);
    background: #fff;
}

.mission-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s var(--animation-bounce);
}

.mission-item:hover .mission-icon {
    transform: scale(1.2) rotate(5deg);
}

.mission-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ocean-blue);
    margin-bottom: 15px;
}

.mission-item p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   SECTION TÉMOIGNAGES PREMIUM
   ======================================== */
.testimonials-section {
    background: var(--ocean-blue);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(199, 91, 57, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonials-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    transition: all 0.4s var(--animation-smooth);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--gold-senegal);
    opacity: 0.5;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    padding-top: 30px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    color: var(--gold-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================================
   SECTION CTA FINAL PREMIUM
   ======================================== */
.final-cta-section {
    background: var(--gradient-hero);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 15px;
}

.cta-content>p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
    min-width: 200px;
}

.cta-buttons .btn-primary {
    background: var(--gold-senegal);
    color: var(--ocean-blue);
    border: 2px solid var(--gold-senegal);
    box-shadow: 0 10px 30px rgba(212, 168, 75, 0.4);
}

.cta-buttons .btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 168, 75, 0.5);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ========================================
   SCROLL ANIMATIONS (via Intersection Observer)
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--animation-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s var(--animation-smooth);
}

.animate-on-scroll-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s var(--animation-smooth);
}

.animate-on-scroll-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s var(--animation-smooth);
}

.animate-on-scroll-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content>p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .city-card {
        padding: 20px 12px;
    }

    .city-image {
        font-size: 2.2rem;
    }

    .city-card h4 {
        font-size: 1rem;
    }

    .city-card p {
        font-size: 0.75rem;
    }

    .stats-section,
    .featured-section,
    .about-section,
    .testimonials-section,
    .final-cta-section {
        padding: 60px 0;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .cta-content {
        margin: 0 15px;
        padding: 35px 25px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 70px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .city-selector h3 {
        font-size: 1.2rem;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .city-card {
        padding: 15px 10px;
        border-radius: 15px;
    }

    .city-image {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .city-card h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .city-card p {
        display: none;
    }
}

/* ========================================
   LOADER/SHIMMER EFFECTS
   ======================================== */
.shimmer-effect {
    background: linear-gradient(90deg,
            var(--sand-light) 25%,
            var(--sand-warm) 50%,
            var(--sand-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-terracotta {
    background: var(--gradient-terracotta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}