* { box-sizing: border-box; }
body { margin: 0; background: #fffaf4; color: #293b43; font: 1rem/1.55 system-ui, sans-serif; }
main { width: min(100% - 2rem, 44rem); margin: 2rem auto; padding: clamp(1rem, 4vw, 2.5rem); background: white; border: 1px solid #e8dfd5; border-radius: 1rem; }
h1, h2 { line-height: 1.2; }
a { color: #633d76; }
label { display: block; font-weight: 650; margin-top: 1rem; }
input { display: block; width: 100%; margin-top: .25rem; font: inherit; }
input:not([type=file]) { min-height: 2.75rem; padding: .5rem; border: 1px solid #687b8c; border-radius: .4rem; }
button { margin-top: 1rem; padding: .6rem 1rem; border: 1px solid #633d76; border-radius: .4rem; background: #633d76; color: white; font: inherit; cursor: pointer; }
.logout button { background: white; color: #633d76; margin: 0; }
#drop-zone { padding: 1rem; margin-top: 1rem; border: 2px dashed #687b8c; border-radius: .5rem; }
#drop-zone label { margin-top: 0; }
#drop-zone p { margin: .25rem 0 .6rem; }
#drop-zone.dragover { background: #f5eff8; border-color: #633d76; }
.message { padding: .75rem; background: #e7f4ec; overflow-wrap: anywhere; }
.error { background: #faecea; }
#file-status { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #b34d00; outline-offset: 3px; }
#projets { margin-top: 2.5rem; }
.projects { list-style: none; padding: 0; }
.projects > li, .document-preview { padding: 1rem; border: 1px solid #e8dfd5; border-radius: .5rem; overflow-wrap: anywhere; }
.projects > li + li { margin-top: .75rem; }
.projects h3 { margin: 0; }
.projects p { margin: .35rem 0; }
.document-preview { white-space: pre-wrap; }
.project-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project-layout > div { min-width: 0; }
.project-candidates h4 { margin: 0; }
.project-candidates textarea { width: 100%; margin-top: .25rem; padding: .5rem; border: 1px solid #687b8c; border-radius: .4rem; font: inherit; resize: vertical; }
.field-hint { font-size: .875rem; }
.delete-project button { background: white; border-color: #8c2e35; color: #8c2e35; }
@media (max-width: 600px) {
    .project-layout { grid-template-columns: 1fr; }
}

.professional-heading { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.professional-heading img { display: block; width: clamp(3.75rem, 15vw, 5.5rem); height: auto; flex: none; }
.professional-heading h1 { margin: 0; color: #50325f; font-size: clamp(1.4rem, 4vw, 2rem); }
