/* ==========================================
   SERVME - CSS MODERNE & PROPRE
   ========================================== */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #ff6b6b;
    --secondary-dark: #ee5a24;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff6b6b;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --radius: 15px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 184, 148, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    position: relative;
}

.logo-icon .cup {
    width: 26px;
    height: 22px;
    background: white;
    border-radius: 0 0 11px 11px;
    border: 2px solid white;
    position: relative;
    z-index: 2;
}

.logo-icon .handle {
    position: absolute;
    top: 30px;
    right: 14px;
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-radius: 50%;
    background: transparent;
    z-index: 2;
}

.logo-icon .steam,
.logo-icon .steam-middle {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 6px;
    background: white;
    border-radius: 1px;
    animation: steam 2s ease-in-out infinite;
    z-index: 3;
}

.logo-icon .steam::before,
.logo-icon .steam::after {
    content: "";
    position: absolute;
    width: 1.5px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

.logo-icon .steam::before {
    left: -3px;
    animation: steam 2s ease-in-out infinite;
}

.logo-icon .steam::after {
    left: 3px;
    animation: steam 2s ease-in-out infinite 0.3s;
}

@keyframes steam {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateY(0) scale(1);
    }
    50% { 
        opacity: 1; 
        transform: translateY(-2px) scale(1.1);
    }
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ff6b6b 50%, #00b894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.4rem;
    opacity: 1;
    font-weight: 500;
    color: white;
    max-width: 600px;
    margin: 0 auto 10px auto;
    letter-spacing: 0.3px;
}

.sub-tagline {
    font-size: 1.1rem;
    color: #ff9999;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 30px 30px 0 0;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.welcome-msg {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.welcome-msg i {
    font-size: 1.5rem;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--secondary-dark);
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

/* Search */
.search-header {
    margin-bottom: 30px;
}

.search-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.tab-btn {
    padding: 12px 30px;
    background: var(--light);
    color: var(--text-secondary);
    border-radius: var(--radius);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: var(--shadow);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters select {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filters select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card .meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card .meta i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

.badge-premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-urgent {
    background: var(--danger);
    color: white;
}

.badge-open {
    background: var(--success);
    color: white;
}

/* Register Choice */
.register-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.choice-card {
    background: white;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.choice-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.choice-card i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.choice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.choice-card p {
    color: var(--text-secondary);
}

/* Forms */
.form-modern {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--text-primary);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--danger);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    display: none;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.show {
    display: flex;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-content {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .navigation {
        flex-direction: column;
        width: 100%;
    }

    .navigation button {
        width: 100%;
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        min-width: 100%;
    }

    .search-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

/* Dashboard & Profile */
.dashboard-content,
.profile-content {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--light);
    padding: 60px 20px 20px;
    margin-top: 80px;
    border-top: 3px solid var(--primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
}

/* Styles pour les modals légales */
.legal-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.3rem;
}

.legal-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content ul li {
    margin-bottom: 10px;
}

.legal-content code {
    background: var(--light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--secondary);
}

.legal-content em {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
        margin-top: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ==========================================
   WORKERS CARDS V2 - Design moderne
   ========================================== */

.worker-card {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 20px;
}

.worker-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

/* Header avec avatar */
.worker-card-header {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.worker-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}

.worker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.worker-avatar-initials {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
}

/* Badge Premium en haut à droite */
.premium-badge-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Corps de la carte */
.worker-card-body {
  padding: 20px;
}

.worker-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.worker-specialty {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.worker-location {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Stats en ligne */
.worker-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.worker-stat {
  flex: 1;
  text-align: center;
}

.worker-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 4px;
}

.worker-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badges de vérification */
.verification-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.verification-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: help;
}

.verification-badge.verified {
  background: #d4edda;
}

/* Indicateur de disponibilité */
.availability-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6c757d;
}

.availability-dot.available {
  background: #28a745;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Actions */
.worker-card-actions {
  padding: 0 20px 20px 20px;
  display: flex;
  gap: 10px;
}

.worker-card-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-view-profile {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-view-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-message {
  background: #f8f9fa;
  color: var(--text-primary);
}

.btn-message:hover {
  background: #e9ecef;
}

/* ==========================================
   PHOTO DE PROFIL - Bouton édition avatar
   ========================================== */

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

