/* Variables */
:root {
    --primary-color: #2c7da0;
    --primary-dark: #1f5068;
    --primary-light: #61a5c2;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Principale */
.main-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-light);
    color: var(--white);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-register {
    background: var(--primary-color);
    color: var(--white);
}

.btn-register:hover {
    background: var(--primary-dark);
}

/* User Menu */
.user-menu {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--light-color);
}

.user-dropdown hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--light-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem;
    justify-content: space-around;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 2rem;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    background: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 1rem;
}

.search-input-group i {
    color: var(--gray-color);
}

.search-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.btn-search {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--primary-dark);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

/* Doctors Section */
.doctors-section,
.pharmacies-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: var(--warning-color);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.doctor-info {
    padding: 1.5rem;
}

.doctor-info h3 {
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-book {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    width: 100%;
    transition: var(--transition);
}

.btn-book:hover {
    background: var(--primary-dark);
}

/* How it works */
.how-it-works {
    background: var(--light-color);
    padding: 4rem 2rem;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 2rem;
    background: var(--white);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.testimonial-text i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-color);
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group label i {
    margin-right: 0.5rem;
}

.form-group input,
.form-group select,
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-login-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login-submit:hover {
    background: var(--primary-dark);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--light-color);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-mobile-money {
    background: #f39c12;
    color: var(--white);
}

.btn-google {
    background: #db4437;
    color: var(--white);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #fee;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-success {
    background: #efe;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

/* Profile Page */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.profile-cover {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.profile-avatar {
    position: absolute;
    top: 100px;
    left: 2rem;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
}

.profile-info {
    padding: 2rem 2rem 1rem 10rem;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-role,
.profile-location {
    color: var(--gray-color);
    margin-bottom: 0.25rem;
}

.profile-actions {
    padding: 0 2rem 2rem;
    text-align: right;
}

.btn-edit-profile {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray-color);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Medical Record Form */
.medical-record {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.allergy-item,
.antecedent-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.btn-remove {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-add {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Appointments Table */
.appointments-table {
    overflow-x: auto;
}

.appointments-table table {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    border-collapse: collapse;
}

.appointments-table th,
.appointments-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-color);
}

.appointments-table th {
    background: var(--primary-color);
    color: var(--white);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--white);
}

.badge-info {
    background: var(--info-color);
    color: var(--white);
}

.badge-success {
    background: var(--secondary-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--white);
}

.badge-danger {
    background: var(--danger-color);
    color: var(--white);
}

.badge-en_attente {
    background: var(--warning-color);
    color: var(--white);
}

.badge-confirme {
    background: var(--info-color);
    color: var(--white);
}

.badge-termine {
    background: var(--secondary-color);
    color: var(--white);
}

/* Consultation Cards */
.consultation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.consultation-header {
    background: var(--light-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consultation-body {
    padding: 1rem;
}

.diagnostic {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.btn-view-prescription {
    display: inline-block;
    background: var(--info-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
}

/* Security Settings */
.security-settings {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.security-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-color);
}

.security-section:last-child {
    border-bottom: none;
}

.btn-enable-2fa {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.session-device i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.btn-terminate {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem;
    background: var(--white);
    border-radius: var(--border-radius);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .main-content {
        padding-bottom: 70px;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .profile-info {
        padding: 1rem 1rem 1rem 7rem;
    }
    
    .profile-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar {
        top: 110px;
        left: 1rem;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .allergy-item,
    .antecedent-item {
        grid-template-columns: 1fr;
    }
    
    .session-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {
    .main-nav,
    .mobile-bottom-nav,
    .main-footer,
    .profile-actions,
    .btn-edit-profile {
        display: none;
    }
    
    .profile-container {
        padding: 0;
    }
    
    .profile-header {
        box-shadow: none;
    }
}
/* ============================================
   FOOTER AMÉLIORÉ - AYKAH TECHNOLOGIES
   ============================================ */

.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.developer-info {
    margin-top: 0.5rem;
}

.developer-info p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.developer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(155,89,182,0.5);
    transition: all 0.3s ease;
}

.developer-brand:hover {
    background: rgba(155,89,182,0.2);
    border-color: #9b59b6;
}

.developer-logo {
    height: 30px;
    width: auto;
    border-radius: 5px;
}

.developer-name {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ============================================
   PAGES LEGALES (A PROPOS, CONFIDENTIALITE, CONTACT)
   ============================================ */

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.legal-header p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.legal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-color);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--dark-color);
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 0.75rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Stats Highlight pour A PROPOS */
.stats-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-highlight {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.stat-highlight i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-highlight .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-highlight .stat-label {
    color: var(--gray-color);
}

/* Values Grid pour A PROPOS */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.value-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Developer Showcase pour A PROPOS */
.developer-showcase {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(155,89,182,0.1), rgba(44,125,160,0.1));
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.developer-logo-container {
    flex-shrink: 0;
}

.about-developer-logo {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.developer-info-about {
    flex: 1;
}

.developer-info-about h3 {
    color: #9b59b6;
    margin-bottom: 0.5rem;
}

/* ============================================
   PAGE CONTACT
   ============================================ */

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.contact-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--gray-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info,
.contact-form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-info h2,
.contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-detail h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.contact-detail p {
    color: var(--gray-color);
    line-height: 1.5;
}

.contact-detail a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.social-links h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.emergency-contact {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: var(--white);
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.emergency-content i {
    font-size: 3rem;
}

.emergency-content h3 {
    margin-bottom: 0.25rem;
}

.emergency-numbers {
    display: flex;
    gap: 1rem;
}

.emergency-numbers a {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.emergency-numbers a:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* ============================================
   MEDIA QUERIES POUR PAGES LEGALES
   ============================================ */

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-container,
    .contact-container {
        padding: 1rem;
    }
    
    .legal-content,
    .contact-info,
    .contact-form-container {
        padding: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.1rem;
    }
    
    .legal-footer {
        flex-direction: column;
    }
    
    .btn-print, .btn-back {
        justify-content: center;
    }
    
    .stats-highlight,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .developer-showcase {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-numbers {
        flex-direction: column;
        width: 100%;
    }
    
    .emergency-numbers a {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .developer-brand {
        margin: 0 auto;
    }
}

/* ============================================
   IMPRESSION
   ============================================ */

@media print {
    .main-nav,
    .mobile-bottom-nav,
    .main-footer,
    .legal-footer,
    .btn-print,
    .btn-back,
    .contact-footer {
        display: none !important;
    }
    
    .legal-container,
    .contact-container {
        padding: 0;
    }
    
    .legal-content {
        box-shadow: none;
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
}
/* ============================================
   FOOTER STYLES - AYKAH TECHNOLOGIES
   ============================================ */

.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 200px;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.developer-info {
    margin-top: 0.5rem;
}

.developer-info p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.developer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(155,89,182,0.5);
    transition: all 0.3s ease;
}

.developer-brand:hover {
    background: rgba(155,89,182,0.2);
    border-color: #9b59b6;
}

.developer-logo {
    height: 30px;
    width: auto;
    border-radius: 5px;
}

.developer-name {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Section contact du footer */
.footer-contact {
    flex: 1;
    min-width: 250px;
    padding: 0 1rem;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.footer-contact h4 {
    color: #9b59b6;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact h4 i {
    font-size: 1rem;
}

.contact-details-footer p {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-details-footer p i {
    width: 20px;
    color: #9b59b6;
}

.contact-details-footer a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details-footer a:hover {
    color: #9b59b6;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:before {
    content: "›";
    color: #9b59b6;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: #9b59b6;
    transform: translateX(5px);
}

/* Responsive footer */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .developer-brand {
        margin: 0 auto;
    }
    
    .footer-contact {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 0;
        text-align: center;
    }
    
    .footer-contact h4 {
        justify-content: center;
    }
    
    .contact-details-footer p {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
        text-align: center;
    }
    
    .footer-links a:before {
        display: none;
    }
}