/* LEAVAH PARIS — Forms */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-error {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

select.form-control {
    appearance: none;
    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='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ===== AUTH FORMS (login, inscription) ===== */
.auth-section {
    background: #faf8f5;
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: calc(100vh - 80px);
}

.auth-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 24px;
}

.auth-wrap .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Centrage du bouton submit dans les formulaires d'authentification
   (login, register, reset password). Le `.btn-gold` est display:inline-flex
   par défaut donc s'aligne à gauche dans le form. */
.auth-wrap .contact-form > .btn-gold,
.auth-wrap .contact-form button[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .auth-wrap .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Auth — messages et hints */
.auth-alert--error {
    font-size: 0.85rem;
    color: #c0392b;
    padding: 12px 16px;
    border: 1px solid #c0392b;
    margin-bottom: 16px;
}

.auth-alert--success {
    font-size: 0.85rem;
    color: #276749;
    padding: 12px 16px;
    border: 1px solid #276749;
    margin-bottom: 16px;
}

.auth-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -4px;
    text-align: center;
}

.auth-hint a {
    color: var(--gold);
}

/* Variante "mot de passe oublié" — discret, juste sous le bouton submit */
.auth-hint--forgot {
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 0.8rem;
}
.auth-hint--forgot a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.25);
    text-underline-offset: 3px;
}
.auth-hint--forgot a:hover {
    color: var(--gold);
    text-decoration-color: var(--gold);
}

.auth-notice {
    background: #faf8f5;
    border-left: 3px solid #b8960c;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #444;
    line-height: 1.7;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: center;
}

.form-check--mt {
    margin-top: 4px;
}

/* Bouton « œil » des champs mot de passe (assets/js/password-toggle.js) */
.pw-toggle-wrap { position: relative; display: block; width: 100%; }
.pw-toggle-wrap > input { width: 100%; padding-right: 42px; box-sizing: border-box; }
.pw-toggle-btn {
    position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
    background: none; border: none; padding: 4px; margin: 0; cursor: pointer; color: #8a8a8a;
    display: flex; align-items: center; justify-content: center; line-height: 0; transition: color .15s;
}
.pw-toggle-btn:hover { color: #1a1a1a; }

/* Suggestions d'adresse (assets/js/address-autocomplete.js) : liste sous le champ « Adresse » */
.address-suggest-host {
    position: relative;
}

.address-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    max-height: 260px;
    overflow-y: auto;
}

.address-suggest__item {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.4;
}

.address-suggest__item + .address-suggest__item {
    border-top: 1px solid var(--border);
}

.address-suggest__item:hover,
.address-suggest__item.is-active {
    background: var(--bg-card-hover);
}

/* Aide sous un champ (option 'help' des formulaires Symfony : téléphone, note de livraison…) */
.help-text {
    margin-top: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
}
