/* ── Reparation33 — Frontend CSS — Style thème chez-audrey.fr ───────── */
.rep33-form-header { display: none; }
.rep33-wrap { max-width: 780px; margin: 0 auto; font-family: inherit; color: inherit; }

/* ── SECTION ───────────────────────────────────────────────────────── */
.rep33-section {
    margin-bottom: 28px;
    border-top: 3px solid #0057FF;
    border-radius: 0 10px 10px 10px;
    overflow: visible;
}

/* ── TITRE DE SECTION — badge arrondi à droite, comme le thème ─────── */
.rep33-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0057FF;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 24px 7px 14px;
    border-radius: 0 30px 30px 0;
    margin-bottom: 0;
    position: relative;
    line-height: 1;
}

.rep33-section-body {
    border: 1px solid #e8e8e8;
    border-top: none;
    padding: 22px 20px;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── GRILLE ────────────────────────────────────────────────────────── */
.rep33-row   { display: flex; gap: 18px; }
.rep33-group { flex: 1; margin-bottom: 16px; }

.rep33-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}
.req { color: #e74c3c; }

/* ── CHAMPS ────────────────────────────────────────────────────────── */
.rep33-wrap input[type="text"],
.rep33-wrap input[type="email"],
.rep33-wrap input[type="tel"],
.rep33-wrap select,
.rep33-wrap textarea {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1.5px solid #d8dde6;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
    margin: 0;
}

.rep33-wrap input[type="text"]::placeholder,
.rep33-wrap input[type="email"]::placeholder,
.rep33-wrap input[type="tel"]::placeholder,
.rep33-wrap textarea::placeholder { color: #b0b8c8; }

.rep33-wrap input[type="text"]:focus,
.rep33-wrap input[type="email"]:focus,
.rep33-wrap input[type="tel"]:focus,
.rep33-wrap select:focus,
.rep33-wrap textarea:focus {
    border-color: #0057FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(28,167,224,.12);
}

.rep33-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231ca7e0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.rep33-wrap textarea { resize: vertical; min-height: 100px; }

/* ── CHECKBOX ──────────────────────────────────────────────────────── */
.rep33-checkbox-group { display: flex; align-items: center; }
.rep33-checkbox-label {
    display: flex; align-items: flex-start;
    gap: 10px; cursor: pointer;
    font-weight: normal; font-size: 13px; line-height: 1.5;
}
.rep33-wrap input[type="checkbox"] {
    width: 17px; height: 17px; min-width: 17px;
    margin-top: 2px; flex-shrink: 0;
    padding: 0; border: 1.5px solid #d8dde6;
    border-radius: 4px; box-shadow: none;
    -webkit-appearance: checkbox; appearance: checkbox;
    accent-color: #0057FF;
}

/* ── BOÎTE INFO ────────────────────────────────────────────────────── */
.rep33-info-box {
    background: #f0f4ff;
    border-left: 4px solid #0057FF;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px; line-height: 1.7; color: #1a2a6c;
}

/* ── CONDITIONS ────────────────────────────────────────────────────── */
.rep33-cg {
    background: #fafbfc;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 13px;
}

/* ── BOUTON SUBMIT ─────────────────────────────────────────────────── */
#rep33-submit {
    width: 100%;
    background: #0057FF;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    transition: background .2s, transform .1s;
    text-transform: uppercase;
}
#rep33-submit:hover    { background: #0041cc; transform: translateY(-1px); }
#rep33-submit:active   { transform: translateY(0); }
#rep33-submit:disabled { background: #99aadd; cursor: not-allowed; transform: none; }

.rep33-note { text-align: center; font-size: 12px; color: #aaa; margin-top: 10px; }

/* ── ERREUR ────────────────────────────────────────────────────────── */
.rep33-error {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 0 8px 8px 0;
    color: #c00;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ── SUCCÈS ────────────────────────────────────────────────────────── */
.rep33-success-box {
    text-align: center;
    background: #f0f4ff;
    border: 2px solid #0057FF;
    border-radius: 12px;
    padding: 36px 28px;
}
.rep33-success-icon { font-size: 58px; margin-bottom: 14px; display: block; }
.rep33-success-box h3 { color: #0057FF; font-size: 22px; margin: 0 0 10px; }

/* Numéro de commande — badge style thème */
.rep33-order-num {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #0057FF;
    display: inline-block;
    padding: 8px 28px 8px 16px;
    border-radius: 0 30px 30px 0;
    margin: 14px 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rep33-addr-confirm {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.9;
    display: inline-block;
    text-align: left;
}

/* ── CODE POSTAL ────────────────────────────────────────────────────── */
.rep33-group--cp { max-width: 160px; flex: 0 0 160px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .rep33-row { flex-direction: column; gap: 0; }
    .rep33-section-title { font-size: 10px; padding: 6px 18px 6px 12px; }
}

/* ── BOUTON FACTURE PRO ────────────────────────────────────────────── */
#rep33-facture-submit,
.rep33-btn-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #0057FF 0%, #003FCC 100%);
    color: #fff;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(0,87,255,.3);
    margin-bottom: 12px;
    gap: 2px;
}
#rep33-facture-submit:hover,
.rep33-btn-submit:hover {
    background: linear-gradient(135deg, #0041cc 0%, #002fa3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,87,255,.4);
}
#rep33-facture-submit:active,
.rep33-btn-submit:active { transform: translateY(0); }
#rep33-facture-submit:disabled,
.rep33-btn-submit:disabled { background: #99aadd; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-icon { font-size: 22px; margin-bottom: 2px; }
.btn-label { font-size: 16px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.btn-sub { font-size: 11px; opacity: .8; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ── ZONE UPLOAD PHOTOS ─────────────────────────────────────────────── */
.rep33-upload-zone {
    border: 2px dashed #0057FF;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9ff;
    transition: border-color .2s, background .2s;
}
.rep33-upload-zone:hover { background: #f0f4ff; }
.rep33-upload-inner {
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
}
.rep33-upload-icon { font-size: 36px; margin-bottom: 8px; }
.rep33-upload-text { font-size: 14px; font-weight: 600; color: #0057FF; margin-bottom: 4px; }
.rep33-upload-sub { font-size: 11px; color: #aaa; }

.rep33-photos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 14px 14px;
}
.rep33-photos-preview img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e0e6ff;
}
.rep33-photos-preview .rep33-photo-del {
    position: absolute;
    top: -6px; right: -6px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.rep33-photo-wrap { position: relative; display: inline-block; }
