/* ============================================================
   REEL XV — Frontend Inscription
   ============================================================ */

#reelxv-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
}

/* --- Carte login --- */
.reelxv-login-wrap .reelxv-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.reelxv-logo h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #1e3a5f;
}
.reelxv-logo p {
    margin: 0 0 28px;
    color: #555;
}

/* --- Header formulaire --- */
.reelxv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #1e3a5f;
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.reelxv-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1e3a5f;
}
.reelxv-user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

/* --- Sections --- */
.reelxv-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 20px;
}
.reelxv-section h3 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    border-bottom: 1px solid #e8ecf0;
    padding-bottom: 10px;
}

/* --- Champs --- */
.reelxv-field {
    margin-bottom: 14px;
}
.reelxv-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
}
.reelxv-field input[type=text],
.reelxv-field input[type=email],
.reelxv-field input[type=tel],
.reelxv-field input[type=date],
.reelxv-field select,
.reelxv-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fafafa;
    transition: border-color .15s;
    color: #1a1a1a;
    line-height: normal;
}
/* Annule les surcharges du thème sur les champs date */
.reelxv-field input[type=date] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 38px;
}
.reelxv-field input:focus,
.reelxv-field select:focus {
    border-color: #1e3a5f;
    background: #fff;
    outline: none;
}
.reelxv-field input[readonly] {
    background: #f0f0f0;
    color: #777;
}
.reelxv-field small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 3px;
}

/* --- Grilles --- */
.reelxv-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.reelxv-field-half       { flex: 1 1 calc(50% - 7px); min-width: 180px; }
.reelxv-field-third      { flex: 1 1 calc(33% - 10px); min-width: 120px; }
.reelxv-field-two-thirds { flex: 2 1 calc(66% - 7px); min-width: 200px; }

/* --- Radio/Checkbox --- */
.reelxv-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reelxv-radio,
.reelxv-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}
.reelxv-radio input,
.reelxv-checkbox input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Fieldset --- */
.reelxv-fieldset {
    border: 1px solid #d5e0ec;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 0 0 16px;
}
.reelxv-fieldset legend {
    font-weight: 700;
    font-size: 13px;
    color: #1e3a5f;
    padding: 0 6px;
}

.reelxv-subsection {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

/* --- Hints --- */
.reelxv-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* --- Boutons --- */
.reelxv-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s;
}
.reelxv-btn-primary {
    background: #1e3a5f;
    color: #fff;
}
.reelxv-btn-primary:hover {
    background: #162d4c;
}
.reelxv-btn-large {
    padding: 13px 32px;
    font-size: 16px;
}
.reelxv-btn-link {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.reelxv-submit-bar {
    text-align: center;
    margin-top: 10px;
}

/* --- Messages --- */
.reelxv-message {
    padding: 13px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.reelxv-success {
    background: #eafaf1;
    border: 1px solid #27ae60;
    color: #1e8449;
}
.reelxv-error {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

/* --- Radio Oui / Non horizontal --- */
.reelxv-radio-oui-non {
    flex-direction: row;
    gap: 24px;
}

/* --- Hint inline dans label --- */
.reelxv-label-hint {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

/* --- Champs obligatoires invalides --- */
.reelxv-field.reelxv-invalid > label:first-child {
    color: #c0392b;
}
.reelxv-field.reelxv-invalid input[type=text],
.reelxv-field.reelxv-invalid input[type=email],
.reelxv-field.reelxv-invalid input[type=tel],
.reelxv-field.reelxv-invalid select {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}
.reelxv-field.reelxv-invalid .reelxv-radio-group {
    border-left: 3px solid #e74c3c;
    padding-left: 8px;
}
.reelxv-field.reelxv-invalid .reelxv-checkbox {
    color: #c0392b;
}

/* --- Panneau de confirmation post-envoi --- */
.reelxv-confirm-success {
    text-align: center;
    background: #eafaf1;
    border-color: #27ae60;
}
.reelxv-confirm-success h3 {
    color: #1e8449;
    border-bottom-color: #c3e6cb;
    font-size: 20px;
}
.reelxv-confirm-success p {
    color: #1e8449;
    margin: 0;
    font-size: 15px;
}
.reelxv-confirm-emoji {
    font-size: 52px;
    margin: 0 0 14px;
    line-height: 1;
}

/* Section "Dernière étape" mise en avant */
#reelxv-confirmation .reelxv-section:last-of-type {
    border: 2px solid #1e3a5f;
}
#reelxv-confirmation .reelxv-section:last-of-type h3 {
    font-size: 17px;
}

.reelxv-confirm-option {
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
}
.reelxv-confirm-option h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1e3a5f;
}
.reelxv-confirm-option p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

/* Option paiement en ligne — mise en avant forte */
#reelxv-confirm-online {
    background: #eef4ff;
    border: 2px solid #1e3a5f;
}
#reelxv-confirm-online h4 {
    font-size: 17px;
}

/* Option présentiel */
#reelxv-confirm-presentiel {
    background: #f8fafc;
    border: 1px solid #d5e0ec;
}

.reelxv-confirm-cta {
    text-align: center;
    margin-top: 20px !important;
}
.reelxv-confirm-footer {
    margin-top: 24px;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 580px) {
    .reelxv-login-wrap .reelxv-card { padding: 24px 18px; }
    .reelxv-section { padding: 18px 16px; }
    .reelxv-field-half,
    .reelxv-field-third,
    .reelxv-field-two-thirds { flex: 1 1 100%; }
}
