/* NotaDesk WP — Public Styles
   Palette: rose #D8B2A7, taupe #75706D, gris chaud #595F5F
   Polices: Nunito (titres), Nunito Sans (corps) — héritées du thème */

/* ===== FAQ Accordion ===== */

.notadesk-faq {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
}

.notadesk-faq-category {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #D8B2A7;
}

.notadesk-faq-category:first-child {
    margin-top: 0;
}

.notadesk-faq-item {
    border: 1px solid #e8e0dc;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.notadesk-faq-item[open] {
    box-shadow: 0 2px 8px rgba(216, 178, 167, 0.15);
    border-color: #D8B2A7;
}

.notadesk-faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notadesk-faq-question::-webkit-details-marker {
    display: none;
}

.notadesk-faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: #D8B2A7;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.notadesk-faq-item[open] .notadesk-faq-question::after {
    content: '−';
}

.notadesk-faq-question:hover {
    background: #faf7f6;
}

.notadesk-faq-answer {
    padding: 0 1.25rem 1rem;
    color: #595F5F;
    line-height: 1.7;
}

.notadesk-faq-answer a {
    color: #75706D;
    text-decoration: underline;
    text-decoration-color: #D8B2A7;
    text-underline-offset: 3px;
}

.notadesk-faq-answer a:hover {
    color: #000;
}

.notadesk-faq-empty {
    text-align: center;
    padding: 2rem;
    color: #B9BDBD;
}

/* ===== Assistant Wizard ===== */

.notadesk-assistant {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e0dc;
    border-radius: 0.375rem;
    overflow: hidden;
    font-family: inherit;
}

.notadesk-assistant-header {
    background: #75706D;
    color: #fff;
    padding: 1.25rem 1.5rem;
}

.notadesk-assistant-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.01em;
}

.notadesk-assistant-body {
    padding: 1.5rem;
}

.notadesk-assistant-step {
    animation: notadesk-fade-in 0.3s ease;
}

@keyframes notadesk-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.notadesk-assistant-question {
    font-size: 1.05rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 1rem;
}

.notadesk-assistant-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notadesk-assistant-option {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: left;
    background: #faf7f6;
    border: 1px solid #e8e0dc;
    border-radius: 0.375rem;
    color: #595F5F;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.notadesk-assistant-option:hover {
    background: #f3ebe7;
    border-color: #D8B2A7;
    color: #000;
}

.notadesk-assistant-back {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid #e8e0dc;
    border-radius: 0.375rem;
    color: #75706D;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
}

.notadesk-assistant-back:hover {
    background: #faf7f6;
    border-color: #D8B2A7;
}

.notadesk-assistant-message {
    color: #595F5F;
    line-height: 1.7;
    font-size: 0.95rem;
}

.notadesk-assistant-link {
    color: #75706D;
    text-decoration: underline;
    text-decoration-color: #D8B2A7;
    text-underline-offset: 3px;
}

.notadesk-assistant-link:hover {
    color: #000;
}

.notadesk-assistant-empty {
    text-align: center;
    padding: 2rem;
    color: #B9BDBD;
}

/* ===== Booking Widget ===== */

.notadesk-booking {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

.notadesk-booking-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.25rem;
}

.notadesk-booking-subtitle {
    color: #75706D;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.notadesk-booking-slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notadesk-booking-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8e0dc;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.notadesk-booking-slot:hover {
    border-color: #D8B2A7;
    background: #faf7f6;
}

.notadesk-booking-slot.selected {
    border-color: #D8B2A7;
    background: #f3ebe7;
    box-shadow: 0 0 0 1px #D8B2A7;
}

.notadesk-booking-slot-date {
    font-weight: 600;
    color: #000;
    min-width: 140px;
}

.notadesk-booking-slot-time {
    color: #595F5F;
}

.notadesk-booking-loading {
    text-align: center;
    padding: 2rem;
    color: #B9BDBD;
}

.notadesk-booking-more {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: none;
    border: 1px dashed #D8B2A7;
    border-radius: 0.375rem;
    color: #75706D;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.notadesk-booking-more:hover {
    background: #faf7f6;
    border-color: #c09a8d;
}

/* Booking form */

.notadesk-booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notadesk-booking-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #595F5F;
    margin-bottom: 0.25rem;
}

.notadesk-booking-field input,
.notadesk-booking-field textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e8e0dc;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #595F5F;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.notadesk-booking-field input:focus,
.notadesk-booking-field textarea:focus {
    outline: none;
    border-color: #D8B2A7;
    box-shadow: 0 0 0 3px rgba(216, 178, 167, 0.15);
}

.notadesk-booking-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.notadesk-booking-btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: #75706D;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.notadesk-booking-btn-primary:hover {
    background: #5e5a57;
}

.notadesk-booking-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notadesk-booking-btn-secondary {
    padding: 0.75rem 1.25rem;
    background: #fff;
    color: #75706D;
    border: 1px solid #e8e0dc;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.notadesk-booking-btn-secondary:hover {
    background: #faf7f6;
    border-color: #D8B2A7;
}

/* Confirmation */

.notadesk-booking-success {
    text-align: center;
    padding: 2rem;
}

.notadesk-booking-check {
    width: 48px;
    height: 48px;
    color: #D8B2A7;
    margin: 0 auto 1rem;
}

.notadesk-booking-note {
    color: #B9BDBD;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Error */

.notadesk-booking-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 1rem;
    color: #dc2626;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
    .notadesk-faq,
    .notadesk-assistant,
    .notadesk-booking {
        margin: 0 1rem;
    }

    .notadesk-booking-slot {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .notadesk-booking-actions {
        flex-direction: column;
    }
}
