/* ==========================================================================
   Styles des Composants (Header, Footer, etc.)
   ========================================================================== */

/* Header */
.app-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.app-header:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-header .header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .app-header .header-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .app-header .header-inner {
        padding: 0 2rem;
    }
}

/* Navigation avec icônes */
.app-header nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.15s ease;
}

.app-header nav a i {
    font-size: 1rem;
}

/* Logo */
.app-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.app-header .logo-icon {
    width: 32px;
    height: 32px;
    background: #4F46E5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.125rem;
}

.app-header .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

@media (max: 639px) {
    .app-header .logo-text {
        display: none;
    }
}

/* Navigation */
.app-header nav {
    display: none;
}

@media (min-width: 768px) {
    .app-header nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.app-header nav a {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.15s ease;
}

.app-header nav a:hover {
    background: #f3f4f6;
    color: #111827;
}

.app-header nav a.active {
    background: #eef2ff;
    color: #4F46E5;
}

/* Actions droite */
.app-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-header .search-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.app-header .search-btn:hover {
    background: #e5e7eb;
}

@media (min-width: 640px) {
    .app-header .search-btn {
        display: flex;
    }
}

.app-header .search-btn kbd {
    display: none;
    align-items: center;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-family: monospace;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

@media (min-width: 1024px) {
    .app-header .search-btn kbd {
        display: flex;
    }
}

/* Notifications */
.app-header .notification-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    color: #6b7280;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.app-header .notification-btn:hover {
    background: #f3f4f6;
}

.app-header .notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

/* User Menu */
.app-header .user-menu {
    position: relative;
}

.app-header .user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.app-header .user-btn:hover {
    background: #f3f4f6;
}

.app-header .user-avatar {
    width: 32px;
    height: 32px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
    font-weight: 500;
    font-size: 0.875rem;
}

.app-header .user-name {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

@media (min-width: 768px) {
    .app-header .user-name {
        display: block;
    }
}

.app-header .user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 14rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    z-index: 50;
    display: none;
}

.app-header .user-dropdown.show {
    display: block;
}

.app-header .user-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.app-header .user-dropdown-email {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.app-header .user-dropdown-name {
    font-size: 0.75rem;
    color: #6b7280;
}

.app-header .user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease;
}

.app-header .user-dropdown a:hover {
    background: #f9fafb;
}

.app-header .user-dropdown a.logout {
    color: #dc2626;
}

.app-header .user-dropdown a.logout:hover {
    background: #fef2f2;
}

/* Login/Register buttons */
.app-header .auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-header .auth-buttons a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.app-header .auth-buttons .login-link {
    color: #374151;
}

.app-header .auth-buttons .login-link:hover {
    color: #111827;
}

.app-header .auth-buttons .register-link {
    background: #4F46E5;
    color: #fff;
}

.app-header .auth-buttons .register-link:hover {
    background: #4338CA;
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.search-modal.show {
    display: block;
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
}

.search-content {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 48rem;
    padding: 0 1rem;
}

.search-content > div {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.search-input-wrapper i {
    color: #9ca3af;
    margin-right: 0.75rem;
}

.search-input-wrapper input {
    flex: 1;
    padding: 0.75rem;
    font-size: 1.125rem;
    border: 0;
    outline: none;
}

.search-input-wrapper button {
    padding: 0.5rem;
    color: #9ca3af;
    border: none;
    background: none;
    cursor: pointer;
}

.search-input-wrapper button:hover {
    color: #6b7280;
}

.search-results {
    padding: 1rem;
}

.search-hint {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .app-footer {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .app-footer {
        padding: 3rem 2rem;
    }
}

.app-footer .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.app-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .app-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-footer .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.app-footer .footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .app-footer .footer-brand {
        grid-column: span 2;
    }
}

.app-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.app-footer .footer-logo-icon {
    width: 32px;
    height: 32px;
    background: #4F46E5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.125rem;
}

.app-footer .footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.app-footer .footer-desc {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    max-width: 24rem;
}

.app-footer .social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-footer .social-links a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.15s ease;
}

.app-footer .social-links a:hover {
    color: #4F46E5;
}

.app-footer .footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111827;
    margin-bottom: 1rem;
}

.app-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.app-footer .footer-links a {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-footer .footer-links a:hover {
    color: #4F46E5;
}

.app-footer .footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .app-footer .footer-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.app-footer .copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.app-footer .legal-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .app-footer .legal-links {
        margin-top: 0;
    }
}

.app-footer .legal-links a {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-footer .legal-links a:hover {
    color: #374151;
}

/* ==========================================================================
   Pricing Page
   ========================================================================== */

.pricing-page {
    padding: 3rem 1rem;
}

.pricing-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pricing-page > .container > p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-page .pricing-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.pricing-page .pricing-card.popular {
    border-color: #4F46E5;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1);
    position: relative;
}

.pricing-page .pricing-card.popular::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4F46E5;
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-page .pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.pricing-page .pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.pricing-page .pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.pricing-page .pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.pricing-page .pricing-card ul li {
    padding: 0.5rem 0;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-page .pricing-card ul li::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
}

.pricing-page .pricing-card .btn {
    width: 100%;
    text-align: center;
}
