:root {
    --primary: #10b981; /* Emerald Green - Pharmacy color */
    --primary-dark: #059669;
    --secondary: #3b82f6; /* Trusting Blue */
    --accent: #f59e0b; /* Attention/Alert Orange (warmth) */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Navigation --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    display: inline-block;
    white-space: nowrap;
}

.logo span span {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.nav-contact {
    border: 2px solid var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: var(--primary);
}

.nav-links a.nav-contact:hover {
    background: var(--primary);
    color: var(--white);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.status-closed {
    background-color: #ef4444; /* Red color */
    animation: pulse-red 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    overflow: visible; /* To see the outside callouts */
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    display: block;
}

/* --- Hero Callouts (Text Only) --- */
.hero-callout {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    animation: floatCallout 4s ease-in-out infinite;
}

.callout-text {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: #10b981; /* Precise & sharp Pharmacy Green */
    white-space: nowrap;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 1); /* Flat sharp shadow for better readability */
}

/* Positioning callouts around the image (Moved outside according to red marks) */
.callout-1 { 
    top: -15%; 
    left: -15%; 
    transform: rotate(-8deg);
}

.callout-2 { 
    top: 45%; 
    right: -35%; 
    transform: rotate(10deg);
}

.callout-3 { 
    bottom: -20%; 
    left: 50%; 
    transform: translateX(-50%) rotate(-3deg);
}

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

@media (max-width: 1400px) {
    .callout-text { font-size: 1.8rem; }
    .callout-1 { left: -5%; }
    .callout-2 { right: -15%; }
}

@media (max-width: 1200px) {
    .callout-text { font-size: 1.5rem; }
    .callout-1 { left: 0%; top: -10%; }
    .callout-2 { right: -5%; }
    .callout-3 { bottom: -15%; }
}

@media (max-width: 992px) {
    .hero-callout {
        display: none; /* Keep the UI clean on tablets and below */
    }
}

/* --- Services --- */
.services {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header h2 span {
    color: var(--primary);
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* --- Parapharmacie --- */
.parapharmacie {
    padding: 6rem 0;
    background-color: var(--white);
}

.para-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.para-image, .para-text {
    flex: 1;
}

.para-image img {
    width: 100%;
    border-radius: 20px;
}

.para-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.para-text h2 span {
    color: var(--primary);
}

.para-list {
    list-style: none;
    margin: 2rem 0;
}

.para-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.para-list li i {
    color: var(--primary);
}

/* --- About / Contact Info --- */
.about {
    padding: 6rem 0;
}

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

.about-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-info h2 span {
    color: var(--primary);
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.lien-invisible {
  /* Hérite automatiquement de la couleur et de la police du <p> parent */
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;

  /* Supprime le trait bleu classique des liens */
  text-decoration: none;

  /* Garde le curseur "main" pour indiquer que c'est cliquable */
  cursor: pointer;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: #ecfdf5;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-logo p {
    color: #94a3b8;
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 2rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content, .para-content, .about-grid {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .status {
        justify-content: center;
    }

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

    .contact-details {
        display: inline-block;
        text-align: left;
        margin-top: 2rem;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .para-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    nav {
        height: 70px;
        justify-content: space-between;
        gap: 1rem;
    }

    .logo {
        font-size: 1.1rem;
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
        text-align: center;
        overflow-y: auto;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
    }

    .nav-active {
        right: 0;
    }

    .burger {
        display: block;
        flex-shrink: 0;
    }

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

    .footer-logo p {
        margin: 1rem auto;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.95rem;
    }
    .logo i {
        font-size: 1.2rem;
    }
    .container {
        padding: 0 1rem;
    }
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

/* --- Preloader Xenon Effect --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Dark background for neon effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.xenon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 90%;
    max-width: 600px;
}

.xenon-cross {
    font-size: 5rem;
    color: #10b981;
    text-shadow: 
        0 0 10px #10b981,
        0 0 20px #10b981,
        0 0 40px #10b981;
    animation: glow 1.5s ease-in-out infinite alternate, flicker-cross 4s linear infinite;
}

.xenon-sign {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    text-shadow: 
        0 0 10px #10b981,
        0 0 20px #10b981,
        0 0 40px #10b981;
    animation: glow 1.5s ease-in-out infinite alternate;
}

.flicker {
    animation: flicker 3s linear infinite;
}

@keyframes flicker-cross {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 22%, 24%, 55% { opacity: 0.6; }
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px #10b981,
            0 0 20px #10b981,
            0 0 30px #059669;
    }
    to {
        text-shadow: 
            0 0 20px #10b981,
            0 0 40px #10b981,
            0 0 60px #059669,
            0 0 80px #059669;
    }
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    }
    20%, 24%, 55% {
        opacity: 0.3;
        text-shadow: none;
    }
}

@media (max-width: 768px) {
    .xenon-cross {
        font-size: 4rem;
    }
    .xenon-sign {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .xenon-sign {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
