/* MEDIBEST - STYLE.CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #06b6d4;
    --primary-blue: #3b82f6;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --text-gray: #cbd5e1;
    --text-light: #f1f5f9;
    --border-cyan: rgba(6, 182, 212, 0.2);
    --shadow-cyan: rgba(6, 182, 212, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-cyan);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    padding: 2px;
    animation: pulse 2s infinite;
}

.nav-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-cyan);
}

.lang-toggle:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--primary-cyan);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-cyan);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(59, 130, 246, 0.1) 50%, var(--dark-bg) 100%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeInUp 1s ease-out;
}

.logo-animation {
    margin-bottom: 3rem;
}

.logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    padding: 4px;
    animation: rotate 10s linear infinite;
    box-shadow: 0 0 50px var(--shadow-cyan);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue), var(--primary-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.hero-text {
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray);
    line-height: 1.8;
}

.hero-text p {
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow-cyan);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-cyan);
}

/* Page Content */
.page-content {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
}

.content-section p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.intro-text {
    font-size: 1.25rem !important;
    color: var(--text-light) !important;
    text-align: center;
}

.problem-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.problem-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    color: var(--text-gray);
}

.problem-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
}

.highlight-text {
    font-size: 1.5rem !important;
    color: var(--primary-cyan) !important;
    font-weight: 600 !important;
    margin: 2rem 0 !important;
}

.final-text {
    font-size: 1.25rem !important;
    color: var(--text-light) !important;
    font-weight: 500 !important;
    text-align: center;
    margin-top: 3rem !important;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.partner-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.partner-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2);
    transform: translateY(-5px);
}

.partner-card h3 {
    color: var(--primary-cyan);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.partner-card p {
    color: var(--text-gray);
    line-height: 1.7;
    text-align: center;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.team-member {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.team-member:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2);
    transform: translateY(-5px);
}

.member-photo {
    margin-bottom: 1.5rem;
    position: relative;
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    padding: 3px;
    display: block;
}

/* Fallback pour images manquantes */
.team-photo::before {
    content: attr(alt);
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
}

.team-photo[src]:not([src=""]) {
    position: relative;
    z-index: 1;
}

.team-photo::after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    display: none;
}

/* Afficher les initiales si l'image ne charge pas */
.team-photo:not([src]),
.team-photo[src=""],
img.team-photo[alt]::before {
    display: flex;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder span {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.team-member h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.member-title {
    color: var(--primary-cyan) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    text-align: center;
}

.member-bio {
    color: var(--text-gray) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: center;
}

/* Contact Page */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form-wrapper, .contact-info-wrapper {
    animation: fadeInUp 0.8s ease-out;
}

.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-cyan);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-cyan);
}

.contact-info-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info-card h3 {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.contact-info-item p:last-child {
    color: var(--text-light);
    font-weight: 500;
}

.business-hours {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    padding: 2rem;
}

.hours-title {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.hours-content {
    color: var(--text-gray);
}

.hours-content p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
    border-top: 1px solid var(--border-cyan);
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-cyan);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    padding: 2px;
}

.footer-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-weight: 700;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-cyan);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .page-content {
        padding-top: 120px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}