/* ==================== GALERIE ==================== */
.gallery-section {
    background: var(--light-bg);
    padding: 60px 0 40px 0;
}
.gallery-section .section-title {
    color: var(--primary);
    margin-bottom: 10px;
}
.gallery-section .section-subtitle {
    color: var(--text-gray);
    margin-bottom: 30px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(123, 45, 143, 0.18);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44,30,63,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.lightbox-close {
    color: #fff;
    font-size: 2.5rem;
    position: absolute;
    top: 40px;
    right: 60px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: var(--accent);
}
/* Styles Modernes et Complets pour Thiès Idéal Pharma */

:root {
    --primary: #7B2D8F;
    --secondary: #FF8C42;
    --accent: #2ECC71;
    --light-bg: #F5E8F8;
    --text-dark: #2C1E3F;
    --text-gray: #5A4A7A;
    --white: #ffffff;
    --border-radius: 10px;
    --box-shadow: 0 4px 15px rgba(123, 45, 143, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
     background-color: rgb(255 255 255);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
        background: linear-gradient(135deg, #2c8754 0%, #ff8c42 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: var(--light-bg);
    border-bottom-color: var(--light-bg);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== HERO SLIDER ==================== */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(123, 45, 143, 0.114) 50%, var(--secondary) 100%);
}

.slide.active {
    display: flex;
    opacity: 1;
}

/* Slide gradients */
.slide:nth-child(1) {
    background: linear-gradient(135deg, #1B6B3A 0%, #2E8B57 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #0F4C3A 0%, #2E8B57 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #1B6B3A 0%, #0F4C3A 100%);
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, #2E8B57 0%, #1B6B3A 100%);
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    animation: slideUp 0.8s ease-out;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(123, 45, 143, 0.10);
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-50%) scale(1.15) rotate(-8deg);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.25);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover {
    background: var(--accent);
    border-color: var(--white);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.6);
}

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #FF9F3D);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF9F3D, var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(123, 45, 143, 0.3);
}

/* ==================== SECTION STYLES ==================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--primary));
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(255, 140, 66, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: linear-gradient(180deg, var(--light-bg) 0%, rgba(46, 204, 113, 0.08) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-text strong {
    color: var(--secondary);
    text-shadow: 0 2px 4px rgba(255, 140, 66, 0.2);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 3px solid var(--accent);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
    border-bottom-color: var(--secondary);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.2);
    border-top-color: var(--accent);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.4));
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==================== SECTORS SECTION ==================== */
.sectors {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.08) 0%, var(--light-bg) 100%);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 5px solid var(--accent);
}

.sector-card:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.15);
}

.sector-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.sector-card:hover .sector-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.5));
}

.sector-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sector-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==================== PRESENCE SECTION ==================== */
.presence {
    background: var(--white);
}

.presence-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.presence-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.presence-text p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.presence-text strong {
    color: var(--secondary);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.region-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.region-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.3) 0%, transparent 70%);
    transition: var(--transition);
    opacity: 0;
}

.region-badge:hover {
    transform: scale(1.1) rotateY(5deg);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.4);
}

.region-badge:hover::before {
    opacity: 1;
}

.region-badge i {
    font-size: 1.5rem;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(46, 204, 113, 0.12) 100%);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.2);
    border-left-color: var(--secondary);
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-card strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.testimonial-card span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==================== CTA SECTION ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-bg), rgba(46, 204, 113, 0.1));
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}

.contact-info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
    border-left-color: var(--secondary);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-info-box:hover .contact-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.4));
}

.contact-info-box h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-info-box p {
    color: var(--text-gray);
}

.contact-form-wrapper {
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(46, 204, 113, 0.05) 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--accent);
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.15);
}

.contact-form-wrapper h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1B5E20 0%, rgb(81 2 102) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--light-bg);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    border-radius: 50%;
    transition: var(--transition);
    z-index: -1;
}

.social-links a:hover {
    background: var(--secondary);
    transform: scale(1.15) rotate(10deg);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #fdfdfd;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: none;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .sectors-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-slider {
        height: 50vh;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .slider-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }

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