/* ==========================================================================
   APPEL À TEXTES — formulaire de soumission
   Direction artistique Haeros : or, crème, bordures douces.
   ========================================================================== */

.hr-appel-wrapper {
    --hr-or: #DCA54A;
    --hr-noir: #222222;
    --hr-creme-clair: #FAF5E5;
    --hr-bordure: #D3C4A7;
    --hr-blanc: #FFFFFF;
    --hr-vert: #639922;
    --hr-orange: #D85A30;
    --hr-gris-doux: #5F5E5A;

    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0;
}

.hr-appel-titre {
    font-family: Georgia, "Playfair Display", serif;
    font-size: 28px;
    color: var(--hr-noir);
    text-align: center;
    margin: 0 0 18px;
}

.hr-appel-etiquette {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hr-gris-doux);
    margin-bottom: 6px;
}

/* --- Thème ---------------------------------------------------------------- */
.hr-appel-theme {
    background: var(--hr-creme-clair);
    border: 1px solid var(--hr-bordure);
    border-left: 4px solid var(--hr-or);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.hr-appel-theme p {
    margin: 0;
    font-family: Georgia, "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.45;
    color: var(--hr-noir);
}

.hr-appel-intro {
    font-size: 14px;
    line-height: 1.65;
    color: var(--hr-gris-doux);
    margin-bottom: 16px;
}

/* --- Roman de référence --------------------------------------------------- */
.hr-appel-roman {
    background: var(--hr-blanc);
    border: 1px solid var(--hr-bordure);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.hr-appel-roman-titre {
    margin: 0 0 4px;
    font-family: Georgia, "Playfair Display", serif;
    font-size: 18px;
    color: var(--hr-noir);
}
.hr-appel-roman-note {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--hr-gris-doux);
}
.hr-appel-roman-lien {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hr-or);
    color: var(--hr-noir);
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}
.hr-appel-roman-lien:hover { opacity: .9; color: var(--hr-noir); }

/* --- Consignes chiffrées -------------------------------------------------- */
.hr-appel-consignes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--hr-bordure);
    border: 1px solid var(--hr-bordure);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}
.hr-appel-consigne {
    background: var(--hr-creme-clair);
    padding: 12px 16px;
}
.hr-appel-consigne-cle {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hr-gris-doux);
    margin-bottom: 3px;
}
.hr-appel-consigne-val {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: var(--hr-noir);
}
.hr-appel-consigne-val em { color: var(--hr-orange); font-style: normal; }

.hr-appel-format-plus {
    font-size: 12px;
    line-height: 1.6;
    color: var(--hr-gris-doux);
    margin: 0 0 14px;
}

/* --- Règlement ------------------------------------------------------------ */
.hr-appel-reglement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    background: var(--hr-creme-clair);
    border: 1px solid var(--hr-bordure);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0 0 16px;
}
.hr-appel-reglement-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--hr-noir);
    color: var(--hr-blanc);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity .2s ease;
}
.hr-appel-reglement-pdf::before {
    content: "↓";
    font-size: 15px;
    line-height: 1;
}
.hr-appel-reglement-pdf:hover { opacity: .85; color: var(--hr-blanc); }
.hr-appel-reglement-lien {
    font-size: 13px;
    color: var(--hr-gris-doux);
    text-decoration: underline;
}
.hr-appel-reglement-lien:hover { color: var(--hr-or); }
.hr-appel-reglement-note {
    flex-basis: 100%;
    margin: 0;
    font-size: 11px;
    color: var(--hr-gris-doux);
}

.hr-appel-jauge {
    font-size: 13px;
    color: var(--hr-gris-doux);
    text-align: center;
    margin: 0 0 14px;
}

/* --- Fermé ---------------------------------------------------------------- */
.hr-appel-ferme {
    background: var(--hr-creme-clair);
    border: 1px solid var(--hr-bordure);
    border-radius: 10px;
    padding: 26px;
    text-align: center;
    color: var(--hr-gris-doux);
    font-size: 14px;
    line-height: 1.7;
}

/* --- Formulaire ----------------------------------------------------------- */
.hr-appel-form {
    background: var(--hr-blanc);
    border: 1px solid var(--hr-bordure);
    border-radius: 12px;
    padding: 24px;
}

.hr-appel-honeypot {
    position: absolute;
    left: -9999px; top: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.hr-appel-section { border: none; padding: 0; margin: 0 0 26px; }
.hr-appel-section:last-of-type { margin-bottom: 12px; }
.hr-appel-section legend {
    font-family: Georgia, "Playfair Display", serif;
    font-size: 16px;
    color: var(--hr-noir);
    font-weight: 500;
    margin-bottom: 12px;
    padding: 0;
}

.hr-appel-field { margin-bottom: 16px; }
.hr-appel-field > label {
    display: block;
    font-size: 13px;
    color: var(--hr-noir);
    margin-bottom: 4px;
    font-weight: 500;
}
.hr-req { color: var(--hr-orange); }

.hr-appel-field input[type="text"],
.hr-appel-field input[type="email"],
.hr-appel-field input[type="url"],
.hr-appel-field input[type="number"],
.hr-appel-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hr-bordure);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--hr-noir);
    background: var(--hr-creme-clair);
    box-sizing: border-box;
}
.hr-appel-field input:focus,
.hr-appel-field textarea:focus {
    outline: none;
    border-color: var(--hr-or);
    background: var(--hr-blanc);
}
.hr-appel-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

/* Champ fichier : le style natif est illisible, on l'habille */
.hr-appel-field input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--hr-bordure);
    border-radius: 8px;
    background: var(--hr-creme-clair);
    font-family: inherit;
    font-size: 13px;
    color: var(--hr-noir);
    box-sizing: border-box;
    cursor: pointer;
}
.hr-appel-field input[type="file"]:hover { border-color: var(--hr-or); }

.hr-appel-hint {
    font-size: 11px;
    color: var(--hr-gris-doux);
    margin: 4px 0 0;
    line-height: 1.55;
}

.hr-appel-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--hr-bordure);
    border-radius: 8px;
    background: var(--hr-creme-clair);
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 13px;
    line-height: 1.5;
    transition: border-color .2s ease, background .2s ease;
}
.hr-appel-check:hover { border-color: var(--hr-or); background: var(--hr-blanc); }
.hr-appel-check input[type="checkbox"] {
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: var(--hr-or);
    width: 16px; height: 16px;
}
.hr-appel-check span { flex: 1; }

.hr-appel-submit {
    width: 100%;
    padding: 14px;
    background: var(--hr-or);
    color: var(--hr-noir);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}
.hr-appel-submit:hover { opacity: .9; transform: translateY(-1px); }

.hr-appel-rgpd {
    margin-top: 14px;
    font-size: 11px;
    color: var(--hr-gris-doux);
    line-height: 1.5;
}

.hr-appel-ok,
.hr-appel-ko {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.hr-appel-ok {
    background: rgba(99, 153, 34, .1);
    color: var(--hr-vert);
    border: 1px solid var(--hr-vert);
}
.hr-appel-ko {
    background: rgba(216, 90, 48, .1);
    color: var(--hr-orange);
    border: 1px solid var(--hr-orange);
}

@media (max-width: 600px) {
    .hr-appel-consignes { grid-template-columns: 1fr; }
    .hr-appel-form { padding: 18px; }
}
