body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    background: #ffffff;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo span {
    color: #3498db;
}
nav a {
    color: #2c3e50;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 16px;
    border-radius: 4px;
}
nav a.active, nav a:hover, .login-btn {
    background: #3498db;
    color: #ffffff;
}
.login-btn {
    font-weight: 600;
    margin-left: 20px;
}
main {
    flex: 1;
}
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 80px 20px 60px 20px;
    text-align: center;
    color: #ffffff;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero h1 span {
    color: #ecf0f1;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta {
    background: #ffffff;
    color: #3498db;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.cta:hover {
    background: #ecf0f1;
    transform: translateY(-1px);
}
.cta-secondary {
    background: transparent;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: all 0.2s;
}
.cta-secondary:hover {
    background: #ffffff;
    color: #3498db;
}
.features {
    margin: 60px auto;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 50px 40px;
    text-align: center;
}
.features h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.features p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
    transition: all 0.2s;
}
.service-card:hover {
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.service-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Boutiques */
.boutiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.boutique-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
    transition: all 0.2s;
}
.boutique-card:hover {
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}
.boutique-card h3 {
    color: #3498db;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.boutique-card p {
    color: #7f8c8d;
    margin: 10px 0;
    font-size: 1rem;
}
.boutique-card .cta {
    margin-top: 20px;
    display: inline-block;
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.contact-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
    transition: all 0.2s;
}
.contact-item:hover {
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}
.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}
.contact-item h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.contact-item p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Vérificateur de pneus */
.pneu-checker {
    max-width: 800px;
    margin: 0 auto;
}
.upload-area {
    background: #ffffff;
    border-radius: 8px;
    padding: 50px;
    text-align: center;
    border: 2px dashed #3498db;
    transition: all 0.2s;
    cursor: pointer;
}
.upload-area:hover {
    border-color: #2980b9;
    background: #f8f9fa;
}
.upload-content {
    color: #2c3e50;
}
.upload-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.upload-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}
.upload-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #7f8c8d;
}

.result-area {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.result-content {
    display: flex;
    gap: 40px;
    align-items: center;
}
.result-image {
    flex: 1;
    text-align: center;
}
.result-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.result-analysis {
    flex: 1;
}
.wear-indicator {
    margin-bottom: 30px;
}
.wear-indicator h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}
.wear-bar {
    width: 100%;
    height: 12px;
    background: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}
.wear-fill {
    height: 100%;
    background: #3498db;
    border-radius: 6px;
    transition: width 1s ease;
    width: 0%;
}
.recommendation h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}
.recommendation p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Dashboard cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px auto 0 auto;
    max-width: 1200px;
}
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #ecf0f1;
    transition: all 0.2s;
}
.card:hover {
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}
.card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
}
.card a {
    color: #3498db;
    background: #ecf0f1;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.card a:hover {
    background: #3498db;
    color: #ffffff;
}

/* Tableaux CRM */
.table-crm {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.table-crm th, .table-crm td {
    padding: 16px 12px;
    text-align: left;
}
.table-crm th {
    background: #3498db;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}
.table-crm tr:nth-child(even) {
    background: #f8f9fa;
}
.table-crm tr:hover {
    background: #ecf0f1;
}

footer {
    background: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    .logo {
        margin-bottom: 15px;
    }
    nav a {
        margin: 0 8px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .features {
        padding: 30px 20px;
        margin: 40px 20px;
    }
    .services-grid, .boutiques-grid, .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .result-content {
        flex-direction: column;
        gap: 30px;
    }
    .upload-area {
        padding: 30px 20px;
    }
    .upload-icon {
        font-size: 2.5rem;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
} 

/* Styles pour la page de login */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 20px;
}
.login-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    padding: 50px 40px;
    max-width: 400px;
    width: 100%;
    border: 1px solid #ecf0f1;
}
.login-header {
    text-align: center;
    margin-bottom: 40px;
}
.login-header .logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.login-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.login-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}
.form-group input {
    padding: 12px 16px;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    font-size: 1rem;
    background: #f8f9fa;
    color: #7f8c8d;
    transition: all 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
}
.form-group input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.demo-notice {
    background: #ecf0f1;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.notice-icon {
    font-size: 1.2rem;
}
.demo-notice p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.login-btn {
    background: #3498db;
    color: #ffffff;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}
.login-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.back-link {
    text-align: center;
    margin-top: 20px;
}
.back-link a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.back-link a:hover {
    color: #3498db;
}

/* Responsive pour le login */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
        margin: 10px;
    }
    .login-header .logo {
        font-size: 1.5rem;
    }
    .login-header h2 {
        font-size: 1.3rem;
    }
} 

/* Widget Chatbot IA */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Montserrat', Arial, sans-serif;
}

.chatbot-toggle {
    background: #3498db;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(52,152,219,0.3);
    transition: all 0.3s;
    border: none;
}
.chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52,152,219,0.4);
}
.chatbot-icon {
    font-size: 1.5rem;
}
.chatbot-status {
    font-weight: 600;
    font-size: 0.95rem;
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    border: 1px solid #ecf0f1;
    overflow: hidden;
}

.chatbot-header {
    background: #3498db;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-avatar {
    font-size: 1.8rem;
}
.chatbot-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.chatbot-title p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}
.chatbot-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.chatbot-close:hover {
    background: rgba(255,255,255,0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.message {
    display: flex;
    margin-bottom: 10px;
}
.bot-message {
    justify-content: flex-start;
}
.user-message {
    justify-content: flex-end;
}
.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.bot-message .message-content {
    background: #f8f9fa;
    color: #2c3e50;
    border-bottom-left-radius: 6px;
}
.user-message .message-content {
    background: #3498db;
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.quick-btn {
    background: #ffffff;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.quick-btn:hover {
    background: #3498db;
    color: #ffffff;
}

.chatbot-input {
    padding: 20px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 10px;
    align-items: center;
}
.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ecf0f1;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.chatbot-input input:focus {
    border-color: #3498db;
}
.chatbot-send {
    background: #3498db;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-send:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Animation d'ouverture */
.chatbot-container.show {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

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

/* Responsive chatbot */
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        right: -20px;
        height: 60vh;
    }
    .chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
} 

/* Styles pour le Dashboard amélioré */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.dashboard-welcome h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.dashboard-welcome p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.dashboard-date {
    color: #3498db;
    font-weight: 600;
    font-size: 0.95rem;
}
.dashboard-actions {
    display: flex;
    gap: 15px;
}
.action-btn {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn:hover {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
}
.action-icon {
    font-size: 1.1rem;
}

/* Grille de métriques */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.metric-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 20px;
}
.metric-card:hover {
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}
.metric-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}
.metric-content {
    flex: 1;
}
.metric-content h3 {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.metric-value {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.metric-trend {
    font-size: 0.85rem;
    font-weight: 600;
}
.metric-trend.positive {
    color: #27ae60;
}
.metric-trend.negative {
    color: #e74c3c;
}
.metric-trend.neutral {
    color: #f39c12;
}

/* Graphiques */
.dashboard-charts {
    margin-bottom: 40px;
}
.chart-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.chart-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}
.chart-legend {
    display: flex;
    gap: 20px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #7f8c8d;
}
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}
.legend-color.paris {
    background: #3498db;
}
.legend-color.lyon {
    background: #e74c3c;
}
.legend-color.marseille {
    background: #f39c12;
}

.chart-content {
    display: flex;
    gap: 20px;
    align-items: end;
    height: 200px;
}
.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.bar-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}
.bar-group {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 150px;
    align-items: end;
}
.bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s;
    min-height: 10px;
}
.bar.paris {
    background: #3498db;
}
.bar.lyon {
    background: #e74c3c;
}
.bar.marseille {
    background: #f39c12;
}
.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

/* Actions rapides */
.quick-actions-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.quick-actions-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
}
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.quick-action-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s;
    border: 1px solid #ecf0f1;
}
.quick-action-card:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
}
.quick-action-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}
.quick-action-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.quick-action-card p {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .dashboard-welcome h1 {
        font-size: 1.8rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .metric-card {
        padding: 20px;
    }
    .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .chart-legend {
        flex-wrap: wrap;
        gap: 15px;
    }
    .chart-content {
        gap: 10px;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
} 

/* Styles pour la page Boutiques */
.boutiques-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.page-title h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.page-title p {
    color: #7f8c8d;
    font-size: 1.1rem;
}
.page-actions {
    display: flex;
    gap: 15px;
}

/* Statistiques des boutiques */
.boutiques-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Statistiques du stock */
.stock-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Statistiques des RDV */
.rdv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Statistiques des clients */
.clients-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Statistiques de facturation */
.facturation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Statistiques des statistiques */
.stats-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat-card:hover {
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}
.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}
.stat-content h3 {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.stat-value {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.stat-trend {
    font-size: 0.85rem;
    font-weight: 600;
}
.stat-trend.positive {
    color: #27ae60;
}
.stat-trend.negative {
    color: #e74c3c;
}

/* Grille des boutiques */
.boutiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.boutique-card-detailed {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
    transition: all 0.2s;
}
.boutique-card-detailed:hover {
    box-shadow: 0 4px 25px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}

.boutique-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}
.boutique-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.boutique-address, .boutique-phone {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 4px 0;
}
.boutique-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f8f9fa;
}
.boutique-status.active {
    color: #27ae60;
    background: #d5f4e6;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
}

.boutique-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}
.stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.boutique-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.boutique-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.boutique-btn.primary {
    background: #3498db;
    color: #ffffff;
}
.boutique-btn.primary:hover {
    background: #2980b9;
}
.boutique-btn.secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
}
.boutique-btn.secondary:hover {
    background: #ecf0f1;
}

/* Section employés */
.employees-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.section-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.table-container {
    overflow-x: auto;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-badge.active {
    background: #d5f4e6;
    color: #27ae60;
}
.status-badge.inactive {
    background: #fadbd8;
    color: #e74c3c;
}

.table-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-right: 5px;
    background: #3498db;
    color: #ffffff;
}
.table-btn:hover {
    background: #2980b9;
}
.table-btn.secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
}
.table-btn.secondary:hover {
    background: #ecf0f1;
}

/* Responsive boutiques */
@media (max-width: 768px) {
    .boutiques-container {
        padding: 15px;
    }
    .page-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .page-title h1 {
        font-size: 1.8rem;
    }
    .boutiques-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .boutiques-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .boutique-card-detailed {
        padding: 20px;
    }
    .boutique-header {
        flex-direction: column;
        gap: 15px;
    }
    .boutique-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .boutique-actions {
        justify-content: center;
    }
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
} 

/* Styles pour la page Stock */
.stock-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filtres de stock */
.stock-filters {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.filter-group, .search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-group label, .search-group label {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
}
.filter-select, .search-input {
    padding: 10px 12px;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: all 0.2s;
}
.filter-select:focus, .search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* Alertes de stock */
.stock-alerts {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    transition: all 0.2s;
}
.alert-card.critical {
    background: #fdf2f2;
    border-left-color: #e74c3c;
}
.alert-card.warning {
    background: #fef9e7;
    border-left-color: #f39c12;
}
.alert-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}
.alert-content h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.alert-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.alert-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.alert-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: #3498db;
    color: #ffffff;
}
.alert-btn:hover {
    background: #2980b9;
}
.alert-btn.secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
}
.alert-btn.secondary:hover {
    background: #ecf0f1;
}

/* Section tableau stock */
.stock-table-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.table-actions {
    display: flex;
    gap: 12px;
}
.table-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
}
.table-action-btn:hover {
    background: #ecf0f1;
}

/* Indicateurs de stock */
.stock-low {
    color: #e74c3c;
    font-weight: 700;
}
.stock-ok {
    color: #27ae60;
    font-weight: 600;
}
.status-badge.critical {
    background: #fadbd8;
    color: #e74c3c;
}
.status-badge.warning {
    background: #fef9e7;
    color: #f39c12;
}

/* Graphiques de stock */
.stock-charts {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.chart-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}
.chart-card h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.chart-placeholder {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 200px;
    gap: 20px;
}
.chart-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s;
}
.chart-bar:hover {
    transform: scale(1.05);
}
.chart-bar span {
    position: absolute;
    bottom: -25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    white-space: nowrap;
}

/* Responsive stock */
@media (max-width: 768px) {
    .stock-container {
        padding: 15px;
    }
    .filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .alerts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .alert-card {
        flex-direction: column;
        gap: 10px;
    }
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .chart-placeholder {
        height: 150px;
        gap: 10px;
    }
    .chart-bar {
        min-width: 40px;
    }
    .chart-bar span {
        font-size: 0.7rem;
        bottom: -20px;
    }
} 

/* Styles pour la page Rendez-vous */
.rdv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filtres RDV */
.rdv-filters {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}

/* RDV en cours */
.rdv-current {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.current-count {
    background: #3498db;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Prochains RDV */
.rdv-upcoming {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.upcoming-count {
    background: #27ae60;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Grille des RDV */
.rdv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.rdv-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid;
    transition: all 0.2s;
}
.rdv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.rdv-card.current {
    border-left-color: #3498db;
    background: #ebf3fd;
}
.rdv-card.upcoming {
    border-left-color: #27ae60;
    background: #e8f5e8;
}

.rdv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.rdv-time {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}
.rdv-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}
.rdv-status.current {
    background: #3498db;
    color: #ffffff;
}
.rdv-status.confirmed {
    background: #27ae60;
    color: #ffffff;
}
.rdv-status.completed {
    background: #95a5a6;
    color: #ffffff;
}

.rdv-content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.rdv-vehicle, .rdv-service, .rdv-location {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 4px 0;
}
.rdv-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.rdv-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.rdv-btn.primary {
    background: #3498db;
    color: #ffffff;
}
.rdv-btn.primary:hover {
    background: #2980b9;
}
.rdv-btn.secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
}
.rdv-btn.secondary:hover {
    background: #ecf0f1;
}

/* Section tableau RDV */
.rdv-table-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}

/* Calendrier RDV */
.rdv-calendar {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}
.calendar-btn {
    background: #f8f9fa;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}
.calendar-btn:hover {
    background: #ecf0f1;
}
.current-month {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    transition: all 0.2s;
}
.calendar-day:hover {
    background: #f8f9fa;
}
.calendar-day.has-rdv {
    background: #ebf3fd;
    border-color: #3498db;
}
.day-number {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}
.rdv-indicator {
    position: absolute;
    bottom: 4px;
    font-size: 0.7rem;
    color: #3498db;
    font-weight: 600;
}

/* Statuts RDV */
.status-badge.completed {
    background: #d5dbdb;
    color: #7f8c8d;
}

/* Responsive RDV */
@media (max-width: 768px) {
    .rdv-container {
        padding: 15px;
    }
    .rdv-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .rdv-card {
        padding: 15px;
    }
    .rdv-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .rdv-actions {
        justify-content: center;
    }
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .calendar-day {
        aspect-ratio: 1;
        min-height: 60px;
    }
    .day-number {
        font-size: 0.9rem;
    }
    .rdv-indicator {
        font-size: 0.6rem;
    }
} 

/* Styles pour les modales */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(44, 62, 80, 0.25);
    backdrop-filter: blur(3px);
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background: #fff;
    margin: 60px auto;
    border-radius: 18px;
    padding: 40px 30px 30px 30px;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(52,152,219,0.18), 0 1.5px 8px rgba(44,62,80,0.10);
    position: relative;
    animation: modalSlideIn 0.35s cubic-bezier(.4,1.6,.6,1);
}
@keyframes modalSlideIn {
    from { transform: translateY(-40px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    color: #b2bec3;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 2;
}
.close-modal:hover {
    color: #3498db;
    transform: rotate(90deg) scale(1.15);
}
.modal-content h2, .modal-content h3 {
    margin-top: 0;
    color: #3498db;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}
.modal-content form label {
    display: block;
    margin-bottom: 14px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.01rem;
    letter-spacing: 0.1px;
}
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #e3eaf3;
  margin-top: 7px;
  margin-bottom: 2px;
  font-size: 1.05rem;
  background: #f8f9fa;
  color: #2c3e50;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1.5px 8px rgba(52,152,219,0.06);
}
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="date"]:focus,
.modal-content select:focus {
  border: 1.5px solid #3498db;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.10);
}
.modal-content select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%233498db" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  padding-right: 38px;
}
.modal-content input[type="number"]::-webkit-inner-spin-button,
.modal-content input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.modal-content input[type="number"] {
  -moz-appearance: textfield;
}

/* Placeholder stylé */
.modal-content input::placeholder {
  color: #b2bec3;
  opacity: 1;
  font-size: 0.98rem;
}

/* Bouton principal dans la modale */
.btn-create, .modal-content button[type="submit"] {
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  box-shadow: 0 2px 10px rgba(52,152,219,0.10);
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}
.btn-create:hover, .modal-content button[type="submit"]:hover {
  background: #217dbb;
  transform: translateY(-2px) scale(1.04);
}

.compta-actions, .boutique-type-choice {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.btn-pdf, .btn-mail, .btn-link, .btn-contrat, .btn-create {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    text-decoration: none;
    display: inline-block;
}
.btn-pdf:hover, .btn-mail:hover, .btn-link:hover, .btn-contrat:hover, .btn-create:hover {
    background: #217dbb;
    transform: translateY(-2px) scale(1.04);
}
.btn-create-contrat {
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  box-shadow: 0 2px 10px rgba(52,152,219,0.10);
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}
.btn-create-contrat:hover {
  background: #217dbb;
  transform: translateY(-2px) scale(1.04);
}
#franchise-options label {
    font-weight: 400;
    color: #636e72;
    margin-left: 0;
}
@media (max-width: 600px) {
    .modal-content {
        max-width: 98vw;
        padding: 18px 6vw 18px 6vw;
    }
    .modal-content h2 {
        font-size: 1.2rem;
    }
}

/* Pied de page moderne pour l'accueil */
.footer-main {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 48px 0 0 0;
    margin-top: 60px;
    font-family: 'Montserrat', Arial, sans-serif;
    box-shadow: 0 -2px 24px rgba(52,152,219,0.08);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
}
.footer-logo {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.footer-logo b {
    color: #ecf0f1;
}
.footer-socials {
    display: flex;
    gap: 18px;
    margin-bottom: 6px;
}
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.5rem;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}
.footer-social:hover {
    background: #fff;
    color: #3498db;
    transform: translateY(-3px) scale(1.08);
}
.footer-contact {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 2px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.13);
    margin-top: 18px;
    padding: 16px 0 10px 0;
    text-align: center;
    font-size: 0.98rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-links a {
    color: #ecf0f1;
    text-decoration: underline;
    margin: 0 4px;
    font-size: 0.97rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
@media (max-width: 600px) {
    .footer-content {
        padding: 0 10px 18px 10px;
    }
    .footer-logo {
        font-size: 1.2rem;
    }
    .footer-socials {
        gap: 10px;
    }
    .footer-social {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .footer-contact {
        font-size: 0.95rem;
    }
    .footer-bottom {
        font-size: 0.93rem;
    }
}

/* ===== PAGE PARAMÈTRES CRM ===== */
.parametres-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 40px 20px;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 30px;
}
.settings-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(52,152,219,0.08);
    padding: 32px 28px 28px 28px;
    border: 1px solid #e3eaf3;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.settings-card h2 {
    font-size: 1.25rem;
    color: #3498db;
    margin-bottom: 12px;
    font-weight: 700;
}
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.settings-form label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.98rem;
    margin-bottom: 2px;
}
.settings-form input[type="text"] {
    padding: 12px 16px;
    border: 1px solid #e3eaf3;
    border-radius: 7px;
    font-size: 1rem;
    background: #f8f9fa;
    color: #2c3e50;
    transition: border 0.2s;
}
.settings-form input[type="text"]:focus {
    border-color: #3498db;
    background: #fff;
    outline: none;
}
.settings-btn.primary {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
}
.settings-btn.primary:hover {
    background: #2176bd;
    box-shadow: 0 4px 16px rgba(52,152,219,0.13);
}
@media (max-width: 700px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .settings-card {
        padding: 22px 10px 18px 10px;
    }
}

.result-model, .result-stock, .result-rdv {
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(52,152,219,0.07);
  margin: 18px 0 0 0;
  padding: 18px 20px 12px 20px;
  text-align: left;
  font-size: 1rem;
  color: #2c3e50;
}
.result-model h4, .result-stock h4 {
  color: #3498db;
  margin: 0 0 6px 0;
  font-size: 1.08rem;
  font-weight: 700;
}
.result-model p, .result-stock p {
  margin: 0;
  color: #636e72;
  font-size: 0.98rem;
}
.result-rdv {
  text-align: center;
  background: none;
  box-shadow: none;
  padding: 10px 0 0 0;
}
.result-rdv .cta {
  margin-top: 8px;
  font-size: 1.08rem;
  padding: 12px 28px;
}
@media (max-width: 600px) {
  .result-model, .result-stock, .result-rdv {
    padding: 10px 4vw 8px 4vw;
    font-size: 0.97rem;
  }
}

/* === CONTAINERS PRINCIPAUX CRM === */
.clients-container, .facturation-container, .statistiques-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px 40px 20px;
}

/* === GRILLES ET CARTES ANALYTIQUES === */
.analytics-grid, .kpi-grid, .trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 18px;
}
.analytics-card, .kpi-card, .trend-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(52,152,219,0.08);
  padding: 28px 22px 22px 22px;
  border: 1px solid #e3eaf3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.analytics-header, .trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.analytics-card h3, .kpi-card h4, .trend-card h4 {
  color: #3498db;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.analytics-period, .trend-indicator {
  font-size: 0.95rem;
  font-weight: 600;
  color: #636e72;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 3px 10px;
}
.trend-indicator.positive { color: #27ae60; background: #eafaf1; }
.trend-indicator.negative { color: #e74c3c; background: #fdeeee; }
.trend-indicator.neutral { color: #f39c12; background: #fef9e7; }
.analytics-content, .kpi-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.analytics-item, .kpi-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.item-info, .item-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.item-name {
  font-weight: 600;
  color: #2c3e50;
}
.item-category {
  font-size: 0.95rem;
  color: #7f8c8d;
}
.item-sales, .item-revenue {
  font-size: 0.97rem;
  color: #636e72;
}
.kpi-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #3498db;
}
.kpi-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
}
.kpi-trend.positive { color: #27ae60; }
.kpi-trend.negative { color: #e74c3c; }
.kpi-trend.neutral { color: #f39c12; }

.trend-card.positive { border-left: 5px solid #27ae60; }
.trend-card.negative { border-left: 5px solid #e74c3c; }
.trend-card.neutral { border-left: 5px solid #f39c12; }
.trend-card p {
  color: #636e72;
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .analytics-grid, .kpi-grid, .trends-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .clients-container, .facturation-container, .statistiques-container {
    padding: 12px 2vw 24px 2vw;
  }
}

/* === CARTES FACTURES ET CLIENTS RÉCENTES === */
.factures-grid, .clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 18px;
}
.facture-card, .client-card {
  background: linear-gradient(135deg, #f8f9fa 80%, #eaf6fb 100%);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(52,152,219,0.10), 0 1.5px 8px rgba(44,62,80,0.07);
  border: 1.5px solid #e3eaf3;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: cardFadeIn 0.5s;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.facture-card:hover, .client-card:hover {
  box-shadow: 0 8px 36px rgba(52,152,219,0.16), 0 2px 12px rgba(44,62,80,0.10);
  transform: translateY(-4px) scale(1.02);
}

/* Header marqué */
.facture-header, .client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.facture-number, .client-avatar {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3498db;
  background: #eaf6fb;
  border-radius: 8px;
  padding: 6px 16px;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(52,152,219,0.07);
}
.client-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  background: #eaf6fb;
  color: #3498db;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(52,152,219,0.07);
}

/* Badges de statut modernes */
.facture-status, .client-status {
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 14px;
  background: #f8f9fa;
  color: #636e72;
  box-shadow: 0 1px 4px rgba(52,152,219,0.05);
  letter-spacing: 0.5px;
  border: 1.2px solid #e3eaf3;
}
.facture-status.paid, .client-status.active {
  background: #eafaf1;
  color: #27ae60;
  border-color: #b8f5d0;
}
.facture-status.pending {
  background: #fef9e7;
  color: #f39c12;
  border-color: #ffeaa7;
}
.facture-status.overdue {
  background: #fdeeee;
  color: #e74c3c;
  border-color: #f5b7b1;
}
.client-status.vip {
  background: #f5e6ff;
  color: #9b59b6;
  border-color: #d2b4ff;
}

/* Contenu et stats */
.facture-content, .client-content {
  margin-bottom: 10px;
}
.facture-content h4, .client-content h4 {
  color: #2c3e50;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.facture-amount, .client-stats {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
}
.amount-value, .stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #3498db;
}

/* Actions */
.facture-actions, .client-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.facture-btn, .client-btn {
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(52,152,219,0.08);
  transition: background 0.2s, transform 0.2s;
}
.facture-btn.secondary, .client-btn.secondary {
  background: #f8f9fa;
  color: #3498db;
  border: 1.2px solid #e3eaf3;
}
.facture-btn.warning {
  background: #e74c3c;
  color: #fff;
}
.facture-btn:hover, .client-btn:hover {
  background: #217dbb;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.facture-btn.secondary:hover, .client-btn.secondary:hover {
  background: #eaf6fb;
  color: #217dbb;
}

@media (max-width: 700px) {
  .factures-grid, .clients-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .facture-card, .client-card {
    padding: 16px 6vw 14px 6vw;
  }
}
