.contact-container {
    flex: 1;
    padding: 8rem 4rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

/* Layout 2 colonnes */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

/* Form wrapper (glass card) */
.contact-form-wrapper {
    background: rgba(20, 26, 55, 0.6);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 193, 219, 0.1);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

fieldset.form-group {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset.form-group legend {
    float: left;
    width: 100%;
    margin-bottom: 0.5rem;
}

.form-group label,
.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    background: rgba(58, 85, 140, 0.18);
    border: 1px solid rgba(74, 111, 165, 0.28);
    border-radius: 10px;
    color: var(--text-white);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(184, 193, 219, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(58, 85, 140, 0.28);
    border-color: rgba(114, 164, 242, 0.65);
    box-shadow: 0 0 0 3px rgba(114, 164, 242, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Theme chips */
.contact-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.theme-chip {
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(74, 111, 165, 0.38);
    background: transparent;
    color: var(--text-gray);
    font-family: var(--font-family);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.theme-chip:hover {
    box-shadow: inset 0 0 0 1px rgba(114, 164, 242, 0.55);
    background: rgba(74, 111, 165, 0.12);
    color: var(--text-white);
}

.theme-chip:focus-visible {
    outline: 2px solid rgba(114, 164, 242, 0.6);
    outline-offset: 2px;
}

.theme-chip.active {
    background: linear-gradient(135deg, #2b3a87 0%, #4a6fa5 100%);
    box-shadow: none;
    color: var(--text-white);
    font-weight: 600;
    transform: translateY(-1px);
}

/* Champ sujet personnalisé (affiché quand "Autre" est sélectionné) */
.custom-subject-group {
    display: none;
    margin-top: 0.6rem;
    animation: slideDown 0.2s ease;
}

.custom-subject-group.visible {
    display: block;
}

.custom-subject-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    background: rgba(58, 85, 140, 0.18);
    border: 1px solid rgba(74, 111, 165, 0.28);
    border-radius: 10px;
    color: var(--text-white);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.custom-subject-input::placeholder {
    color: rgba(184, 193, 219, 0.35);
}

.custom-subject-input:focus {
    background: rgba(58, 85, 140, 0.28);
    border-color: rgba(114, 164, 242, 0.65);
    box-shadow: 0 0 0 3px rgba(114, 164, 242, 0.1);
}

/* Submit */
.submit-btn {
    padding: 0.85rem 2.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    background: linear-gradient(135deg, #2b3a87 0%, #4a6fa5 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    align-self: center;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #3545a0 0%, #5a80c5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:focus-visible {
    outline: 2px solid rgba(114, 164, 242, 0.7);
    outline-offset: 3px;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form message */
.form-message {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.form-message.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-message-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.form-message-error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.form-message-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.form-message-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.form-message-text {
    flex: 1;
    color: var(--text-white);
    line-height: 1.4;
}

/* Sidebar */
.sidebar-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    background: rgba(20, 26, 55, 0.6);
    border: 1px solid rgba(184, 193, 219, 0.1);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(74, 111, 165, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

.discord-icon {
    width: 22px;
    height: 22px;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.contact-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.contact-info-value {
    font-size: 0.9rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

a.contact-info-value:hover {
    color: rgba(114, 164, 242, 1);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-info-card {
        flex: 1;
        min-width: 190px;
    }

}

@media (max-width: 768px) {
    .contact-container {
        padding: 7rem 1.5rem 2rem;
    }

    .contact-title {
        font-size: 3rem;
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.75rem 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 6rem 1rem 1.5rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem 1rem;
    }

    .contact-sidebar {
        flex-direction: column;
    }
}
