/* ========================================
   PORTAIL SUPPORT B2B - STYLES CSS
   ======================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #1a202c;
    line-height: 1.6;
}

/* NAVIGATION */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-link.active {
    background: #dbeafe;
    color: #2563eb;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: #f1f5f9;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #1a202c;
    font-weight: 500;
    transition: background 0.2s;
}

.user-profile:hover {
    background: #f1f5f9;
}

/* MAIN CONTENT */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.main-content > * + * {
    margin-top: 2rem;
}

/* HERO SECTION - CRÉATION TICKET */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 2rem;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.btn-primary-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.hero-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #bfdbfe;
}

/* SEARCH SECTION */
.search-section {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* INCIDENTS ALERT */
.incidents-alert {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #78350f;
}

.incident-item {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.incident-title {
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.incident-meta {
    font-size: 0.875rem;
    color: #64748b;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-green {
    background: #d1fae5;
    color: #065f46;
}

.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

.badge-purple {
    background: #e9d5ff;
    color: #6b21a8;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.badge-orange {
    background: #fed7aa;
    color: #9a3412;
}

.badge-gray {
    background: #f1f5f9;
    color: #475569;
}

/* GRILLE 2 COLONNES */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* CARDS */
.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.link-primary {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.link-primary:hover {
    color: #1d4ed8;
}

.link-secondary {
    color: #b45309;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.link-secondary:hover {
    color: #92400e;
}

/* TICKET LIST */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-id {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #64748b;
}

.ticket-subject {
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.ticket-date {
    font-size: 0.875rem;
    color: #64748b;
}

/* ARTICLE LIST */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.article-item:hover {
    background: #f8fafc;
}

.article-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.article-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.article-meta {
    font-size: 0.75rem;
    color: #64748b;
}

/* CONTACT URGENCE */
.contact-urgence {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.phone-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.contact-text {
    color: #334155;
    margin-bottom: 0.75rem;
}

.phone-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-left: 0.5rem;
}

.contact-hours {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.contact-tip {
    background: #dbeafe;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.contact-tip p {
    font-size: 0.875rem;
    color: #1e3a8a;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary-large {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .hero-benefits span:nth-child(2),
    .hero-benefits span:nth-child(4) {
        display: none;
    }
}

/* UTILITY CLASSES */
.icon {
    display: inline-block;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }