@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;400;500;600&display=swap');

/* ── Wrap page ── */
.rdv-wrap {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #1E1B16;
}

.rdv-mode-page {
    background: #F3EADC;
    padding: 56px 40px;
    max-width: 680px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .rdv-mode-page { padding: 32px 20px; }
}

/* ── Header ── */
.rdv-form-header { margin-bottom: 36px; }

.rdv-titre {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 10px;
    color: #1E1B16;
}

.rdv-sous-titre {
    font-size: 15px;
    color: #6E4A2E;
    line-height: 1.6;
    margin: 0;
}

/* ── Champs ── */
.rdv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.rdv-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.rdv-field label {
    font-size: 13px;
    color: #6E4A2E;
    font-weight: 400;
}

.rdv-required { color: #C99A4A; }

.rdv-input,
.rdv-select,
.rdv-textarea {
    border: 1px solid rgba(30,27,22,.2);
    background: #EDE4D4;
    padding: 12px 14px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    color: #1E1B16;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border-radius: 0;
    transition: border-color .2s;
    appearance: none;
}

.rdv-input:focus,
.rdv-select:focus,
.rdv-textarea:focus { border-color: #6E4A2E; }

.rdv-input::placeholder,
.rdv-textarea::placeholder { color: #A89880; }

.rdv-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E4A2E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.rdv-textarea { resize: vertical; }

/* ── Erreur ── */
.rdv-error {
    font-size: 13px;
    color: #C94A4A;
    padding: 8px 12px;
    background: rgba(201,74,74,.08);
    border-left: 3px solid #C94A4A;
    margin-bottom: 12px;
}

/* ── Bouton soumettre ── */
.rdv-btn-submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #1E1B16;
    color: #F3EADC;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background .2s, opacity .2s;
    margin-top: 8px;
}

.rdv-btn-submit:hover:not(:disabled) { background: #2E2A24; }
.rdv-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Note ── */
.rdv-note {
    font-size: 12px;
    color: #A89880;
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}

/* ── Confirmation ── */
.rdv-confirmation {
    text-align: center;
    padding: 48px 24px;
}

.rdv-confirmation-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1E1B16;
    color: #F3EADC;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.rdv-confirmation-titre {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1E1B16;
}

.rdv-confirmation-msg {
    font-size: 15px;
    color: #6E4A2E;
    line-height: 1.6;
    margin: 0 0 24px;
}

.rdv-btn-wa-boutique {
    display: inline-block;
    padding: 12px 28px;
    background: #25D366;
    color: #fff;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s;
}

.rdv-btn-wa-boutique:hover { background: #1ebe5d; }

/* ── Bouton déclencheur popup ── */
.rdv-btn-open {
    display: inline-block;
    padding: 15px 32px;
    background: #1E1B16;
    color: #F3EADC;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .2s;
    text-decoration: none;
}

.rdv-btn-open:hover { background: #2E2A24; }

/* ── Overlay popup ── */
.rdv-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,27,22,.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rdv-popup-overlay.active { display: flex; }

.rdv-popup-inner {
    background: #F3EADC;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    font-family: 'Bricolage Grotesque', sans-serif;
}

@media (max-width: 540px) {
    .rdv-popup-inner { padding: 28px 20px; }
}

.rdv-popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6E4A2E;
    line-height: 1;
    padding: 4px;
}

.rdv-popup-close:hover { color: #1E1B16; }
