*, *::before, *::after {
    box-sizing: border-box;
}

/* ─── Body & Layout ─── */

body {
    background-color: #111111;
    font-family: 'Open Sans', sans-serif;
}

main {
    width: 60%;
    color: white;
    margin: 0 auto;
}

/* ─── Header ─── */

header {
    background-color: #444444;
    border-radius: 12px 12px 0 0;
    height: 130px;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.header-inner {
    width: 60%;
    margin: 0 auto;
}

header img {
    width: 100px;
    height: 100px;
    transform: translateY(50%);
}

/* ─── Typography ─── */

h1 {
    font-weight: 900;
    font-size: 40px;
    padding-top: 50px;
    padding-bottom: 15px;
}

.jaune {
    color: #CD9F01;
}

hr {
    border: none;
    height: 1px;
    background-color: rgb(55, 55, 55);
}

legend {
    font-weight: bold;
    font-size: 20px;
    padding: 30px 0;
}

label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.90);
}

.required {
    color: #CD9F01;
    margin-left: 2px;
}

em {
    color: rgba(255, 255, 255, 0.35);
}

a {
    color: rgba(255, 255, 255, 0.35);
}

a:hover {
    color: rgba(255, 255, 255, 0.489);
}

/* ─── Form & Fieldset ─── */

fieldset {
    border: none;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#objet {
    grid-column: 1 / 2;
}

#description,
#files {
    grid-column: 1 / -1;
}

/* ─── Inputs & Textarea ─── */

input,
textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
    caret-color: #fff;
    box-shadow:
        rgba(0, 0, 0, 0.12) 0px 1px 1px,
        rgba(248, 248, 248, 0.16) 0px 0px 0px 1px,
        rgba(248, 248, 248, 0.08) 0px 2px 5px;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

input:hover,
textarea:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25),
        0 2px 8px rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.13);
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.6);
}

textarea {
    resize: none;
}

/* ─── Submit Button ─── */

input[type="submit"] {
    margin: 20px 0;
    cursor: pointer;
    font-weight: 600;
    background-color: #CD9F01;
    color: white;
    font-size: 15px;
    width: auto;
    padding: 10px 28px;
}

input[type="submit"]:hover {
    background-color: #876801;
}

/* ─── Phone Field ─── */

.tel-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
}

.tel-wrapper select {
    flex-shrink: 0;
    width: auto;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    box-shadow:
        rgba(0, 0, 0, 0.12) 0px 1px 1px,
        rgba(248, 248, 248, 0.16) 0px 0px 0px 1px,
        rgba(248, 248, 248, 0.08) 0px 2px 5px;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.tel-wrapper select:hover {
    background-color: rgba(255, 255, 255, 0.13);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25),
        0 2px 8px rgba(255, 255, 255, 0.08);
}

.tel-wrapper select option {
    background-color: #1e1e1e;
    color: #fff;
}

.tel-wrapper input {
    flex: 1;
    min-width: 0;
}

/* ─── Error Messages ─── */

.error-msg {
    color: rgba(231, 76, 60, 0.9);
    font-size: 12px;
    min-height: 16px;
}

/* ─── File Drop Zone ─── */

.files-field {
    width: 100%;
    display: block;
}

.file-drop {
    position: relative;
    width: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-drop:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.03);
}

.file-drop.dragover {
    border-color: #CD9F01;
    background-color: rgba(205, 159, 1, 0.05);
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    box-shadow: none;
    background: none;
}

.file-drop input[type="file"]:hover {
    box-shadow: none;
    background: none;
}

.file-drop-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.file-drop-icon {
    font-size: 24px;
}

.file-drop-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.file-drop-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.file-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list li button {
    background: none;
    border: none;
    color: rgba(231, 76, 60, 0.8);
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    main {
        width: 90%;
    }

    .header-inner {
        width: 90%;
    }

    fieldset {
        grid-template-columns: 1fr;
    }

    #objet,
    #description,
    #files {
        grid-column: 1 / -1;
    }
}