/* Refonte visuelle des espaces et formulaires : présentation seulement.
   Les états, les droits et les contrôles existants ne sont pas modifiés. */
:is(#screen-mine,#screen-partner,#screen-presse,#screen-admin,#dialog) {
  color:#173e30;
  font-family:var(--font-ui,"Plus Jakarta Sans",system-ui,sans-serif);
}
:is(#screen-mine,#screen-partner,#screen-presse,#screen-admin) :is(h1,h2,h3,h4),
#dialog :is(h2,h3,h4) {
  font-family:var(--font-ui,"Plus Jakarta Sans",system-ui,sans-serif);
  font-style:normal;
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.2;
  color:#173e30;
}
:is(#screen-mine,#screen-partner,#screen-presse,#screen-admin) :is(h1,h2,h3,h4) em {
  font-family:inherit;font-style:normal;font-weight:inherit;color:#287747;
}
:is(#screen-mine,#screen-partner,#screen-presse,#screen-admin)>h1 {
  font-size:clamp(2rem,3.4vw,3.5rem);
  line-height:1.08;
  margin-block:8px 24px;
}
:is(#screen-mine,#screen-partner,#screen-presse,#screen-admin) :is(button,input,select,textarea),
#dialog :is(button,input,select,textarea) {font-family:inherit}
:is(#screen-mine,#screen-partner,#screen-presse,#screen-admin,#dialog) :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid #6f51bd;outline-offset:3px;
}
/* Participant */
#screen-mine .space-welcome,
#screen-mine .space-priority,
#screen-mine .space-upcoming {
  border:1px solid #d9e8c4;border-radius:24px;background:#f0f8df;color:#173e30;
  box-shadow:0 5px 18px #173e3008;
}
#screen-mine .space-priority.needs-attention {background:#fff1e8;border-color:#f1d4c7}
#screen-mine .space-upcoming {background:#f1edfa;border-color:#e3dcf3}
#screen-mine .space-welcome :is(h2,h3),
#screen-mine .space-priority :is(h2,h3),
#screen-mine .space-upcoming :is(h2,h3) {font-size:clamp(1.2rem,2.2vw,1.7rem);margin-block:5px 8px}
#screen-mine .space-nav {gap:6px;border:1px solid #e3eadf;border-radius:18px;background:#f5f8f1;padding:5px}
#screen-mine .space-nav button {border:0;border-radius:13px;min-height:46px;padding:10px 14px;font-size:14px;font-weight:700}
#screen-mine .space-nav button[aria-pressed=true] {background:#fff;color:#173e30;box-shadow:0 2px 8px #173e3012}
#screen-mine :is(.space-record,.space-type-card,.space-setting,.space-overview-details,.saved-draft) {
  border:1px solid #e0eadd;border-radius:20px;background:#fff;box-shadow:0 5px 20px #173e3008;
}
#screen-mine .space-type-card {min-height:72px;padding:15px 17px}
#screen-mine .space-type-card:is(:hover,[aria-pressed=true],[aria-current=true]) {background:#f0f8df;border-color:#bed69e}
#screen-mine .space-overview-details {padding:0 18px}
#screen-mine .space-overview-details>summary {min-height:52px;cursor:pointer}
#screen-mine .space-record {padding:20px 22px}
#screen-mine .space-record h3 {font-size:1.12rem}
#screen-mine .space-badge {padding:6px 10px;font-size:12px;line-height:1.35;white-space:normal}
#screen-mine :is(.space-record-meta,.space-status-help,.space-details p,.space-bottom,.space-help-card p) {font-size:14px;line-height:1.55}
#screen-mine .space-count {background:#e5f3d7;color:#285c39;border-radius:99px}
#screen-mine .space-test {background:#eff6fb;color:#31596b;border-radius:14px;font-size:14px}
/* Partenaire : fiches, suivi et documents conservent leurs actions existantes. */
#screen-partner .partner-focus {border-radius:24px;border-color:#d9e8c4;background:#f0f8df;padding:24px}
#screen-partner .partner-focus-coral {background:#fff1e9;border-color:#f1d4c7}
#screen-partner .partner-focus-sun {background:#fff5df;border-color:#efe1bd}
#screen-partner .partner-focus h2 {font-size:clamp(1.35rem,2.4vw,1.8rem)}
#screen-partner .partner-tabs {border:1px solid #e2eadf;background:#f5f8f1;border-radius:17px;padding:5px}
#screen-partner .partner-tabs button {font-size:14px;font-weight:700;border-radius:12px}
#screen-partner .partner-tabs [aria-selected=true] {background:#fff;border-color:#dfe9dc;box-shadow:0 3px 12px #173e3010}
#screen-partner :is(.partner-checks,.partner-document-row,.partner-empty,.partner-documents-empty,.partner-faq,.partner-reference-docs,.partner-help-top) {
  border-radius:20px;border-color:#e0eadd;box-shadow:0 4px 18px #173e3008;
}
#screen-partner .partner-checks {background:#f6f9f1}
#screen-partner .partner-document-row {background:#fff}
#screen-partner :is(.partner-note,.partner-focus-text,.partner-pdf-help,.partner-document-copy p,.partner-faq p) {font-size:14px;line-height:1.55}
#screen-partner .partner-document-actions a {min-height:44px}
/* Presse : même famille visuelle sans altérer les fichiers ou les crédits. */
#screen-presse .press-intro {gap:24px}
#screen-presse .press-at-a-glance {border:1px solid #dce9cb;border-radius:24px;background:#f0f8df;box-shadow:0 5px 20px #173e3008}
#screen-presse :is(.press-resource-grid article,.press-timing-grid p,.press-contact,.press-private) {
  border-radius:22px;border-color:#e0eadd;
}
#screen-presse .press-resource-grid article {background:#fff;box-shadow:0 5px 20px #173e3008}
#screen-presse .press-contact {background:#eff7e1}
#screen-presse :is(.press-resource-grid p,.press-timing-grid p,.press-media p,.press-contact p) {font-size:15px;line-height:1.6}
/* Administration : files, dossiers et outils restent indépendants de l’habillage. */
#screen-admin .admin-intro {border:1px solid #dce9cb;border-radius:24px;background:#f0f8df}
#screen-admin :is(.admin-stat,.record-card,.admin-document,.admin-activity-row,.admin-quick,.admin-zero-queues,.admin-partner-tools) {
  border:1px solid #e0eadd;border-radius:20px;box-shadow:0 5px 20px #173e3008;
}
#screen-admin .admin-stat {background:#fff;color:#173e30;min-height:90px}
#screen-admin .admin-stat.has-pending {background:#f0f8df;border-color:#d6e6bd}
#screen-admin .admin-stat-icon {border-radius:14px;background:#e6f3d4}
#screen-admin .admin-stat-number {font-family:inherit;font-weight:800}
#screen-admin :is(.admin-queue-clear,.admin-partner-tools) {background:#f2f8e8;border-color:#dce9cb}
#screen-admin .admin-mobile-shortcuts button[aria-pressed=true] {background:#287747;color:#fff}
#screen-admin :is(.admin-list-heading p,.admin-activity-row p,.admin-record-details p) {font-size:14px;line-height:1.55}
/* Formulaires et fiches d’aperçu : tous les contrôles restent visibles. */
#dialog {border:0;border-radius:24px;background:#fcfdf9;color:#173e30;box-shadow:0 20px 70px #102b2140}
#dialog::backdrop {background:#102b2180}
#dialog .dialog-bar {background:#fcfdf9;border-color:#e3ebe0}
#dialog #dialog-body {padding:24px 26px calc(24px + env(safe-area-inset-bottom))}
#dialog #dialog-title {font-size:clamp(1.5rem,3vw,2rem);line-height:1.16}
#dialog :is(.form-grid label,.form-section label,.support-form label) {font-size:15px;line-height:1.45;color:#173e30}
#dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {
  min-height:48px;border:1px solid #bcd1bf;border-radius:14px;background:#fff;color:#173e30;font-size:16px;
}
#dialog textarea {min-height:100px}
#dialog :is(.form-help,.draft-tools-help,.draft-save-status,.submission-caption,.submission-private p) {font-size:14px;line-height:1.55;color:#4c6959}
#dialog .draft-tools {border:1px solid #dce9cb;border-radius:20px;background:#f0f8df}
#dialog .draft-private-pill {font-size:12px}
#dialog .submission-public-card {border:1px solid #e0eadd;border-radius:22px;box-shadow:0 5px 20px #173e3008}
#dialog .submission-private {border-radius:18px;background:#eff6fb;border-color:#dbeaf2}
#dialog :is(.button,.text-button,.submission-review-actions button,.draft-tools-actions button) {min-height:44px}
#dialog .form-feedback,#dialog .submission-review-feedback {font-size:14px;line-height:1.55}
@media(max-width:760px) {
  :is(#screen-mine,#screen-partner,#screen-presse,#screen-admin)>h1 {font-size:clamp(1.85rem,7vw,2.4rem);margin-block:6px 18px}
  #screen-mine :is(.space-welcome,.space-priority,.space-upcoming),#screen-partner .partner-focus {padding:18px;border-radius:20px}
  #screen-mine .space-nav {margin-block:18px;gap:3px;padding:4px}
  #screen-mine .space-nav button {padding:9px 10px;min-height:44px}
  #screen-mine .space-record {padding:17px}
  #screen-mine .space-overview-details {padding-inline:14px}
  #screen-partner .partner-tabs {max-width:100%}
  #screen-partner .partner-tabs button {padding:10px 14px;min-height:44px}
  #screen-admin :is(.admin-stat,.record-card,.admin-document,.admin-zero-queues) {border-radius:18px}
  #screen-admin .admin-stat {min-height:76px}
  #dialog {max-width:100%;border-radius:22px 22px 0 0}
  #dialog #dialog-body {padding:20px 18px calc(20px + env(safe-area-inset-bottom))}
  #dialog :is(.form-grid label,.form-section label,.support-form label) {font-size:14px}
  #dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {font-size:16px}
}
@media(max-width:760px) {
  :is(#screen-mine,#screen-partner,#screen-presse,#screen-admin) :is(small,.ref,.partner-kicker,.partner-status,.partner-private-tag,.space-kicker,.space-badge,.admin-kicker,.admin-status) {font-size:14px!important;letter-spacing:.025em}
  :is(#screen-mine,#screen-partner,#screen-presse,#screen-admin) :is(.button,.text-button,.space-nav button,.partner-tabs button,.admin-mobile-nav button) {font-size:14px}
  #dialog :is(small,.form-help,.draft-private-pill,.draft-tools-help,.draft-save-status,.step-navigation li,.form-steps span) {font-size:14px!important;line-height:1.45}
}
/* Le bloc presse avait initialement un fond foncé : ses textes doivent suivre le nouveau fond clair. */
#screen-presse .press-contact {color:#173e30}
#screen-presse .press-contact .eyebrow {color:#287747}

/* Press downloads stay distinct and easy to target at every width. */
#screen-presse .press-card > .text-button{display:flex;align-items:center;width:fit-content;min-height:44px;margin-top:.35rem}
