/* ============================================================
 * Geek33 Repair Request — CSS front
 * Variables en haut du fichier pour faciliter le rebrandage.
 * ============================================================ */

:root {
    --g33-rr-primary: #22c55e;
    --g33-rr-primary-dark: #16a34a;
    --g33-rr-secondary: #0f172a;
    --g33-rr-bg: #f8fafc;
    --g33-rr-border: #e2e8f0;
    --g33-rr-error: #ef4444;
    --g33-rr-success: #16a34a;
    --g33-rr-radius: 8px;
    --g33-rr-shadow: 0 10px 40px rgba(15, 23, 42, 0.18);
}

/* ----- Bloc home --------------------------------------------- */

.g33-rr-home {
    margin: 32px auto;
    padding: 28px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
    border: 1px solid var(--g33-rr-border);
    border-radius: var(--g33-rr-radius);
    max-width: 1100px;
}

.g33-rr-home__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.g33-rr-home__content { flex: 1 1 320px; }

.g33-rr-home__title {
    font-size: 1.6rem;
    margin: 0 0 8px;
    color: var(--g33-rr-secondary);
}

.g33-rr-home__subtitle {
    font-size: 1rem;
    color: #475569;
    margin: 0 0 16px;
}

.g33-rr-home__cta {
    display: inline-block;
    background: var(--g33-rr-primary);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: var(--g33-rr-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.g33-rr-home__cta:hover { background: var(--g33-rr-primary-dark); }
.g33-rr-home__cta:active { transform: translateY(1px); }

.g33-rr-home__visual { flex: 0 0 auto; }

/* ----- Encart 0-résultat (injecté en JS) --------------------- */

.g33-rr-zero {
    margin: 24px auto;
    padding: 20px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: var(--g33-rr-radius);
}

.g33-rr-zero__title {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--g33-rr-secondary);
}

.g33-rr-zero__cta {
    background: var(--g33-rr-primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--g33-rr-radius);
    font-weight: 600;
    cursor: pointer;
}

.g33-rr-zero__cta:hover { background: var(--g33-rr-primary-dark); }

/* ----- Modale ------------------------------------------------- */

.g33-rr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.g33-rr-modal.is-open {
    display: flex;
    animation: g33RrFadeIn .18s ease-out;
}

@keyframes g33RrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.g33-rr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}

.g33-rr-modal__dialog {
    position: relative;
    background: #fff;
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px;
    border-radius: var(--g33-rr-radius);
    box-shadow: var(--g33-rr-shadow);
    animation: g33RrSlideUp .25s ease-out;
}

@keyframes g33RrSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.g33-rr-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.g33-rr-modal__close:hover { color: var(--g33-rr-secondary); }

.g33-rr-modal__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: var(--g33-rr-secondary);
}

.g33-rr-modal__intro {
    margin: 0 0 16px;
    color: #64748b;
    font-size: .95rem;
}

/* ----- Formulaire -------------------------------------------- */

.g33-rr-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.g33-rr-form__row { margin-bottom: 14px; }

.g33-rr-form__row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--g33-rr-secondary);
    font-size: .9rem;
}

.g33-rr-form__row input,
.g33-rr-form__row select,
.g33-rr-form__row textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--g33-rr-border);
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.g33-rr-form__row input:focus,
.g33-rr-form__row select:focus,
.g33-rr-form__row textarea:focus {
    outline: none;
    border-color: var(--g33-rr-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}

.g33-rr-form__row textarea { resize: vertical; min-height: 70px; }

.g33-rr-form__hint {
    color: #94a3b8;
    font-size: .8rem;
    display: block;
    text-align: right;
    margin-top: 4px;
}

.g33-rr-form__row--encourage {
    background: #f0fdf4;
    border-left: 3px solid var(--g33-rr-primary);
    padding: 10px 12px;
    border-radius: 4px;
}

.g33-rr-form__nudge {
    margin: 0;
    color: #166534;
    font-size: .9rem;
}

.g33-rr-form__rgpd {
    color: #94a3b8;
    font-size: .78rem;
    margin: 14px 0 16px;
    line-height: 1.4;
}

.g33-rr-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.g33-rr-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    font-size: .95rem;
    transition: background .15s, border-color .15s;
}

.g33-rr-btn--primary {
    background: var(--g33-rr-primary);
    color: #fff;
}

.g33-rr-btn--primary:hover { background: var(--g33-rr-primary-dark); }

.g33-rr-btn--ghost {
    background: #fff;
    color: #475569;
    border-color: var(--g33-rr-border);
}

.g33-rr-btn--ghost:hover { background: #f1f5f9; }

.g33-rr-form__feedback {
    margin-top: 12px;
    font-size: .9rem;
}

.g33-rr-form__feedback.is-error { color: var(--g33-rr-error); }
.g33-rr-form__feedback.is-success { color: var(--g33-rr-success); }

/* ----- Responsive -------------------------------------------- */

@media (max-width: 600px) {
    .g33-rr-home { padding: 20px; }
    .g33-rr-home__title { font-size: 1.3rem; }
    .g33-rr-modal__dialog { padding: 22px 18px; }
    .g33-rr-form__actions { flex-direction: column-reverse; }
    .g33-rr-form__actions .g33-rr-btn { width: 100%; }
}
