/* 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: 840px;
    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-cta {
    display: inline-block;
    padding: 15px 25px;
    margin: 4px 0;
    background: #67333C;
    /* !important : le thème cible les liens de contenu via
       .entry-content a:not(.btn-cta)... (spécificité élevée, sans !important)
       et forcerait sinon le texte en bordeaux + souligné, illisible sur le fond. */
    color: #fff !important;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: background 0.2s;
}

.notadesk-assistant-cta:hover {
    background: #542a31;
    color: #fff !important;
    text-decoration: none !important;
}

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

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

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

/* Le widget booking est injecté hors de .notadesk-assistant-body : lui redonner le même padding. */
#notadesk-assistant-booking {
    padding: 1.5rem;
}

.notadesk-booking-description {
    text-align: left;
    line-height: 1.6;
    color: #4a4a4a;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.notadesk-booking-description.is-plain {
    white-space: pre-wrap;
}

.notadesk-booking-description h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    margin: 1.25rem 0 0.5rem;
}

.notadesk-booking-description h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin: 1rem 0 0.4rem;
}

.notadesk-booking-description p {
    margin: 0 0 0.75rem;
}

.notadesk-booking-description ul,
.notadesk-booking-description ol {
    padding-left: 1.5rem;
    margin: 0 0 0.75rem;
}

.notadesk-booking-description ul {
    list-style: disc;
}

.notadesk-booking-description ol {
    list-style: decimal;
}

.notadesk-booking-description li {
    margin: 0.2rem 0;
}

.notadesk-booking-description strong {
    font-weight: 700;
}

.notadesk-booking-description em {
    font-style: italic;
}

.notadesk-booking-description > :first-child {
    margin-top: 0;
}

.notadesk-booking-description > :last-child {
    margin-bottom: 0;
}

.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;
    }
}

.notadesk-contact-intro:not(:empty) {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid #4f46e5;
    background: #f5f5ff;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-line;
}

/* ===== Tarifs ===== */

.notadesk-tarifs { --nd-bordeaux: #67333C; --nd-rose: #D7B2A8; max-width: 640px; margin-left: auto; margin-right: auto; }
.notadesk-tarifs-groupe { margin-bottom: 2rem; }
.notadesk-tarifs-titre {
    color: var(--nd-bordeaux);
    border-bottom: 2px solid var(--nd-rose);
    padding-bottom: .3rem;
    margin-bottom: .75rem;
}
.notadesk-tarifs-liste { list-style: none; margin: 0; padding: 0; }
.notadesk-tarifs-ligne {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid #eee;
}
.notadesk-tarifs-nom { display: flex; flex-direction: column; }
.notadesk-tarifs-note { color: #888; font-size: .85em; }
.notadesk-tarifs-prix { color: var(--nd-bordeaux); font-weight: 600; white-space: nowrap; }

/* ===== Confirmation de rendez-vous ===== */

.notadesk-confirmation {
    --nd-bordeaux: #67333C;
    --nd-rose: #D7B2A8;
    max-width: 32rem;
    margin: 1rem auto;
    padding: 1.5rem;
    border: 1px solid #e8e0dc;
    border-radius: 0.5rem;
    background: #fff;
    text-align: center;
}

.notadesk-confirmation__loading {
    color: #888;
    font-size: 0.95rem;
}

.notadesk-confirmation__objet {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nd-bordeaux);
    margin: 0 0 1.25rem;
}

.notadesk-confirmation__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.notadesk-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.notadesk-btn--primary {
    background: var(--nd-bordeaux);
    color: #fff;
    border: none;
}

.notadesk-btn--primary:hover {
    background: #542a31;
}

.notadesk-btn--secondary {
    background: #fff;
    color: var(--nd-bordeaux);
    border: 1px solid #e8e0dc;
}

.notadesk-btn--secondary:hover {
    background: #faf7f6;
    border-color: var(--nd-rose);
}

.notadesk-confirmation__message:not(:empty) {
    margin: 1rem 0 0;
    font-size: 1rem;
    color: #333;
}

@media (max-width: 640px) {
    .notadesk-confirmation__actions { flex-direction: column; }
    .notadesk-btn { width: 100%; }
}
.notadesk-tarifs-avis { color: #888; font-size: .9em; margin-bottom: 1.25rem; }
