/* ============================================
   B2BCONNECT - STYLES PRINCIPAUX
   Couleurs: Vert #28a745 / Rouge #dc3545
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #28a745;
    --primary-red: #dc3545;
    --secondary-green: #20c997;
    --dark-green: #218838;
    --light-green: #d4edda;
    --dark-red: #c82333;
    --light-red: #f8d7da;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--gray-100);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing-page {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero {
    text-align: center;
    max-width: 1200px;
}

.brand {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brand .connect {
    color: var(--primary-red);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-page {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 600px;
}

.register-card {
    max-width: 700px;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .brand {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.auth-footer p {
    margin: 0.5rem 0;
}

.demo-accounts {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    text-align: center;
}

.demo-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size:14px;
}

.nav-brand .brand {
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
}

.notification-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info .role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
    min-width: 60%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-green);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-800);
}

.btn-success {
    background: var(--primary-green);
    color: white;
}

.btn-success:hover {
    background: var(--dark-green);
}

.btn-danger {
    background: var(--primary-red);
    color: white;
    margin-top: 10px;
}

.btn-danger:hover {
    background: var(--dark-red);
    margin-top: 10px;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control, input[type="text"], input[type="email"], 
input[type="password"], input[type="tel"], input[type="url"],
input[type="date"], input[type="time"], input[type="number"],
select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--gray-100);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-300);
}

.table td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: var(--gray-100);
}

.table .actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   BADGES & STATUS
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: var(--light-green);
    color: var(--dark-green);
}

.badge-danger {
    background: var(--light-red);
    color: var(--dark-red);
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-primary {
    background: var(--primary-green);
    color: white;
}

.badge-secondary {
    background: var(--gray-300);
    color: var(--gray-800);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--light-green);
    color: var(--dark-green);
    border: 1px solid var(--dark-green);
}

.alert-danger {
    background: var(--light-red);
    color: var(--dark-red);
    border: 1px solid var(--dark-red);
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.card-green::before { background: var(--primary-green); }
.card-blue::before { background: #007bff; }
.card-orange::before { background: #fd7e14; }
.card-red::before { background: var(--primary-red); }

.stat-icon {
    font-size: 2.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
}

.stat-content p {
    margin: 0;
    color: var(--text-muted);
}

.stat-link {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.875rem;
    color: var(--primary-green);
    text-decoration: none;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.quick-actions {
    margin-top: 3rem;
}

.quick-actions h2 {
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   FILTERS & TABS
   ============================================ */

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-300);
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab:hover {
    background: var(--gray-100);
}

.tab.active {
    border-bottom-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
}

/* ============================================
   REQUESTS & MEETINGS
   ============================================ */

.requests-list, .meetings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-item, .meeting-item {
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.request-info, .meeting-details {
    flex: 1;
}

.request-info h4, .meeting-details h4 {
    margin: 0 0 0.5rem 0;
}

.request-date {
    margin: 0.5rem 0;
    font-weight: 500;
}

.request-notes {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 0.9rem;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.request-card {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: white;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.request-header h3 {
    margin: 0;
}

.request-sector {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.request-datetime {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 4px;
}

.request-datetime p {
    margin: 0.25rem 0;
}

.request-notes {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 4px;
}

.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   CALENDAR
   ============================================ */

.calendar-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.calendar-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calendar-day {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.calendar-day.has-meetings {
    border-left: 4px solid var(--primary-green);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.day-header h3 {
    margin: 0;
}

.day-meetings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-meeting {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-green);
}

.meeting-time {
    font-weight: 600;
    color: var(--primary-green);
}

.meeting-info h4 {
    margin: 0 0 0.5rem 0;
}

.meeting-info p {
    margin: 0.25rem 0;
}

.meeting-notes {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--text-muted);
}

.meeting-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    min-width: 60px;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
}

.date-month {
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* ============================================
   PROFILE
   ============================================ */

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.logo-upload {
    margin-bottom: 2rem;
}

.current-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.company-logo {
    max-width: 150px;
    max-height: 150px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.logo-placeholder-large {
    width: 150px;
    height: 150px;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    border-radius: var(--border-radius);
}

.company-logo-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 4px;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
	display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background: var(--gray-100);
border-radius: var(--border-radius);
}.info-item strong {
color: var(--text-dark);
}/* ============================================
STATISTICS
============================================ */.stats-dashboard {
display: flex;
flex-direction: column;
gap: 2rem;
}.chart-bars {
display: flex;
flex-direction: column;
gap: 1rem;
}.chart-bar-item {
display: grid;
grid-template-columns: 150px 1fr 80px;
gap: 1rem;
align-items: center;
}.chart-label {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 500;
}.chart-value {
color: var(--text-muted);
font-size: 0.875rem;
}.chart-bar {
height: 30px;
background: var(--gray-200);
border-radius: 15px;
overflow: hidden;
}.chart-bar-fill {
height: 100%;
transition: width 0.5s ease;
border-radius: 15px;
}.chart-bar-green { background: var(--primary-green); }
.chart-bar-red { background: var(--primary-red); }
.chart-bar-orange { background: #fd7e14; }
.chart-bar-gray { background: var(--gray-600); }
.chart-bar-blue { background: #007bff; }.chart-percentage {
text-align: right;
font-weight: 600;
color: var(--text-dark);
}.summary-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}.summary-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: var(--gray-100);
border-radius: var(--border-radius);
}.summary-icon {
font-size: 2rem;
}.summary-content h3 {
font-size: 1.75rem;
margin: 0;
}.summary-content p {
margin: 0;
color: var(--text-muted);
font-size: 0.875rem;
}/* ============================================
ROOMS
============================================ */.two-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}.list-group {
display: flex;
flex-direction: column;
gap: 1rem;
}.list-item {
padding: 1rem;
border: 1px solid var(--gray-300);
border-radius: var(--border-radius);
display: flex;
justify-content: space-between;
align-items: center;
}.list-title {
font-weight: 600;
}.room-item {
display: flex;
justify-content: space-between;
align-items: flex-start;
}.room-info h3 {
margin: 0 0 0.5rem 0;
}.room-details {
margin: 0.5rem 0;
color: var(--text-muted);
font-size: 0.9rem;
}.room-actions {
display: flex;
gap: 0.5rem;
}/* ============================================
NOTIFICATIONS
============================================ */.notifications-list {
display: flex;
flex-direction: column;
gap: 1rem;
}.notification-item {
display: flex;
gap: 1rem;
padding: 1rem;
background: var(--gray-100);
border-radius: var(--border-radius);
border-left: 3px solid var(--primary-green);
}.notif-icon {
font-size: 1.5rem;
}.notif-content {
flex: 1;
}.notif-content p {
margin: 0 0 0.25rem 0;
}/* ============================================
UTILITIES
============================================ */.text-center {
text-align: center;
}.text-muted {
color: var(--text-muted);
}.text-warning {
color: #fd7e14;
}.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }/* ============================================
FOOTER
============================================ */.footer {
background: white;
padding: 2rem;
text-align: center;
border-top: 1px solid var(--gray-200);
margin-top: auto;
}.footer p {
margin: 0;
color: var(--text-muted);
}/* ============================================
RESPONSIVE
============================================ */@media (max-width: 768px) {
.navbar {
flex-direction: column;
gap: 1rem;
}
	.nav-menu {
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.stats-grid {
    grid-template-columns: 1fr;
}

.dashboard-grid {
    grid-template-columns: 1fr;
}

.two-columns {
    grid-template-columns: 1fr;
}

.form-row {
    grid-template-columns: 1fr;
}

.cta-buttons {
    flex-direction: column;
    width: 100%;
}

.cta-buttons .btn {
    width: 100%;
}

.action-buttons {
    flex-direction: column;
}

.action-buttons .btn {
    width: 100%;
}

.requests-grid {
    grid-template-columns: 1fr;
}

.chart-bar-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.chart-label {
    margin-bottom: 0.25rem;
}

.summary-grid {
    grid-template-columns: 1fr;
}
	}
/* ============================================
PRINT STYLES
============================================ */
@media print {
.navbar,
.footer,
.btn,
.filters,
.tabs {
display: none;
}
body {
    background: white;
}

.card {
    box-shadow: none;
    border: 1px solid #000;
}
}