.albumcontact-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 0;
}

.albumcontact-flex {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.albumcontact-infos {
    flex: 0 0 210px;
    padding: 48px 24px 36px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.albumcontact-formblock {
    flex: 1 1 0;
    padding: 48px 40px 36px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.albumcontact-label {
    font-size: 2.1rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 32px;
    text-align: left;
    letter-spacing: -1px;
    display: block;
    text-transform: none;
}

.albumcontact-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    background: none;
}

.albumcontact-sep-line {
    width: 1px;
    height: 350px;
    background: #ccc;
    border-radius: 1px;
    margin: 0 auto;
    opacity: 0.7;
}

.albumcontact-form-fields {
    flex: 1 1 0;
    min-width: 0;
}

.contact-field {
    margin-bottom: 22px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

.contact-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 8px;
    margin-bottom: 0;
}

.contact-upload label {
    margin-bottom: 8px;
}

.help-block {
    color: #b85c00;
    background: #fff3cd;
    border: 1px solid #ffe066;
    border-radius: 7px;
    padding: 10px 16px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    max-width: 100%;
}

.contact-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 36px;
    margin-bottom: 0;
}

.contact-legend {
    font-size: 1.07rem;
    color: #444;
    font-style: italic;
    white-space: nowrap;
}

.info-row .infos-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infos-label {
    font-weight: bold;
    color: #222;
}

.infos-country {
    color: #666;
    font-size: 0.98em;
}

.infos-mail {
    color: #e20074;
    font-weight: bold;
    text-decoration: underline;
    word-break: break-all;
    font-size: 0.9rem;
}

#albumcontact-form label {
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
    font-size: 1rem;
    text-align: left;
    min-width: 170px;
    flex-shrink: 0;
}

#albumcontact-form input[type="email"],
#albumcontact-form input[type="text"],
#albumcontact-form input[type="date"],
#albumcontact-form select,
#albumcontact-form textarea {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    flex: 1 1 0;
    box-sizing: border-box;
}

#albumcontact-form select {
    min-height: 40px;
}

#albumcontact-form textarea {
    min-height: 96px;
    resize: vertical;
}

#albumcontact-form input[type="file"] {
    display: none;
}

#albumcontact-form label[for="albumcontact-photos"] {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 1rem;
}

#albumcontact-form input[type="checkbox"] {
    accent-color: #ffd600;
    margin-right: 7px;
    width: 18px;
    height: 18px;
}

#albumcontact-form button[type="submit"] {
    background: #ffd600;
    color: #222;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 7px;
    padding: 12px 0;
    width: 120px;
    margin: 0;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#albumcontact-form button[type="submit"]:hover {
    background: #ffe066;
}

.alert-danger {
    background: #fff3cd;
    color: #b85c00;
    border: 1px solid #ffe066;
    border-radius: 7px;
    padding: 12px 20px;
    margin-bottom: 18px;
    font-size: 1rem;
}

.alert-success {
    background: #eafbe1;
    color: #2e7d32;
    border: 1px solid #b6e5a1;
    border-radius: 7px;
    padding: 12px 20px;
    margin-bottom: 18px;
    font-size: 1rem;
}

.files-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    width: 100%;
    max-width: 320px;
}

.files-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 6px;
    padding: 6px 10px;
    font-size: 0.98em;
}

.files-list .remove-file {
    background: none;
    border: none;
    color: #e20074;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 12px;
}

.files-list .remove-file:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .albumcontact-flex {
        flex-direction: column;
    }

    .albumcontact-infos,
    .albumcontact-formblock {
        padding: 24px 10px;
    }

    .albumcontact-separator {
        display: none;
    }

    .albumcontact-label {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }

    .contact-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Faire passer seulement les labels au-dessus */
    #albumcontact-form .contact-field label {
        display: block !important;
        margin-bottom: 6px !important;
        min-width: 0 !important;
        text-align: left !important;
        width: auto !important;
    }

    /* IMPORTANT : faire empiler verticalement CHAQUE couple label + champ */
    #albumcontact-form .contact-field {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        /* espace vertical modéré */
    }
}