* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    margin: 0;
    margin-top: 90px;
    min-height: 100vh;
}

/* Actions rapides mobile */
.mobile-quick-actions {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.quick-action-btn:hover, .quick-action-btn.active {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {

    .mobile-quick-actions {
        display: flex;
    }

    /* Masquer l'ancien toggle-container sur mobile */
    .toggle-container {
        display: none;
    }

    .flyer {
        margin: 1rem 10px;
        border-radius: 15px;
    }

    .content {
        padding: 20px;
    }

    /* Ajustements pour les autres pages */
    .login-container {
        padding: 10px;
        min-height: calc(100vh - 80px);
    }

    .container {
        margin: 10px auto;
        border-radius: 15px;
    }

    .admin-container {
        margin: 10px;
        border-radius: 15px;
    }

    /* Réduction des tailles de texte pour mobile */
    .flyer h1 {
        font-size: 1.8em !important;
    }

    .header h1 {
        font-size: 2em !important;
    }

    .header p {
        font-size: 1em !important;
    }

    .section-title {
        font-size: 1.4em !important;
    }

    .price-label {
        font-size: 0.95em !important;
    }

    .price-value {
        font-size: 1em !important;
    }

    .highlight-box h3 {
        font-size: 1.1em !important;
    }

    .highlight-box p {
        font-size: 0.95em !important;
    }

    .rules h3 {
        font-size: 1.1em !important;
    }

    .rules li {
        font-size: 0.95em !important;
    }

    .contact-box h3 {
        font-size: 1.2em !important;
    }

    .contact-box p {
        font-size: 1em !important;
    }

    .form-group label {
        font-size: 0.95em !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9em !important;
        padding: 10px !important;
    }

    .submit-btn {
        font-size: 1em !important;
        padding: 12px 25px !important;
    }

    .estimation-result h3 {
        font-size: 1.2em !important;
    }

    .estimation-total {
        font-size: 1.1em !important;
    }

    h3 {
        font-size: 1.1em !important;
    }

    p {
        font-size: 0.9em !important;
        line-height: 1.4 !important;
    }
}

.flyer {
    background: white;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}


.flyer h1 {
    color: #667eea;
    font-size: 2.5em;
    padding: 1rem;
}

.content {
    padding: 40px;
}

/* Toggle Sections */
.section-toggle {
    display: block;
}

.section-toggle.hidden {
    display: none;
}

.toggle-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 15px;
}

.toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* Admin Panel */
.admin-panel {
    background: #fff5f5;
    border: 2px solid #e53e3e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
}

.admin-panel.visible {
    display: block;
}

.admin-panel h3 {
    color: #e53e3e;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.admin-toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: transparent;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.admin-toggle-btn:hover {
    background: rgba(229, 62, 62, 0.1);
    transform: rotate(90deg);
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.2em;
    opacity: 0.95;
}



.section {
    margin-bottom: 35px;
}

.section-title {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.price-list {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.price-item {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    font-size: 1.1em;
    color: #333;
}

.price-value {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
    white-space: nowrap;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid #667eea;
}

.highlight-box h3 {
    color: #764ba2;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.highlight-box p {
    color: #555;
    line-height: 1.6;
    font-size: 1.05em;
}

.rules {
    background: #fff5f5;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #e53e3e;
}

.rules h3 {
    color: #e53e3e;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.rules ul {
    list-style: none;
    padding-left: 0;
}

.rules li {
    padding: 8px 0;
    color: #555;
    font-size: 1.05em;
}

.rules li:before {
    content: "✗ ";
    color: #e53e3e;
    font-weight: bold;
    margin-right: 10px;
}

.contact-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.contact-box h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.contact-box p {
    font-size: 1.1em;
    line-height: 1.8;
}

.badge {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
}

.quote-form {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #667eea;
}

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

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

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #f0f0f0;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.estimation-result {
    margin-top: 25px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #48bb78;
}

.estimation-result h3 {
    color: #48bb78;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.estimation-detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.estimation-total {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 3px solid #667eea;
}

.chat-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.chat-card h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.traitement-card {
    background: #fff7ed;
    border: 2px solid #ffa500;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.traitement-card h4 {
    color: #ff8800;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53e3e;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.remove-btn:hover {
    background: #c53030;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.info-text {
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
}

.error-message {
    color: #e53e3e;
    font-size: 0.9em;
    margin-top: 5px;
    padding: 8px;
    background: #fff5f5;
    border-radius: 5px;
}

.address-suggestions {
    position: relative;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
}

.address-suggestion-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.address-suggestion-item:hover {
    background: #f0f0f0;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.distance-info {
    margin-top: 10px;
    padding: 12px;
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
    border-radius: 5px;
}

.distance-info.far {
    background: #fff7e6;
    border-left-color: #fa8c16;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Button hover effects */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .flyer {
        margin: 1rem 10px;
        border-radius: 15px;
    }

    .content {
        padding: 20px;
    }

    .toggle-btn {
        font-size: 0.95em;
        padding: 12px 20px;
        margin: 5px;
    }
}

@media (max-width: 600px) {
    .toggle-container {
        padding: 15px;
    }

    .toggle-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        font-size: 0.9em !important;
    }

    /* Réductions supplémentaires pour les très petits écrans */
    .flyer h1 {
        font-size: 1.6em !important;
    }

    .header h1 {
        font-size: 1.8em !important;
    }

    .section-title {
        font-size: 1.3em !important;
    }

    .price-label {
        font-size: 0.9em !important;
    }

    .price-value {
        font-size: 0.95em !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.85em !important;
        padding: 8px !important;
    }

    .submit-btn {
        font-size: 0.95em !important;
    }

    p {
        font-size: 0.85em !important;
    }

    .info-text {
        font-size: 0.8em !important;
    }
}

.d-none {
    display: none !important;
}