/* ========================================
   FORMULAIRE DU MANUSCRIT
   (les champs communs sont dans temoignage.css)
======================================== */

/* Deux champs côte à côte */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

/* Liste déroulante soulignée, avec une flèche fine
   dessinée en CSS (elle suit la couleur du thème) */
select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 32px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--fg) 50%),
        linear-gradient(135deg, var(--fg) 50%, transparent 50%);
    background-position:
        calc(100% - 10px) 50%,
        calc(100% - 5px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

select option {
    background: var(--bg);
    color: var(--fg);
}

/* Fichier : un bouton arrondi sur une ligne épurée */
input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 20px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 20px;
    min-height: 44px;
    padding: 10px 22px;
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--fg);
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

input[type="file"]:hover::file-selector-button {
    background: var(--fg);
    color: var(--bg);
}

input[type="file"]:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 4px;
}

.file-info {
    margin-top: 12px;
    font-size: 15px;
    color: var(--success);
}

#file-error {
    margin-top: 12px;
}

@media (max-width: 800px) {

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
