* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Bree Serif", Sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: #f5f2eb;
    color: #1f1f1f;
}

main.container {
    /* max-width: 720px; */
    /* margin: 0 auto; */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

header .greeting {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header .intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0;
}

h1 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

.form-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.switch-button {
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #0d2bb0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 999px;
    background: transparent;
    color: #0f1b9a;
    transition: background 0.3s ease, color 0.3s ease;
}

main.container[data-active-form="employee"] .switch-button[data-form-target="employee"],
main.container[data-active-form="media"] .switch-button[data-form-target="media"] {
    background: #0d2bb0;
    color: #fff;
}

main.container[data-active-form="employee"] .switch-button[data-form-target="media"],
main.container[data-active-form="media"] .switch-button[data-form-target="employee"] {
    background: transparent;
    color: #0d2bb0;
}

.alert {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.alert.error {
    background: #ffecec;
    border: 1px solid #e43f3f;
}

.alert.success {
    background: #ecfff1;
    border: 1px solid #0b5d1e;
}

.alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.forms {
    margin-top: 2rem;
}

.contact-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #faf8f4;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #ded6c5;
}

.forms[data-active-form="employee"] #employee-form,
.forms[data-active-form="media"] #media-form {
    display: flex;
}

label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    gap: 0.4rem;
}

input {
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #b1a58c;
    font-family: inherit;
    font-size: 1rem;
}

.warning {
    background: #fff7cc;
    border-left: 4px solid #f3a712;
    padding: 0.85rem 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}
.avis_horari {
    background: #a4aaf8;
    border-left: 4px solid #1722c2;
    padding: 0.85rem 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

.captcha-wrapper {
    display: flex;
    justify-content: center;
}

.submit-button {
    align-self: flex-start;
    padding: 0.9rem 2rem;
    font-family: inherit;
    background: #1722c2;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.submit-button:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {
    main.container {
        padding: 1.5rem;
    }

    .form-switcher {
        flex-direction: column;
    }

    input {
        font-size: 0.95rem;
    }
}
