/* Espace personnel Modèles et ajouts de gestion. */
.return-green{background:#27783e!important;color:#fff!important;border:1px solid #1e6031!important;text-decoration:none;white-space:nowrap}
.compact-header{gap:10px}.compact-header .header-purpose{margin-right:auto;text-align:left;flex:1}.compact-header nav{display:flex;gap:7px;align-items:center}.compact-header .brand{white-space:nowrap}
.model-confirmation{color:#ba1010!important;font-weight:800!important;border:2px solid #ba1010;background:#fff5f3;padding:10px;border-radius:7px}
#application>fieldset{margin:9px 0;padding:9px 12px}#application>fieldset details{margin:5px 0}#application>fieldset details summary{padding:6px}#application .consent-declaration{margin:8px 0}#sign-label{gap:5px}#sign-label+details{margin-bottom:0}
.model-space main{max-width:1000px;margin:auto;padding:16px}.model-space section,.model-admin-gallery{min-width:0}.model-space #model-login{max-width:540px;margin:auto}.model-space form{padding:14px;margin:12px 0}.model-space label{display:grid;gap:6px;margin:10px 0}.model-space input{width:100%;box-sizing:border-box}.model-space h1{font-size:1.65rem}.model-space h2{font-size:1.3rem}.model-space header nav{flex-wrap:wrap}.model-space section>section{margin:20px 0;padding-top:10px;border-top:1px solid #d9d0bf}.model-identity{background:#fff;border:1px solid #ccad68;border-radius:10px;padding:15px;overflow-wrap:anywhere}.model-identity h1{margin:0 0 8px}.model-identity p{margin:4px 0}.model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.model-grid figure{margin:0;min-width:0;overflow-wrap:anywhere}.model-grid img{width:100%;height:150px;object-fit:cover;border-radius:7px;display:block}.model-grid .model-open{border:0;padding:0;background:none;width:100%;cursor:zoom-in}.model-grid figcaption{font-size:.85rem;line-height:1.4;margin:4px 0}.model-grid label{font-size:.9rem;display:flex;align-items:center;gap:5px}.model-grid input[type=checkbox]{width:20px;height:20px}.model-grid a.button{display:block;font-size:.9rem;padding:7px;text-align:center}.model-bag{background:#f9f5e9;border-radius:10px;padding:14px!important}.model-bag.drop-active{outline:3px dashed #27783e}.model-actions{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.model-admin-gallery{border:1px solid #d4c69f;border-radius:8px;padding:12px;margin:15px 0}.model-admin-gallery form{padding:6px}.model-private-note{background:#fff6d7;padding:10px;border-radius:7px}.model-text-editor label{display:grid;gap:5px;margin:12px 0}.model-text-editor textarea{width:100%;min-height:64px;box-sizing:border-box}.model-space dl{display:grid;grid-template-columns:auto 1fr;gap:6px 15px}.model-space dt{font-weight:bold}.model-space dd{margin:0;overflow-wrap:anywhere}
.model-viewer{width:96vw;max-width:1400px;height:92dvh;max-height:92dvh;padding:0;background:#111;color:#fff;border:1px solid #8e7848;border-radius:8px;overflow:hidden}.model-viewer::backdrop{background:#000d}.model-viewer .model-viewer-bar{display:flex;align-items:center;gap:8px;padding:8px;flex-wrap:wrap}.model-viewer-stage{height:calc(100% - 105px);display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;position:relative}.model-viewer-stage img{max-width:100%;max-height:100%;object-fit:contain;user-select:none;transform-origin:center;pointer-events:none}.model-viewer-caption{font-size:13px;margin:5px 10px}.model-viewer button{min-height:38px;padding:6px 12px}.model-viewer .model-viewer-hint{font-size:13px;flex:1}
@media(max-width:600px){.compact-header{flex-wrap:wrap;padding:10px!important}.compact-header .brand{font-size:18px}.compact-header .header-purpose{font-size:12px}.compact-header nav{margin-left:auto}.compact-header nav a,.compact-header nav button{font-size:13px!important;padding:8px!important;min-height:38px}.model-space header>span{font-size:12px}.model-space main{padding:12px}.model-grid{gap:7px}.model-grid img{height:110px}.model-grid figcaption{font-size:12px}.model-grid .button{font-size:12px!important}.model-space dl{grid-template-columns:1fr;gap:3px}.model-space dd{margin-bottom:7px}.model-viewer-hint{flex-basis:100%!important}}
/* Bandeau Modèles : marque et titre, puis navigation, sans chevauchement. */

/* Formulaire compact : photos sur une ligne et blocs de fin rapprochés. */
#application .photo-slots{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
#application .photo-slot-choose{aspect-ratio:1/1!important;padding:4px!important;font-size:11px!important;line-height:1.2!important}
#application #photo-help{margin:2px 0 6px!important;font-size:12px!important}
#application #photo-count:empty{display:none!important}
#application>fieldset{margin:6px 0!important;padding:6px 9px!important}
#application>fieldset details{margin:3px 0!important;padding:4px!important}
#application>fieldset summary{margin:2px 0!important;padding:3px!important}
#application .consent-declaration{font-size:12px!important;line-height:1.3!important;margin:6px 0!important}
#application .model-confirmation{font-size:13px!important;line-height:1.3!important;margin:7px 0!important;padding:7px!important}
#send{width:100%;min-height:44px}

#application{padding-bottom:70px!important}
#application #send{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:936px;z-index:90;box-shadow:0 2px 12px #0004;background:#a67c32;color:#fff;font-weight:700}
#application .model-legal-info{margin:6px 0;padding:5px 8px}
#application .model-legal-info summary{font-size:12px}
#application .model-optional{margin:5px 0;padding:5px 8px}
#application .model-optional summary{font-size:12px}

#application .model-privacy-bottom{border:0;margin:4px 0;padding:0;background:transparent}#application .model-privacy-bottom>summary{font-size:11px;font-weight:400;text-decoration:underline;color:#75684e;padding:2px 0;cursor:pointer}#application .model-privacy-bottom>p{font-size:12px;line-height:1.4}
/* Saisie sur une ligne : densité compacte, dates comprises. */
body #application input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),body #application select{height:28px!important;min-height:28px!important;padding:3px 6px!important;font-size:14px!important;line-height:20px!important;border-radius:4px!important}
body #application label,body #application .availability-field>span{font-size:13px!important;line-height:1.2!important;gap:4px!important}
body #application .grid{gap:5px 9px!important;margin:5px 0!important}
body #application .age-field{gap:6px!important;margin:5px 0!important}
body #application .age-field input{width:128px!important}
body #application .availability-range{gap:5px!important}
body #application .availability-range label{gap:4px!important}
body #application .availability-range input{min-width:0!important;width:128px!important}
body #application .location-row{gap:8px!important}
body #application textarea{min-height:32px!important;height:32px;font-size:14px!important;line-height:20px!important;padding:4px 6px!important}
body #application .candidate-heading{margin:0 0 5px!important;font-size:19px!important}
body #application #model-number{padding:2px 6px!important;min-height:24px!important;font-size:13px!important}
body #application>.muted{margin:3px 0 6px!important;font-size:11px!important}
body #application .category-picker{padding:5px 7px!important;margin:5px 0!important}
body #application .category-checks label{min-height:28px!important;padding:5px 8px!important;font-size:13px!important}
body #application .photo-slot-choose{max-height:82px!important}

#application .model-signature-compact{margin:6px 0;padding:0}#application .model-signature-compact .consent-declaration{font-size:11px!important;font-weight:400!important;margin:4px 0!important}#application .model-authorization-bottom #authorization p{font-size:12px;line-height:1.4}

.return-fuchsia{background:#b21c80!important;color:#fff!important;border-color:#98176e!important;white-space:nowrap}
.model-help-dialog{max-width:640px;width:calc(100% - 24px);max-height:85dvh;overflow:auto;border:1px solid #bda16b;border-radius:10px;background:#f4f1eb;color:#25221d;padding:15px}
.model-help-dialog::backdrop{background:#000a}.model-help-dialog .intro h1{white-space:normal;font-size:20px}.model-help-dialog .intro p{font-size:14px;line-height:1.45}.model-help-dialog>button{float:right;margin:0 0 10px 10px}.model-help-dialog .intro{clear:both}

body.model-space>.compact-header{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:6px 10px!important;padding:10px 12px!important}
body.model-space>.compact-header>.brand{font-size:18px!important;line-height:1.2!important}
body.model-space>.compact-header>span{font-size:13px!important;line-height:1.2!important;white-space:normal!important}
body.model-space>.compact-header nav{grid-column:1/-1;display:flex!important;justify-content:flex-end!important;flex-wrap:wrap!important;margin:0!important;gap:6px!important}
body.model-space>.compact-header nav a{font-size:12px!important;padding:5px 8px!important;min-height:30px!important}
body.model-space #model-login h1{font-size:23px;margin:8px 0}
body.model-space #model-login p{font-size:13px;line-height:1.4;margin:6px 0}
body.model-space #model-access{padding:8px 0;margin:10px 0}
body.model-space #model-access label{font-size:13px;margin:6px 0;gap:4px}
body.model-space #model-access input{height:28px;min-height:28px;padding:3px 6px;font-size:14px;line-height:20px}
body.model-space #model-access button{background:#b21c80;color:#fff;font-size:13px;min-height:32px;padding:6px 10px}

body:not(.ns-model-management)>.compact-header nav .button,body:not(.ns-model-management)>.compact-header nav button{min-height:27px!important;height:27px!important;padding:3px 8px!important;font-size:12px!important;line-height:18px!important}
body:not(.ns-model-management)>.compact-header{padding:7px 10px!important;gap:5px 9px!important}

/* Formulaire compact et action avant les liens */
body #application{padding-bottom:10px!important}
body #application #send{position:static!important;transform:none!important;left:auto!important;bottom:auto!important;width:100%!important;min-height:32px!important;height:32px!important;margin-top:7px!important;padding:5px 10px!important;font-size:14px!important;box-shadow:none!important}
#application .model-bottom-links{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:5px 12px;margin-top:7px}
#application .model-bottom-links details{margin:0;padding:0}
#application .model-bottom-links details:last-child>summary{text-align:right}
#application .model-bottom-links details[open]{grid-column:1/-1}
#application .model-bottom-links summary{font-size:11px!important;line-height:1.2!important;margin:0!important;padding:2px 0!important}
#application #submit-status:empty{display:none}

#model-identity{padding:10px 12px!important}#model-identity h1{font-size:17px!important;margin:0 0 5px!important}#model-identity p{font-size:13px!important;line-height:1.25!important;margin:2px 0!important}#model-account>section{margin:9px 0!important;padding:0!important}#model-account h2{font-size:16px!important;margin:8px 0 5px!important}.model-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.model-grid figure{margin:0!important;min-width:0}.model-grid .model-open,.model-empty-slot{height:100px!important;width:100%!important;border:1px dashed #c7b587!important;border-radius:6px;background:#faf7ee}.model-grid .model-open img{height:100%!important;width:100%!important;object-fit:contain!important}.model-empty-slot{display:flex;align-items:center;justify-content:center;font-size:12px!important;padding:5px!important;box-sizing:border-box}.model-grid figcaption{display:none}#model-presentation{margin:8px 0}#model-account .model-bag{padding:8px!important;margin:9px 0!important}

body:not(.ns-model-management)>.compact-header,body.model-space>.compact-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;padding:8px 10px!important;gap:2px 10px!important;align-items:center!important}body:not(.ns-model-management)>.compact-header>.brand,body.model-space>.compact-header>.brand{grid-column:1!important;grid-row:1!important;font-size:25px!important;line-height:1.05!important;white-space:nowrap!important}body:not(.ns-model-management)>.compact-header>.header-purpose,body.model-space>.compact-header>span{grid-column:1!important;grid-row:2!important;font-family:"Segoe Script","URW Chancery L","Brush Script MT",cursive!important;font-size:20px!important;font-style:italic!important;font-weight:400!important;line-height:1.1!important;text-transform:none!important}body:not(.ns-model-management)>.compact-header nav,body.model-space>.compact-header nav{grid-column:2!important;grid-row:1/3!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;margin:0!important}body:not(.ns-model-management)>.compact-header nav a,body:not(.ns-model-management)>.compact-header nav button,body.model-space>.compact-header nav a,body.model-space>.compact-header nav button{font-size:11px!important;line-height:14px!important;padding:2px 7px!important;min-height:21px!important;height:21px!important;text-align:center!important}#model-chat{border-top:1px solid #d8cfba;padding-top:7px!important}#model-chat h2{font-size:16px}#model-chat textarea{width:100%;min-height:48px;font-size:14px;box-sizing:border-box}#model-chat form button,#model-password-setup button{min-height:27px;padding:3px 9px;font-size:12px}#model-chat p{font-size:12px;margin:6px 0}#model-password-setup{padding:7px 0}#model-password-setup input{height:28px;font-size:14px;padding:3px 5px}body.model-space #model-access input{max-width:240px;width:65%}body.model-space #model-access label{display:flex;align-items:center;gap:8px}.model-recovery{font-size:11px!important;background:transparent!important;color:#645a43!important;border:0!important;text-decoration:underline;padding:4px!important}

body.model-space #model-login{max-width:390px;margin:8px auto!important;padding:0 8px!important}body.model-space #model-login h1{font-size:19px!important;text-align:center!important;margin:8px 0 6px!important}body.model-space #model-login p:empty{display:none}body.model-space #model-access{margin:0!important;padding:0!important;display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}body.model-space #model-access label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;width:100%!important;margin:0!important;font-size:13px!important;text-align:left!important}body.model-space #model-access label input{flex:0 1 240px!important;width:65%!important;min-height:26px!important;height:26px!important;margin:0!important;padding:2px 5px!important;box-sizing:border-box!important}body.model-space #model-access>button{min-height:28px!important;height:28px!important;padding:3px 8px!important;font-size:12px!important}body.model-space #model-access #access-message{flex-basis:100%;margin:0!important}body.model-space #model-access .model-recovery{height:auto!important;font-size:11px!important}body:not(.ns-model-management)>.compact-header>.brand,body.model-space>.compact-header>.brand{font-size:27px!important;letter-spacing:.1px!important}body:not(.ns-model-management)>.compact-header>.header-purpose,body.model-space>.compact-header>span{font-size:27px!important}.compact-header .return-yellow,.compact-header #model-back{min-width:92px!important}#model-page-controls{margin-top:15px;padding:8px;border:1px solid #c5ae75}#model-page-controls fieldset{padding:5px;margin:5px 0;display:flex;gap:5px;flex-wrap:wrap}#model-page-controls fieldset input:first-of-type{width:100%}#model-page-controls input[type=color]{width:36px;height:25px;padding:0}#model-page-controls input[type=number]{width:55px;height:25px}#model-page-controls legend{font-size:12px}

body>.compact-header{display:grid!important;grid-template-columns:minmax(0,1fr) 96px!important;grid-template-rows:auto auto!important;gap:2px 8px!important;padding:7px 10px!important;align-items:center!important}body>.compact-header>.brand{grid-column:1!important;grid-row:1!important;font-size:27px!important;line-height:1.05!important;white-space:nowrap!important}body>.compact-header>.header-purpose,body>.compact-header>span{grid-column:1!important;grid-row:2!important;font-family:"Segoe Script","URW Chancery L","Brush Script MT",cursive!important;font-size:27px!important;font-style:italic!important;font-weight:400!important;line-height:1.1!important;text-align:left!important;white-space:nowrap!important}body>.compact-header nav{grid-column:2!important;grid-row:1/3!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;width:96px!important;gap:3px!important;margin:0!important}body>.compact-header nav a,body>.compact-header nav button{width:96px!important;min-width:0!important;max-width:96px!important;height:21px!important;min-height:21px!important;box-sizing:border-box!important;font-size:11px!important;line-height:14px!important;padding:2px 5px!important;text-align:center!important}body>.compact-header nav [hidden]{display:none!important}@media(max-width:350px){body>.compact-header>.brand{font-size:23px!important}body>.compact-header>.header-purpose,body>.compact-header>span{font-size:24px!important}}

#application input[name=password],#application input[name=passwordConfirm],#model-password-setup input{max-width:180px!important;width:52%!important;min-height:26px!important;height:26px!important;font-size:14px!important;padding:2px 5px!important}#model-password-setup label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:3px 0;font-size:13px}body.model-space #model-access input[name=password]{max-width:180px!important;flex:0 1 180px!important;width:52%!important}

@media(max-width:350px){body:not(.ns-model-management)>.compact-header>.brand,body.model-space>.compact-header>.brand,body.ns-model-management>.compact-header>.brand{font-size:22px!important}body:not(.ns-model-management)>.compact-header>.header-purpose,body.model-space>.compact-header>span,body.ns-model-management>.compact-header>.header-purpose{font-size:24px!important}}body>.compact-header nav a[href="/modeles.php"]{font-size:9px!important;white-space:nowrap!important}

body:not(.ns-model-management)>.compact-header nav,body.model-space>.compact-header nav,body.ns-model-management>.compact-header nav{width:112px!important;align-items:flex-end!important;gap:3px!important}body>.compact-header nav #model-help-open{order:1!important}body>.compact-header nav #model-back,body>.compact-header nav a[href="/"]{order:2!important}body>.compact-header nav #model-account-link,body>.compact-header nav #model-candidature-link{order:3!important;width:112px!important;min-width:112px!important;max-width:112px!important;height:28px!important;min-height:28px!important;font-size:12px!important;line-height:20px!important;padding:3px 7px!important;position:relative;z-index:2;pointer-events:auto!important}body.model-space #model-access label{display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;justify-content:initial!important}body.model-space #model-access label input[name]{width:100%!important;max-width:100%!important;margin:0!important;min-width:0!important}

body:not(.model-space)>footer{display:none!important}#application .message-field{margin-top:13px!important;margin-bottom:10px!important}#application .model-bottom-links{margin-top:13px!important;padding-bottom:3px!important}#application .category-picker{margin-bottom:3px!important}

/* Historique des échanges : liste chronologique, auteur et date. */
.model-message-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:10px;max-height:420px;overflow-y:auto}.model-message{border:1px solid #d5cdbd;border-left:4px solid #ad1989;border-radius:7px;padding:10px 12px;background:#fff}.model-message.from-photographer{border-left-color:#a98536;background:#fffaf0}.model-message-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;font-size:.9em}.model-message-meta time{color:#645e54}.model-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}

/* Deux rangées de trois emplacements au départ, puis extension automatique. */
#model-bag,#model-shooting{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Accroche sous le nom : agrandissement léger. */
body:not(.ns-model-management)>.compact-header>.header-purpose,body.model-space>.compact-header>span{font-size:31px!important}
@media(max-width:350px){body:not(.ns-model-management)>.compact-header>.header-purpose,body.model-space>.compact-header>span{font-size:27px!important}}

/* Valises compactes — 3 novembre 2026 */
#model-bag .model-open,#model-shooting .model-open,#model-bag .model-empty-slot,#model-shooting .model-empty-slot{height:78px!important;min-height:0!important;font-size:11px!important;padding:3px!important}#model-bag figure>a.button,#model-shooting figure>a.button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;box-sizing:border-box!important;min-height:25px!important;height:auto!important;margin:3px 0 0!important;padding:3px 4px!important;font-size:11px!important;line-height:1.15!important;border-radius:4px!important}#model-account .model-bag{padding:7px!important;margin:7px 0!important;min-height:0!important}#model-account .model-transfer-help{font-size:12px!important;line-height:1.3!important;margin:4px 0 7px!important}.model-direct-upload{margin:0!important;padding:0!important;min-height:0!important}.model-direct-upload p:empty{display:none!important}#model-account .model-receive-help{font-size:12px!important;line-height:1.3!important;margin:4px 0 7px!important}#model-access-loading{font-size:14px;text-align:center;margin:15px auto}#model-login[hidden]{display:none!important}
