/* Crew Institut 2.36.5 — lisibilité complète du mode Jour.
   Cette feuille est chargée après tous les modules pour garantir le contraste
   des textes, boutons, champs et états interactifs sur chaque page. */

/* Bandeau volontairement foncé : tous ses contrôles restent blancs et distincts. */
.scp-root[data-ui-theme="light"] .scp-topbar{
  color:#fff;
  background:linear-gradient(90deg,#073d68,#075287 58%,#065c91);
  border-bottom-color:rgba(184,227,250,.38);
}
.scp-root[data-ui-theme="light"] .scp-topbar .scp-brand-copy strong{color:#fff!important}
.scp-root[data-ui-theme="light"] .scp-topbar .scp-brand-copy span{color:#d6e9f4!important}
.scp-root[data-ui-theme="light"] .scp-topbar .scp-btn,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-icon-btn,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-account-trigger,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-launcher-return,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-theme-toggle{
  color:#fff!important;
  background:#06466f!important;
  border-color:rgba(190,229,249,.46)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  opacity:1!important;
}
.scp-root[data-ui-theme="light"] .scp-topbar .scp-btn:hover,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-icon-btn:hover,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-account-trigger:hover,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-launcher-return:hover,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-theme-toggle:hover{
  color:#fff!important;
  background:#085b8d!important;
  border-color:#9fddfb!important;
}
.scp-root[data-ui-theme="light"] .scp-topbar .scp-btn svg,
.scp-root[data-ui-theme="light"] .scp-topbar .scp-icon-btn svg{color:#fff!important;stroke:currentColor}
.scp-root[data-ui-theme="light"] .scp-topbar .scp-offline-btn.is-ready{
  color:#eafff4!important;
  background:#176747!important;
  border-color:#78d9ad!important;
}
.scp-root[data-ui-theme="light"] .scp-topbar .scp-offline-btn.is-downloading{
  color:#fff7df!important;
  background:#75500f!important;
  border-color:#ffd27d!important;
}

/* Boutons et contrôles communs sur les surfaces claires. */
.scp-root[data-ui-theme="light"] .scp-btn-secondary,
.scp-root[data-ui-theme="light"] .scp-icon-btn:not(.scp-topbar .scp-icon-btn){
  color:#17384c!important;
  background:#fff!important;
  border-color:#a7bdca!important;
}
.scp-root[data-ui-theme="light"] .scp-btn-secondary:hover,
.scp-root[data-ui-theme="light"] .scp-icon-btn:not(.scp-topbar .scp-icon-btn):hover{
  color:#0b4f78!important;
  background:#eaf4f9!important;
  border-color:#3886ae!important;
}
.scp-root[data-ui-theme="light"] .scp-btn-primary,
.scp-root[data-ui-theme="light"] .scp-btn-game,
.scp-root[data-ui-theme="light"] .scp-btn-reglementarite,
.scp-root[data-ui-theme="light"] .scp-btn-apprentissage,
.scp-root[data-ui-theme="light"] .scp-btn-national,
.scp-root[data-ui-theme="light"] .scp-p7-launch{
  color:#fff!important;
}
.scp-root[data-ui-theme="light"] .scp-btn-danger{
  color:#8b2028!important;
  background:#fff1f2!important;
  border-color:#d98c92!important;
}
.scp-root[data-ui-theme="light"] .scp-btn:disabled,
.scp-root[data-ui-theme="light"] button:disabled{opacity:.62}
.scp-root[data-ui-theme="light"] button:focus-visible,
.scp-root[data-ui-theme="light"] input:focus-visible,
.scp-root[data-ui-theme="light"] select:focus-visible,
.scp-root[data-ui-theme="light"] textarea:focus-visible{
  outline:3px solid rgba(5,101,153,.52)!important;
  outline-offset:2px;
}

/* Navigation, formulaires et textes généraux. */
.scp-root[data-ui-theme="light"] .scp-nav-btn{color:#17384c}
.scp-root[data-ui-theme="light"] .scp-nav-btn:hover{background:#e7f2f7}
.scp-root[data-ui-theme="light"] .scp-nav-btn.is-active{color:#fff;background:linear-gradient(135deg,#08679e,#07507e)}
.scp-root[data-ui-theme="light"] .scp-nav-btn.is-active .scp-nav-text span{color:#d9edf8}
.scp-root[data-ui-theme="light"] .scp-nav-label{color:#4e6b7b}
.scp-root[data-ui-theme="light"] input::placeholder,
.scp-root[data-ui-theme="light"] textarea::placeholder{color:#687f8c;opacity:1}
.scp-root[data-ui-theme="light"] .scp-option{color:#17384c;border-color:#b8cbd5}
.scp-root[data-ui-theme="light"] .scp-option.is-selected{border-color:#1479ad;background:#e4f3fa}
.scp-root[data-ui-theme="light"] .scp-question-ref{color:#0b648f;background:#e5f3f9}
.scp-root[data-ui-theme="light"] .scp-question,
.scp-root[data-ui-theme="light"] .scp-score-ring strong,
.scp-root[data-ui-theme="light"] .scp-score-copy h2,
.scp-root[data-ui-theme="light"] .scp-mistake h3,
.scp-root[data-ui-theme="light"] .scp-review-card h3,
.scp-root[data-ui-theme="light"] .scp-history-row strong,
.scp-root[data-ui-theme="light"] .scp-gauge-head strong{color:#17384c}
.scp-root[data-ui-theme="light"] .scp-score-ring::before{background:#eef4f8}
.scp-root[data-ui-theme="light"] .scp-answer-wrong{color:#a3222b}
.scp-root[data-ui-theme="light"] .scp-answer-right{color:#13704f}
.scp-root[data-ui-theme="light"] .scp-progress-segments span,
.scp-root[data-ui-theme="light"] .scp-gauge-track,
.scp-root[data-ui-theme="light"] .scp-mini-progress{background:rgba(25,74,101,.14)}
.scp-root[data-ui-theme="light"] .scp-toast{color:#fff;background:#0b4b70;border-color:#8bd5f6}
.scp-root[data-ui-theme="light"] .scp-modal h2{color:#fff}

/* Veille réglementaire et fiches Flash. */
.scp-root[data-ui-theme="light"] .scp-flash-hero{
  background:radial-gradient(circle at 90% 10%,rgba(245,182,85,.19),transparent 28%),linear-gradient(125deg,#4d2330,#0c344b 54%,#081e2c);
  color:#fff;
}
.scp-root[data-ui-theme="light"] .scp-flash-hero h2{color:#fff}
.scp-root[data-ui-theme="light"] .scp-flash-hero p{color:#d2e0e8}
.scp-root[data-ui-theme="light"] .scp-flash-stat strong{color:#fff}
.scp-root[data-ui-theme="light"] .scp-flash-stat small{color:#c7d9e4}
.scp-root[data-ui-theme="light"] .scp-regwatch-select,
.scp-root[data-ui-theme="light"] .scp-regwatch-search input,
.scp-root[data-ui-theme="light"] .scp-flash-search input{color:#17384c!important}
.scp-root[data-ui-theme="light"] .scp-regwatch-unread,
.scp-root[data-ui-theme="light"] .scp-regwatch-ack{color:#294b5f;border-color:#b5c9d4}
.scp-root[data-ui-theme="light"] .scp-regwatch-title,
.scp-root[data-ui-theme="light"] .scp-regwatch-table time,
.scp-root[data-ui-theme="light"] .scp-regwatch-source-card strong{color:#17384c}
.scp-root[data-ui-theme="light"] .scp-regwatch-before,
.scp-root[data-ui-theme="light"] .scp-regwatch-change,
.scp-root[data-ui-theme="light"] .scp-regwatch-impact{color:#526d7c}
.scp-root[data-ui-theme="light"] .scp-regwatch-before b,
.scp-root[data-ui-theme="light"] .scp-regwatch-change b,
.scp-root[data-ui-theme="light"] .scp-regwatch-impact b{color:#17384c}

/* Tableau de bord et suivi Réglementarité. */
.scp-root[data-ui-theme="light"] .scp-reg-dash-ring-core strong,
.scp-root[data-ui-theme="light"] .scp-reg-dash-ring-copy strong,
.scp-root[data-ui-theme="light"] .scp-reg-dash-subtheme-head strong,
.scp-root[data-ui-theme="light"] .scp-reg-year-col>b,
.scp-root[data-ui-theme="light"] .scp-reg-subtheme-heading h3{color:#17384c!important}
.scp-root[data-ui-theme="light"] .scp-reg-ana-nav-btn{color:#526d7c}
.scp-root[data-ui-theme="light"] .scp-reg-ana-nav-btn:hover,
.scp-root[data-ui-theme="light"] .scp-reg-ana-nav-btn.is-active{color:#0b5c88}
.scp-root[data-ui-theme="light"] .scp-reg-ana-kpi>strong,
.scp-root[data-ui-theme="light"] .scp-reg-ana-home-score strong,
.scp-root[data-ui-theme="light"] .scp-reg-ana-month-cell strong,
.scp-root[data-ui-theme="light"] .scp-reg-ana-history-score strong,
.scp-root[data-ui-theme="light"] .scp-reg-progress-list-head,
.scp-root[data-ui-theme="light"] .scp-reg-progress-current strong,
.scp-root[data-ui-theme="light"] .scp-reg-progress-perfect-empty strong{color:#17384c}
.scp-root[data-ui-theme="light"] .scp-reg-ana-filterbar>strong,
.scp-root[data-ui-theme="light"] .scp-reg-ana-filter-chip.is-active,
.scp-root[data-ui-theme="light"] .scp-reg-ana-period-badge,
.scp-root[data-ui-theme="light"] .scp-reg-progress-details summary{color:#155f86}
.scp-root[data-ui-theme="light"] .scp-reg-ana-filter-chip{color:#526d7c;border-color:#b8cbd5}
.scp-root[data-ui-theme="light"] .scp-reg-ana-filter-chip.is-active{background:#e4f3fa;border-color:#4a98bc}

/* Séance personnalisée Réglementarité. */
.scp-root[data-ui-theme="light"] .scp-adaptive-option{
  color:#17384c;
  background:#f7fafc;
  border-color:#b7cad5;
}
.scp-root[data-ui-theme="light"] .scp-adaptive-option>span{color:#0c6593;background:#e3f2f8}
.scp-root[data-ui-theme="light"] .scp-adaptive-option:hover,
.scp-root[data-ui-theme="light"] .scp-adaptive-option:focus-visible,
.scp-root[data-ui-theme="light"] .scp-adaptive-option.is-selected{background:#e7f4fa;border-color:#3189b2}
.scp-root[data-ui-theme="light"] .scp-adaptive-question-meta strong,
.scp-root[data-ui-theme="light"] .scp-adaptive-summary-score strong,
.scp-root[data-ui-theme="light"] .scp-adaptive-case-feedback strong{color:#17384c}
.scp-root[data-ui-theme="light"] .scp-adaptive-case-feedback p,
.scp-root[data-ui-theme="light"] .scp-adaptive-rule-impact{color:#385a6d}

/* CRM et espaces immersifs. */
.scp-root[data-ui-theme="light"] .scp-crm-stat strong{color:#17384c}
.scp-root[data-ui-theme="light"] .scp-p7-live{color-scheme:dark;color:#dbe8f1}
.scp-root[data-ui-theme="light"] .scp-p7-live .scp-p7-hud-brand strong,
.scp-root[data-ui-theme="light"] .scp-p7-live .scp-p7-hud-clock strong,
.scp-root[data-ui-theme="light"] .scp-p7-live .scp-p7-event-panel h2{color:#fff}
.scp-root[data-ui-theme="light"] .scp-p7-live .scp-p7-event-body{color:#c5d5df}
.scp-root[data-ui-theme="light"] .scp-p7-live .scp-p7-option{color:#d8e7ef}
.scp-root[data-ui-theme="light"] .scp-p7-ready-lead,
.scp-root[data-ui-theme="light"] .scp-p7-audio-opt,
.scp-root[data-ui-theme="light"] .scp-p7-ready-disclaimer{color:#4f6979}
.scp-root[data-ui-theme="light"] .scp-p7-ready-rules>div,
.scp-root[data-ui-theme="light"] .scp-p7-dimension,
.scp-root[data-ui-theme="light"] .scp-p7-synthesis-metric{background:#f5f9fb}
.scp-root[data-ui-theme="light"] .scp-p7-dimension strong{color:#17384c}
.scp-root[data-ui-theme="light"] .scp-ref-select,
.scp-root[data-ui-theme="light"] .scp-ref-page-input,
.scp-root[data-ui-theme="light"] .scp-ref-notes{color:#17384c;background:#fff;border-color:#afc4cf}
.scp-root[data-ui-theme="light"] .scp-ref-scope{color:#526d7c}
.scp-root[data-ui-theme="light"] .scp-ref-scope.is-active{color:#0c5e89;background:#e4f3fa}

/* Les fenêtres de connexion, de compte et d’administration restent foncées. */
.scp-root[data-ui-theme="light"] .scp-modal{color-scheme:dark;color:#dbe8f1}
.scp-root[data-ui-theme="light"] .scp-modal p{color:#a9c0cf}
.scp-root[data-ui-theme="light"] .scp-modal .scp-btn-secondary{color:#fff!important;background:#123f58!important;border-color:rgba(255,255,255,.22)!important}
.scp-root[data-ui-theme="light"] .scp-auth-card .scp-btn-secondary,
.scp-root[data-ui-theme="light"] .scp-account-menu .scp-btn-secondary,
.scp-root[data-ui-theme="light"] .scp-admin-panel .scp-btn-secondary{color:#fff!important;background:#123f58!important;border-color:rgba(255,255,255,.22)!important}
.scp-root[data-ui-theme="light"] .scp-account-menu,
.scp-root[data-ui-theme="light"] .scp-account-menu strong,
.scp-root[data-ui-theme="light"] .scp-account-menu button,
.scp-root[data-ui-theme="light"] .scp-admin-panel{color:#fff}

/* Crew Institut 2.38.1 — confinement strict au viewport sur téléphone.
   `100vw` peut dépasser la zone réellement visible sur iOS lorsqu'un thème
   WordPress crée un containing block (transform/filter/contain). L'application
   est donc ancrée par ses quatre bords et tous ses conteneurs sont rétractables. */
@media (max-width:620px),
       (orientation:landscape) and (max-height:560px) and (max-width:950px){
  .scp-root{
    left:auto!important;
    right:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-inline:0!important;
    overflow-x:clip!important;
  }
  .scp-root:not(.is-launcher-open) .scp-app,
  .scp-launcher,
  .scp-auth-gate,
  .scp-flash-reader-section.is-expanded,
  .scp-ref-reader-page.is-expanded{
    inset-inline:0!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin-inline:0!important;
  }
  .scp-topbar,
  .scp-layout,
  .scp-main,
  .scp-main>*{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-inline:0;
  }
  .scp-root img,
  .scp-root video,
  .scp-root canvas,
  .scp-root iframe,
  .scp-root table{
    max-width:100%!important;
  }
  .scp-root h1,
  .scp-root h2,
  .scp-root h3,
  .scp-root p,
  .scp-root span,
  .scp-root strong,
  .scp-root button,
  .scp-root a{
    overflow-wrap:anywhere;
  }
}
