/**
 * Pharmacie Page Styles
 * Used by: pharmacie-en.php, pharmacie-fr.php
 */

/* ========================================
   PHARMACY - CUSTOM ANIMATIONS
   ======================================== */

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes flipIn {
    from { opacity: 0; transform: rotateY(90deg); }
    to { opacity: 1; transform: rotateY(0deg); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.animate-slide-left,
.animate-slide-right,
.animate-scale,
.animate-bounce,
.animate-flip,
.animate-slide-up {
    opacity: 0;
    transform: translateZ(0);
    will-change: opacity, transform;
}

.animate-slide-left.in-view { animation: slideInFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-slide-right.in-view { animation: slideInFromRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-scale.in-view { animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-bounce.in-view { animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both; }
.animate-flip.in-view { animation: flipIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-slide-up.in-view { animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ========================================
   HERO SECTION
   ======================================== */

.pharmacie-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    background: linear-gradient(180deg,
        #131313 0%, #151915 5%, #1A1F1A 10%, #1F251E 15%,
        #243229 25%, #2A3827 30%, #2F3F2C 35%, #354630 40%,
        #3B4C34 45%, #415338 55%, #3B4C34 60%, #354630 65%,
        #2F3F2C 70%, #2A3827 75%, #243229 80%, #1F251E 85%,
        #1A1F1A 90%, #151915 95%, #131313 100%);
    position: relative;
    overflow: hidden;
}

.hero-illustration {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.illustration-box {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: rgba(140, 164, 100, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(140, 164, 100, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.illustration-box::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(140, 164, 100, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.illustration-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.pharmacist-icons {
    font-size: 100px;
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.pill-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 40px;
    animation: float 2s ease-in-out infinite;
}

.device-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 50px;
    animation: pulse 2.5s ease-in-out infinite;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits-section {
    padding: 100px 0;
    background: #131313;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
}

.benefit-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    min-width: 280px;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(140, 164, 100, 0.15);
    border-color: rgba(140, 164, 100, 0.5);
    box-shadow: 0 20px 40px rgba(140, 164, 100, 0.3);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #8CA464 0%, #7E8D77 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: rotateY(360deg);
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #8CA464;
    font-weight: 600;
}

/* ========================================
   VIDEO SECTION
   ======================================== */

.video-section {
    padding: 100px 0;
    background: #131313;
}

.video-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.video-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text-70);
    margin-bottom: 30px;
}

.video-text strong {
    color: var(--dark-text-primary);
    font-weight: 700;
}

.video-container {
    position: relative;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   FUNCTIONALITIES SECTION
   ======================================== */

.functionalities-section {
    padding: 100px 0;
    background: #131313;
}

.functionality-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
}

.functionality-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s ease;
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    min-width: 280px;
}

.functionality-card:hover {
    transform: translateY(-10px);
    background: rgba(140, 164, 100, 0.15);
    border-color: rgba(140, 164, 100, 0.5);
}

.functionality-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.functionality-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.functionality-card:hover .functionality-icon {
    transform: scale(1.2);
}

.functionality-card h3 {
    font-size: 18px;
    color: #8CA464;
    font-weight: 600;
}

/* ========================================
   COMPATIBILITY SECTION
   ======================================== */

.compatibility-section {
    padding: 100px 0;
    background: #131313;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
}

.partner-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    min-width: 280px;
}

.partner-card:hover {
    transform: scale(1.1);
    background: rgba(140, 164, 100, 0.15);
    border-color: rgba(140, 164, 100, 0.5);
}

.partner-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8CA464 0%, #7E8D77 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partner-logo img {
    width: 120px;
    height: 60px;
    object-fit: contain;
}

.partner-description {
    font-size: 14px;
    color: var(--dark-text-70);
    margin: 10px 0;
}

.partner-url {
    font-size: 14px;
    color: #8CA464;
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-url:hover {
    color: #7E8D77;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 80px 0;
    background: #131313;
    text-align: center;
    position: relative;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .benefit-card,
    .functionality-card,
    .partner-card {
        width: calc(50% - 15px);
    }

    .video-content {
        grid-template-columns: 1fr;
    }

    .pharmacie-hero .dark-container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .illustration-box {
        max-width: 400px;
        height: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pharmacie-hero {
        padding: 100px 0 80px;
        min-height: auto;
    }

    .benefit-card,
    .functionality-card,
    .partner-card {
        width: 100%;
    }

    .functionality-icon {
        font-size: 40px !important;
    }

    .functionality-icon img {
        width: 40px !important;
        height: 40px !important;
    }

    .partner-logo img {
        width: 100px !important;
        height: 50px !important;
    }

    .dark-h1 {
        font-size: 42px !important;
    }

    .dark-h2 {
        font-size: 32px !important;
    }

    .illustration-box {
        height: 350px;
    }

    .pharmacist-icons {
        font-size: 70px;
    }
}
