/* doc-project | projet/assets/css/admin-portails-management-v3.css | styles dedies a l interface admin V3 de gestion des supplements largeur et hauteur sur mesure portails et portillons avec cartes groupes, tableaux de matrice hauteur, formulaire premium et etats AJAX */
.admin-portals-v3-page {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #2c1d13;
    background: linear-gradient(135deg, #f8f1e8 0%, #fffaf3 100%);
}

.admin-portals-v3 {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.admin-portals-v3__back {
    display: inline-flex;
    margin-bottom: 20px;
    color: #6b3f1f;
    font-weight: 700;
    text-decoration: none;
}

.admin-portals-v3__back:hover,
.admin-portals-v3__back:focus {
    text-decoration: underline;
}

.admin-portals-v3__shell {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(95, 60, 27, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 70px rgba(36, 23, 15, 0.14);
}

.admin-portals-v3__eyebrow {
    margin: 0 0 8px;
    color: #8b4a24;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-portals-v3__shell h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.admin-portals-v3__description {
    max-width: 780px;
    margin: 18px 0 0;
    color: #5b4635;
    font-size: 1.05rem;
    line-height: 1.65;
}

.admin-portals-v3__notice {
    margin-top: 28px;
    padding: 24px;
    border: 1px dashed rgba(139, 74, 36, 0.44);
    border-radius: 20px;
    background: #fff6ec;
    color: #6b3f1f;
    font-weight: 800;
}

.admin-portals-v3__notice.is-error {
    border-color: rgba(178, 34, 34, 0.45);
    background: #fff0f0;
    color: #8a1f1f;
}

.admin-portals-v3__notice.is-success {
    border-color: rgba(53, 122, 72, 0.45);
    background: #f0fff5;
    color: #245d36;
}

.admin-portals-v3__form {
    display: grid;
    gap: 22px;
    margin-top: 26px;
}

.admin-portals-v3__card {
    padding: 24px;
    border: 1px solid rgba(95, 60, 27, 0.14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(36, 23, 15, 0.08);
}

.admin-portals-v3__card-head h2,
.admin-portals-v3__card-head p {
    margin: 0;
}

.admin-portals-v3__card-head p {
    margin-top: 8px;
    color: #6d5a49;
    line-height: 1.5;
}

.admin-portals-v3__card-eyebrow {
    color: #8b4a24;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-portals-v3__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.admin-portals-v3__grid h3 {
    margin: 0 0 12px;
}

.admin-portals-v3__field {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    font-weight: 750;
}

.admin-portals-v3__field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(95, 60, 27, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
}

.admin-portals-v3__field small {
    color: #7b6856;
    font-weight: 600;
}

.admin-portals-v3__card--height {
    overflow: hidden;
}

.admin-portals-v3__height-group {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.admin-portals-v3__height-group h3,
.admin-portals-v3__height-table-wrap h4 {
    margin: 0;
}

.admin-portals-v3__height-table-wrap {
    overflow-x: auto;
    padding: 16px;
    border: 1px solid rgba(95, 60, 27, 0.12);
    border-radius: 18px;
    background: #fffaf3;
}

.admin-portals-v3__height-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    margin-top: 12px;
}

.admin-portals-v3__height-table th,
.admin-portals-v3__height-table td {
    padding: 9px;
    border-bottom: 1px solid rgba(95, 60, 27, 0.12);
    text-align: left;
    vertical-align: middle;
}

.admin-portals-v3__height-table thead th {
    color: #6b3f1f;
    font-size: .78rem;
    white-space: nowrap;
}

.admin-portals-v3__height-table tbody th {
    min-width: 130px;
    color: #2c1d13;
    font-size: .88rem;
}

.admin-portals-v3__height-table input {
    width: 92px;
    box-sizing: border-box;
    border: 1px solid rgba(95, 60, 27, 0.22);
    border-radius: 12px;
    padding: 9px 10px;
    font: inherit;
}

.admin-portals-v3__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(139, 74, 36, 0.08);
}

.admin-portals-v3__actions p {
    margin: 0;
    color: #5b4635;
}

.admin-portals-v3__submit {
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    background: #6b3f1f;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.admin-portals-v3__submit[disabled] {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 760px) {
    .admin-portals-v3__grid,
    .admin-portals-v3__actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}