/* Espace pro : portefeuille d'artistes (s'appuie sur les variables de style.css) */
.pro-narrow { max-width: 560px }
.pro-form { display: grid; gap: 16px; margin: 0 0 24px }
.pro-form label { display: grid; gap: 6px; font-weight: 700 }
.pro-form label small { font-weight: 400; opacity: .7 }
.pro-form input { font: inherit; padding: 12px 14px; border: 2px solid var(--ink); background: #fff; border-radius: 0 }
.pro-form .btn { justify-self: start; cursor: pointer }
.pro-error, .pro-ok, .pro-note { margin: 0 0 18px; padding: 12px 16px; border-left: 5px solid var(--ink); background: #fff }
.pro-error { border-color: #d62828; color: #8f1d1d }
.pro-ok { border-color: var(--green) }
.pro-note { font-size: .92rem; opacity: .85 }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer }
.inline-form { display: inline; margin: 0 }

.pro-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start }
.pro-layout:has(.pro-basket:not([hidden])) { grid-template-columns: 280px minmax(0, 1fr) 240px }
.pro-filters { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px }
.pro-search input { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--ink); background: #fff; border-radius: 0 }
.pro-filter-head { display: flex; justify-content: space-between; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem }
.pro-group { border-top: 1px solid var(--line); padding: 10px 0 }
.pro-group summary { cursor: pointer; font-weight: 700 }
.pro-opts { display: grid; gap: 6px; margin-top: 10px }
.pro-opts label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; font-size: .95rem }
.pro-opts i { margin-left: auto; font-style: normal; opacity: .5; font-size: .85rem }
.pro-opts input { accent-color: var(--accent) }

.pro-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 700 }
.pro-bar select { font: inherit; padding: 6px 8px; margin-left: 6px }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px }
.pro-card { background: #fff; border: 2px solid var(--ink); display: flex; flex-direction: column }
.pro-card[hidden] { display: none }
.pro-cover { position: relative; display: block; aspect-ratio: 4/3; background: var(--ink); overflow: hidden }
.pro-cover img { height: 100%; transition: transform .35s }
.pro-card:hover .pro-cover img { transform: scale(1.04) }
.pro-noimg { display: grid; place-items: center; height: 100%; color: var(--accent); font: 5rem 'Bebas Neue', sans-serif }
.pro-star { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-style: normal; font-weight: 700; font-size: .75rem; padding: 4px 10px; text-transform: uppercase }
.pro-card-body { padding: 16px; display: grid; gap: 8px; flex: 1; align-content: start }
.pro-card h3 { margin: 0; font: 1.9rem/1 'Bebas Neue', sans-serif }
.pro-card p { margin: 0; font-size: .95rem }
.pro-meta { opacity: .75 }
.pro-tags { display: flex; flex-wrap: wrap; gap: 6px }
.pro-tags span { background: var(--paper); border: 1px solid var(--line); padding: 3px 10px; font-size: .8rem; border-radius: 30px }
.pro-pick { justify-self: start; margin-top: 4px; background: none; border: 2px solid var(--ink); padding: 8px 14px; font: 700 .85rem 'DM Sans', sans-serif; cursor: pointer }
.pro-pick[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff }
.pro-dispo { font-weight: 700 }
.pro-dispo.d-dispo { color: #057a5a }
.pro-dispo.d-planning { color: #b36b00 }
.pro-dispo.d-complet { color: #a31d1d }
.pro-empty { padding: 40px 0; text-align: center; opacity: .75 }

.pro-basket { position: sticky; top: 90px; background: #fff; border: 2px solid var(--ink); padding: 16px; display: grid; gap: 10px }
.pro-basket ul { margin: 0; padding-left: 18px }
.pro-basket .btn { text-align: center }

.pro-artist { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start }
.pro-hero-img { max-height: 520px; margin-bottom: 20px; border: 2px solid var(--ink) }
.pro-artist-main h2 { font: 2.2rem/1 'Bebas Neue', sans-serif; margin: 28px 0 12px }
.pro-projects { padding-left: 20px }
.pro-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px }
.pro-gallery figure { margin: 0 }
.pro-gallery img { aspect-ratio: 1; cursor: zoom-in }
.pro-gallery figcaption { font-size: .85rem; opacity: .75; margin-top: 4px }
.pro-box { background: #fff; border: 2px solid var(--ink); padding: 20px; display: grid; gap: 12px; margin-bottom: 20px }
.pro-box h3, .pro-attr h3 { margin: 0; font: 1.4rem/1 'Bebas Neue', sans-serif }
.pro-box p { margin: 0 }
.pro-attr { margin-bottom: 18px }
.pro-attr .pro-tags { margin-top: 8px }
.pro-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 24px }
.pro-zoom[hidden] { display: none }
.pro-zoom img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain }
.pro-zoom button { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer }

@media (max-width: 980px) {
    .pro-layout, .pro-layout:has(.pro-basket:not([hidden])), .pro-artist { grid-template-columns: minmax(0, 1fr) }
    .pro-filters, .pro-basket { position: static; max-height: none }
}

/* Réglages d'affichage dans le thème du site */
.pro-space .page-hero.compact { min-height: 0; padding-top: 56px; padding-bottom: 44px }
.pro-space .page-hero.compact h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: 10px }
.pro-space .page-hero p { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 }
.pro-space .page-hero p a, .pro-space .page-hero .linklike { text-decoration: underline }
.pro-opts label { justify-content: flex-start; text-align: left; margin: 0; width: auto }
.pro-opts input[type=checkbox], .pro-pick { width: auto; flex: none }
.pro-form input[type=password], .pro-form input[type=email] { width: 100% }
.pro-inline-form { display: inline; margin: 0 }
.pro-demo-banner { margin: 0; padding: 12px 24px; background: var(--ink); color: #fff; text-align: center }
.pro-demo-banner a { color: #ffd166; text-decoration: underline }
.pro-basket[hidden], .pro-filters [hidden] { display: none !important }

/* Page de connexion */
.pro-login-wrap { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 420px); gap: 32px; justify-content: center; align-items: start;
    padding: 56px 24px 72px; background: var(--accent) }
.pro-login-card, .pro-login-side { background: #fff; border: 2px solid var(--ink); padding: 32px }
.pro-login-card h1 { font: clamp(2.6rem, 6vw, 3.6rem)/1 'Bebas Neue', sans-serif; margin: 6px 0 18px }
.pro-login-side { background: var(--ink); color: #fff }
.pro-login-side h2 { font: 2.4rem/1 'Bebas Neue', sans-serif; margin: 0 0 12px; color: #ffd166 }
.pro-login-side .btn-black { background: #fff; color: var(--ink) }
.pro-login-side .btn-ghost { color: #fff; border-color: #fff; margin: 0 6px 8px 0 }
.pro-login-card .pro-note { margin: 18px 0 0 }
@media (max-width: 900px) { .pro-login-wrap { grid-template-columns: minmax(0, 1fr); padding: 28px 16px 48px } }

/* Bandeau « J'ai déjà un compte » en haut de la page de vente */
.pro-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 10px 24px; background: var(--ink); color: #fff; font-size: .95rem }
.pro-topbar .btn { padding: 8px 16px; background: #ffd166; color: var(--ink); font-size: .85rem }
.pro-topbar { flex-wrap: wrap }
.pro-topbar .btn-line { background: transparent; color: #fff; border: 1px solid #fff }
.pro-topbar form { margin: 0 }
.pro-topbar button.btn { cursor: pointer; font-family: inherit }

/* Connexion : deux cartes de même taille, bien alignées */
.pro-login-wrap { grid-template-columns: repeat(2, minmax(0, 460px)); align-items: stretch; gap: 28px }
.pro-login-card, .pro-login-side { display: flex; flex-direction: column; padding: 36px }
.pro-login-card .pro-form { margin-bottom: 0 }
.pro-login-card .pro-form .btn { width: 100%; justify-self: stretch; text-align: center }
.pro-login-card .pro-note { margin-top: auto; padding-top: 18px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-left: 0 }
.pro-login-side p { margin: 0 0 16px }
.pro-login-side p:last-child { margin: auto 0 0; display: grid; gap: 10px }
.pro-login-side .btn { display: block; width: 100%; text-align: center; margin: 0 }
.pro-login-side .btn-black { background: #ffd166; color: var(--ink); border-color: #ffd166 }
.pro-login-side .btn-ghost { background: transparent; color: #fff; border: 1px solid #fff }
.pro-login-side .pro-side-cta { margin: auto 0 0; display: grid; gap: 10px }
@media (max-width: 900px) { .pro-login-wrap { grid-template-columns: minmax(0, 1fr) } }

/* ===== Barre pro, sélections, demandes ===== */
.pro-topbar { justify-content: space-between; gap: 10px 18px }
.pro-topnav { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto }
.pro-topbar .btn-line.is-on { background: #fff; color: var(--ink) }
.pro-badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 20px; background: #ff4d4d; color: #fff; font-style: normal; font-size: .75rem; text-align: center }
.btn-line-dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; font-family: inherit }
.pro-flash { margin: 0; padding: 12px 24px; background: #dff6ea; color: #0b5a3a; text-align: center; font-weight: 700 }

.pro-seltools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; padding: 18px 24px; background: #fff; border-bottom: 2px solid var(--ink) }
.pro-seltools p { margin: 0 }
.pro-seltools > div { display: flex; flex-wrap: wrap; gap: 8px }

.pro-pop { position: absolute; z-index: 300; background: #fff; border: 2px solid var(--ink); padding: 16px; box-shadow: 6px 6px 0 var(--ink); display: grid; gap: 10px; font-size: .95rem }
.pro-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 200px; overflow: auto }
.pro-pop label { display: flex; gap: 8px; align-items: center; cursor: pointer; margin: 0; width: auto }
.pro-pop input[type=checkbox] { width: auto; accent-color: var(--accent) }
.pro-pop-new { display: flex; gap: 6px }
.pro-pop-new input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 2px solid var(--ink) }
.pro-pop-new .btn { padding: 8px 12px }
.pro-pop-hint { margin: 0; opacity: .75 }
.pro-pop a { text-decoration: underline; font-size: .85rem }
.pro-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; opacity: 0; pointer-events: none; transition: .25s; z-index: 400 }
.pro-toast.on { opacity: 1; transform: translate(-50%, 0) }

.pro-sels { display: grid; gap: 24px }
.pro-empty-card { background: #fff; border: 2px solid var(--ink); padding: 36px; max-width: 640px }
.pro-empty-card h2 { font: 2rem/1 'Bebas Neue', sans-serif; margin: 0 0 10px }
.pro-sel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px }
.pro-sel-card { background: #fff; border: 2px solid var(--ink); display: flex; flex-direction: column }
.pro-sel-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 90px; background: var(--ink); min-height: 90px }
.pro-sel-thumbs img { height: 100% }
.pro-sel-thumbs span, .pro-sel-thumbs em { display: grid; place-items: center; color: var(--accent); font: 2.4rem 'Bebas Neue', sans-serif; font-style: normal }
.pro-sel-thumbs em { grid-column: 1 / -1; font: 1rem 'DM Sans', sans-serif; color: #fff; opacity: .7 }
.pro-sel-body { padding: 16px; display: grid; gap: 8px }
.pro-sel-body h3 { margin: 0; font: 1.9rem/1 'Bebas Neue', sans-serif }
.pro-sel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 }
.pro-sel-actions.small { gap: 14px; font-size: .9rem }

.pro-request { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start }
.pro-request-form { max-width: none }
.pro-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px }
.pro-choices legend { font-weight: 700; margin-bottom: 8px }
.pro-choice { display: flex !important; gap: 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--ink); background: #fff; cursor: pointer }
.pro-choice:has(input:checked) { background: var(--ink); color: #fff }
.pro-choice input { width: auto; accent-color: var(--accent) }
.pro-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.pro-form textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--ink); background: #fff; border-radius: 0; width: 100% }
.pro-req-artists { margin: 0 0 12px; padding-left: 18px }
@media (max-width: 900px) { .pro-request { grid-template-columns: minmax(0, 1fr) } .pro-two { grid-template-columns: 1fr } }

.pro-req-list { display: grid; gap: 12px }
.pro-req-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #fff; border: 2px solid var(--ink); padding: 16px 20px }
.pro-req-row.is-new { box-shadow: 6px 6px 0 var(--accent) }
.pro-req-main { display: grid; gap: 4px; min-width: 0 }
.pro-req-main small { opacity: .7 }
.pro-req-main em { font-style: normal; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pro-req-status { font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 30px; background: var(--paper); border: 1px solid var(--line); white-space: nowrap }
.pro-req-status.s-nouvelle { background: #fff1d6 }
.pro-req-status.s-en_cours { background: #e0ecff }
.pro-req-status.s-repondue { background: #dff6ea }
.pro-req-status.s-close { background: #eee }
.pro-thread { display: grid; gap: 14px; margin-bottom: 24px }
.pro-msg { padding: 14px 18px; border: 2px solid var(--ink); background: #fff; max-width: 92% }
.pro-msg.is-team { background: #f3e8ff; margin-left: auto }
.pro-msg header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px }
.pro-msg p { margin: 0 }
.pro-contacts { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--ink); display: grid; gap: 8px }
.pro-contact { display: grid; gap: 2px }
.pro-contact a { text-decoration: underline }
