/* ALN Talent Consulting · styles du formulaire de contact avec pièces jointes (contact.html, formulaire.js).
   Chargé après style.css. Issu de l’ancien espace.css (espace personnel retiré le 25.10.2026) : seules
   restent les règles que le formulaire de contact utilise. Les valeurs après la virgule dans var(--x, valeur)
   ne servent que si style.css ne définit pas la variable. */
.progression[hidden] { display: none !important; }


/* ---------- Zone de glisser-déposer (contact.html) ---------- */
.zone-glisser { position: relative; text-align: center; border: 1.5px dashed var(--taupe-fonce, #8C8170); background: var(--sable, #F0E7D5);
  border-radius: var(--rayon-m, 12px); padding: clamp(1.3rem, 4vw, 2rem) 1.2rem;
  transition: background-color var(--duree-base, .24s), border-color var(--duree-base, .24s), box-shadow var(--duree-base, .24s); }
.zone-glisser input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.zone-glisser:focus-within { border-color: var(--terracotta, #7D502F); box-shadow: 0 0 0 3px rgb(125 80 47 / .25); }
.zone-glisser input[type="file"]:focus-visible ~ .zone-glisser__ou label { outline: 2px solid var(--c-anneau, #7D502F); outline-offset: 3px; }
.zone-glisser.est-survolee { background: var(--taupe-clair, #D8D0C2); border-color: var(--terracotta, #7D502F); border-style: solid; }
.zone-glisser p { margin: 0; }
.zone-glisser__titre { font: 500 var(--t-lg, 1.4rem)/1.2 var(--titre, Georgia, serif); color: var(--encre, #2B2118); }
.zone-glisser__ou { margin: .7rem 0 !important; color: var(--c-texte-doux, #4A3D31); }
.zone-glisser__ou label { display: inline-flex; margin: 0 0 0 .3rem; cursor: pointer; font-weight: 600; }
.zone-glisser__aide { font-size: var(--t-xs, .85rem); color: var(--c-texte-doux, #4A3D31); }
.est-inactif .zone-glisser { opacity: .55; }
.est-inactif .zone-glisser label { pointer-events: none; }

/* Liste des fichiers choisis */
.liste-fichiers { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.liste-fichiers:empty { display: none; }
.liste-fichiers__element { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .3rem .9rem; align-items: center;
  padding: .55rem .5rem .55rem .9rem; background: var(--blanc, #fff); border: 1px solid var(--c-filet, #D8D0C2); border-radius: var(--rayon-s, 6px); }
.liste-fichiers__nom { font-weight: 600; overflow-wrap: anywhere; }
.liste-fichiers__poids, .liste-fichiers__etat { font-size: var(--t-xs, .85rem); color: var(--c-texte-doux, #4A3D31); white-space: nowrap; }
.liste-fichiers__element .btn { min-height: var(--cible, 2.75rem); padding: .3rem .8rem; font-size: var(--t-xs, .85rem); }
.liste-fichiers__element.est-en-erreur { border-color: var(--erreur, #9B2C1F); background: #FBF0EC; }
.liste-fichiers__element.est-en-erreur .liste-fichiers__etat { color: var(--erreur, #9B2C1F); font-weight: 600; white-space: normal; }
.liste-fichiers__element.est-envoye .liste-fichiers__etat { color: var(--succes, #3D6B3A); font-weight: 600; }

/* Barre de progression */
.progression { display: grid; gap: .35rem; font-size: var(--t-sm, .95rem); color: var(--c-texte-doux, #4A3D31); }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: .6rem; border: 0; border-radius: 999px; background: var(--taupe-clair, #D8D0C2); overflow: hidden; color: var(--terracotta, #7D502F); }
progress::-webkit-progress-bar { background: var(--taupe-clair, #D8D0C2); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--terracotta, #7D502F); border-radius: 999px; transition: width .2s; }
progress::-moz-progress-bar { background: var(--terracotta, #7D502F); border-radius: 999px; }
progress.quota { height: .4rem; margin: .2rem 0 1rem; }

@media (max-width: 34rem) {
  .liste-fichiers__element { grid-template-columns: minmax(0, 1fr) auto; }
  .liste-fichiers__etat { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .zone-glisser, progress::-webkit-progress-value { transition: none; }
}
