/* SEL de Soulatgé — charte bleu, vert, orange et fonds pastel. */
.selpt-wrap {
    --selpt-blue: #1f497d;
    --selpt-blue-dark: #173a65;
    --selpt-green: #9bbb59;
    --selpt-orange: #f79646;
    --selpt-text: #263238;
    --selpt-muted: #626862;
    --selpt-line: #d9ddd7;
    --selpt-soft: #f7f9fc;
    --selpt-green-soft: #f2f7e9;
    --selpt-orange-soft: #fff3e9;
    --selpt-blue-soft: #eff4f9;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--selpt-text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.selpt-wrap *,
.selpt-wrap *::before,
.selpt-wrap *::after { box-sizing: border-box; }
.selpt-wrap [hidden] { display: none !important; }
.selpt-wrap a { text-underline-offset: 3px; }
.selpt-template-main { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(40px, 7vw, 80px); }

.selpt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0 0 1.25rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--selpt-line);
    border-left: 6px solid var(--selpt-blue);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(31, 73, 125, .07);
}
.selpt-head h2 { margin: .2rem 0 .3rem; color: var(--selpt-blue); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; }
.selpt-head p { max-width: 700px; margin: 0; color: var(--selpt-muted); }
.selpt-kicker { color: var(--selpt-orange); font-size: .73rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.selpt-head-actions, .selpt-card-actions, .selpt-single-top, .selpt-moderation-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.selpt-count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 999px; background: var(--selpt-orange); color: #fff; font-size: .75rem; }

.selpt-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 42px;
    margin: 0;
    padding: .62rem 1rem;
    border: 1px solid #ccd5dd;
    border-radius: 999px;
    background: #fff;
    color: var(--selpt-blue) !important;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.selpt-btn:hover { transform: translateY(-1px); background: #f1f5f8; }
.selpt-btn:focus-visible { outline: 3px solid rgba(79, 129, 189, .28); outline-offset: 2px; }
.selpt-btn-primary { border-color: var(--selpt-blue); background: var(--selpt-blue); color: #fff !important; box-shadow: 0 6px 14px rgba(31, 73, 125, .13); }
.selpt-btn-primary:hover { background: var(--selpt-blue-dark); }
.selpt-btn-danger { border-color: #e7b4af; background: #fff0ef; color: #a94442 !important; }

.selpt-notice { margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid; border-radius: 12px; }
.selpt-notice a { font-weight: 800; }
.selpt-success { border-color: #b8d48c; background: #f0f8e8; color: #41621b; }
.selpt-error { border-color: #e7b4af; background: #fff0ef; color: #8c332e; }
.selpt-info { border-color: #b9cce0; background: #eff5fb; color: var(--selpt-blue); }

.selpt-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, .42fr) minmax(170px, .38fr) auto;
    gap: .7rem;
    align-items: center;
    margin: 0 0 .75rem;
    padding: .8rem;
    border: 1px solid var(--selpt-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 73, 125, .05);
}
.selpt-search { position: relative; display: block; }
.selpt-search .dashicons { position: absolute; top: 50%; left: .75rem; width: 20px; height: 20px; transform: translateY(-50%); color: var(--selpt-blue); }
.selpt-search input { padding-left: 2.45rem !important; }
.selpt-toolbar input, .selpt-toolbar select,
.selpt-field input[type="text"], .selpt-field input[type="url"], .selpt-field input[type="file"],
.selpt-field select, .selpt-field textarea {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: .72rem .78rem;
    border: 1px solid #c9d0d5;
    border-radius: 11px;
    background: #fff;
    color: var(--selpt-text);
    font: inherit;
}
.selpt-toolbar input:focus, .selpt-toolbar select:focus,
.selpt-field input:focus, .selpt-field select:focus, .selpt-field textarea:focus {
    border-color: var(--selpt-blue);
    outline: 3px solid rgba(79, 129, 189, .14);
    outline-offset: 0;
}
.selpt-result-line { margin: 0 0 1rem; color: var(--selpt-muted); font-size: .88rem; text-align: right; }

.selpt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.selpt-card { min-width: 0; overflow: hidden; border: 1px solid var(--selpt-line); border-radius: 17px; background: #fff; box-shadow: 0 5px 16px rgba(31, 73, 125, .05); transition: transform .18s ease, box-shadow .18s ease; }
.selpt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(31, 73, 125, .12); }
.selpt-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(145deg, #eff4f9, #cad9e8); }
.selpt-cover:nth-child(3n+2) { background: linear-gradient(145deg, #f2f7e9, #d5e1bc); }
.selpt-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.selpt-cover:hover img { transform: scale(1.025); }
.selpt-cover-empty { display: grid; place-items: center; text-decoration: none; }
.selpt-cover-empty > .dashicons { width: auto; height: auto; color: var(--selpt-blue); font-size: 3.2rem; }
.selpt-video-chip { position: absolute; top: .75rem; right: .75rem; padding: .28rem .55rem; border-radius: 999px; background: rgba(31, 73, 125, .92); color: #fff; font-size: .72rem; font-weight: 800; }
.selpt-card-body { padding: 1rem; }
.selpt-card-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: .45rem; flex-wrap: wrap; }
.selpt-badge, .selpt-status { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: .28rem .58rem; border-radius: 999px; font-size: .72rem; font-weight: 850; line-height: 1.2; }
.selpt-badge { background: #eef4e5; color: #55752b; }
.selpt-status-publish { background: #eaf3fa; color: var(--selpt-blue); }
.selpt-status-pending { background: #fff6dc; color: #7b5b00; }
.selpt-status-draft { background: #f0f0f0; color: #666; }
.selpt-card h3 { margin: .68rem 0 .45rem; font-size: 1.08rem; line-height: 1.28; }
.selpt-card h3 a { color: var(--selpt-blue) !important; text-decoration: none !important; }
.selpt-excerpt { min-height: 4.1em; margin: 0 0 .8rem; color: #555f62; font-size: .9rem; line-height: 1.5; }
.selpt-byline { display: flex; align-items: center; gap: .58rem; margin: .6rem 0 .85rem; color: #566; }
.selpt-byline img { flex: 0 0 auto; border-radius: 50%; }
.selpt-byline > span { display: flex; min-width: 0; flex-direction: column; font-size: .8rem; }
.selpt-byline small { color: #7a8285; }
.selpt-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding-top: .75rem; border-top: 1px solid #e7ebe8; color: #6a7276; font-size: .8rem; }
.selpt-card-footer a { color: var(--selpt-blue) !important; font-weight: 800; text-decoration: none !important; }
.selpt-card-actions { margin-top: .85rem; }
.selpt-card-actions form { margin: 0; }
.selpt-card-actions .selpt-btn { min-height: 37px; padding: .48rem .75rem; font-size: .8rem; }
.selpt-empty { padding: 2rem 1.2rem; border: 1px dashed #c9d0d5; border-radius: 14px; background: #fafbfc; color: #616b70; text-align: center; }
.selpt-empty > .dashicons { width: auto; height: auto; color: var(--selpt-green); font-size: 2.5rem; }
.selpt-empty h3 { margin: .5rem 0 .2rem; color: var(--selpt-text); }
.selpt-empty p { margin: 0 0 .9rem; }

.selpt-form-wrap { max-width: 920px; }
.selpt-stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 1rem; padding: 0; list-style: none; }
.selpt-stepper li { position: relative; display: grid; justify-items: center; gap: .35rem; color: #747d80; font-size: .75rem; text-align: center; }
.selpt-stepper li::after { content: ""; position: absolute; z-index: -1; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--selpt-line); }
.selpt-stepper li:last-child::after { display: none; }
.selpt-stepper span { display: grid; place-items: center; width: 33px; height: 33px; border: 2px solid var(--selpt-line); border-radius: 50%; background: #fff; font-weight: 800; }
.selpt-stepper .is-active, .selpt-stepper .is-done { color: var(--selpt-blue); }
.selpt-stepper .is-active span, .selpt-stepper .is-done span { border-color: var(--selpt-blue); background: var(--selpt-blue); color: #fff; }
.selpt-stepper .is-done::after { background: var(--selpt-blue); }
.selpt-form { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid var(--selpt-line); border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(31, 73, 125, .05); }
.selpt-step { display: grid; min-width: 0; gap: 1rem; margin: 0; padding: 0; border: 0; }
.selpt-form.is-enhanced .selpt-step:not(.is-active) { display: none; }
.selpt-step > legend { width: 100%; margin: 0 0 .4rem; padding: 0 0 .8rem; border-bottom: 1px solid var(--selpt-line); color: var(--selpt-blue); font-size: 1.18rem; font-weight: 800; }
.selpt-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.selpt-field { display: grid; align-content: start; gap: .4rem; color: var(--selpt-blue); font-weight: 800; }
.selpt-field > span b { color: #a94442; }
.selpt-field small { color: #6a7276; font-size: .78rem; font-weight: 500; }
.selpt-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.selpt-field [aria-invalid="true"] { border-color: #a94442; background: #fff9f8; }
.selpt-field-half { max-width: calc(50% - .5rem); }
.selpt-upload { position: relative; display: grid; min-height: 145px; place-items: center; align-content: center; gap: .2rem; padding: 1rem; border: 2px dashed #b9cce0; border-radius: 14px; background: var(--selpt-blue-soft); color: var(--selpt-blue); text-align: center; cursor: pointer; }
.selpt-upload:hover, .selpt-upload.is-dragging { border-color: var(--selpt-orange); background: var(--selpt-orange-soft); }
.selpt-upload > .dashicons { width: auto; height: auto; font-size: 2rem; }
.selpt-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.selpt-upload small { color: var(--selpt-muted); }
.selpt-file-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
.selpt-file-preview span { max-width: 240px; overflow: hidden; padding: .5rem .65rem; border: 1px solid var(--selpt-line); border-radius: 9px; background: var(--selpt-soft); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.selpt-existing-media { padding: .85rem; border: 1px solid var(--selpt-line); border-radius: 12px; background: #fafbf9; }
.selpt-existing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; }
.selpt-existing-grid label { display: grid; gap: .35rem; padding: .45rem; border: 1px solid #e1e5e1; border-radius: 10px; background: #fff; font-size: .75rem; }
.selpt-existing-grid img { display: block; width: 100%; height: 105px; object-fit: cover; border-radius: 7px; }
.selpt-review { padding: 1.1rem; border: 1px solid #d5e1bc; border-radius: 14px; background: var(--selpt-green-soft); }
.selpt-review h3 { margin: .45rem 0 .35rem; color: var(--selpt-blue); }
.selpt-review p { margin: 0; color: var(--selpt-muted); }
.selpt-review-meta { margin-top: .75rem; font-size: .85rem; font-weight: 700; }
.selpt-consent { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.selpt-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--selpt-blue); }
.selpt-moderation-info { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border: 1px solid #eed4c0; border-radius: 12px; background: var(--selpt-orange-soft); }
.selpt-moderation-info .dashicons { flex: 0 0 auto; width: auto; height: auto; color: #88602d; font-size: 1.65rem; }
.selpt-moderation-info p { margin: 0; }
.selpt-form-error { padding: .7rem .8rem; border: 1px solid #e7b4af; border-radius: 10px; background: #fff0ef; color: #8c332e; font-weight: 700; }
.selpt-form-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: .65rem; padding-top: 1rem; border-top: 1px solid var(--selpt-line); }

.selpt-moderation-list { display: grid; gap: .8rem; }
.selpt-moderation-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--selpt-line); border-radius: 15px; background: #fff; }
.selpt-moderation-item h3 { margin: .45rem 0 .25rem; font-size: 1.15rem; }
.selpt-moderation-item h3 a { color: var(--selpt-blue) !important; text-decoration: none !important; }
.selpt-moderation-item p { margin: .2rem 0 0; color: var(--selpt-muted); font-size: .88rem; }
.selpt-moderation-actions form { margin: 0; }

.selpt-single { max-width: 1040px; }
.selpt-single-top { justify-content: space-between; margin-bottom: 1rem; }
.selpt-single-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr); gap: 1.5rem; align-items: center; padding: clamp(1.3rem, 4vw, 2.3rem); border: 1px solid #cad9e8; border-radius: 22px; background: linear-gradient(125deg, var(--selpt-blue-soft), #fff 72%); }
.selpt-single-hero h1 { margin: .7rem 0 .55rem; color: var(--selpt-blue); font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05; }
.selpt-single-hero p { margin: 0; color: var(--selpt-muted); font-size: 1.05rem; }
.selpt-single-cover { display: grid; min-height: 230px; place-items: center; overflow: hidden; border-radius: 17px; background: linear-gradient(145deg, #f2f7e9, #d5e1bc); }
.selpt-single-cover img { display: block; width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.selpt-single-cover > .dashicons { width: auto; height: auto; color: var(--selpt-blue); font-size: 5rem; }
.selpt-single-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.selpt-single-layout aside { display: grid; align-content: start; gap: .8rem; }
.selpt-info-card, .selpt-text, .selpt-media-section { padding: 1rem; border: 1px solid var(--selpt-line); border-radius: 15px; background: #fff; }
.selpt-info-card { background: var(--selpt-green-soft); }
.selpt-info-card.selpt-safety { border-color: #eed4c0; background: var(--selpt-orange-soft); }
.selpt-info-card h2, .selpt-text h2, .selpt-media-section h2, .selpt-single-main > section > h2 { margin: 0 0 .7rem; color: var(--selpt-blue); font-size: 1.25rem; }
.selpt-info-card ul { margin: 0; padding-left: 1.1rem; }
.selpt-info-card p { margin: 0; }
.selpt-single-main { display: grid; gap: 1rem; }
.selpt-progress { height: 7px; margin: 0 0 .8rem; overflow: hidden; border-radius: 999px; background: #e5e9e6; }
.selpt-progress span { display: block; width: 0; height: 100%; background: var(--selpt-green); transition: width .2s ease; }
.selpt-steps { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; counter-reset: selpt-step; }
.selpt-steps li { border: 1px solid var(--selpt-line); border-radius: 13px; background: #fff; transition: background-color .18s ease; }
.selpt-steps li.is-done { background: var(--selpt-green-soft); }
.selpt-steps label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .7rem; padding: .85rem; cursor: pointer; }
.selpt-steps input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--selpt-green); }
.selpt-steps span { display: grid; gap: .2rem; }
.selpt-steps b { color: var(--selpt-blue); font-size: .8rem; }
.selpt-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.selpt-gallery button { appearance: none; display: block; overflow: hidden; margin: 0; padding: 0; border: 0; border-radius: 12px; background: #eef2f5; cursor: zoom-in; }
.selpt-gallery img { display: block; width: 100%; height: 280px; object-fit: cover; transition: transform .2s ease; }
.selpt-gallery button:hover img { transform: scale(1.025); }
.selpt-media-section video { width: 100%; max-width: 100%; border-radius: 12px; }
.selpt-lightbox { width: min(1000px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 50px 14px 14px; border: 0; border-radius: 15px; background: #101418; }
.selpt-lightbox::backdrop { background: rgba(0, 0, 0, .76); }
.selpt-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 100px); margin: 0 auto; object-fit: contain; }
.selpt-lightbox > button { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 1.45rem; cursor: pointer; }

.selpt-admin-fields { max-width: 900px; }
.selpt-admin-fields label { display: grid; gap: 5px; }
.selpt-admin-fields input, .selpt-admin-fields select, .selpt-admin-fields textarea { width: 100%; max-width: 100%; }
.selpt-admin-approve { color: #41621b !important; font-weight: 700; }

@media (max-width: 920px) {
    .selpt-toolbar { grid-template-columns: 1fr 1fr; }
    .selpt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .selpt-existing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .selpt-single-hero { grid-template-columns: 1fr; }
    .selpt-single-cover { min-height: 200px; }
}

@media (max-width: 680px) {
    .selpt-head { align-items: flex-start; flex-direction: column; padding: 1.1rem; }
    .selpt-head-actions { width: 100%; }
    .selpt-head-actions .selpt-btn { flex: 1; }
    .selpt-toolbar { grid-template-columns: 1fr; }
    .selpt-result-line { text-align: left; }
    .selpt-grid { grid-template-columns: 1fr; }
    .selpt-stepper b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .selpt-form { padding: .9rem; }
    .selpt-field-row { grid-template-columns: 1fr; }
    .selpt-field-half { max-width: none; }
    .selpt-existing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .selpt-form-actions { grid-template-columns: 1fr 1fr; }
    .selpt-form-actions > span { display: none; }
    .selpt-form-actions .selpt-btn { width: 100%; }
    .selpt-moderation-item { grid-template-columns: 1fr; }
    .selpt-moderation-actions { align-items: stretch; flex-direction: column; }
    .selpt-moderation-actions .selpt-btn { width: 100%; }
    .selpt-single-layout { grid-template-columns: 1fr; }
    .selpt-gallery { grid-template-columns: 1fr; }
    .selpt-gallery img { height: auto; max-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
    .selpt-wrap *, .selpt-wrap *::before, .selpt-wrap *::after { scroll-behavior: auto !important; transition: none !important; }
}

