/* Compléments propres à l'implémentation Laravel/Blade. Aucun préprocesseur requis. */
.flash-message {
  position: relative;
  z-index: 40;
  width: min(calc(100% - 48px), var(--container));
  margin: 16px auto;
  padding: 14px 18px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 14px;
}

.flash-message.success { color: #185b3f; background: #edf9f3; border-color: #a8d9c3; }
.flash-message.error { color: #7b2929; background: #fff3f3; border-color: #e6b2b2; }
.flash-message ul { margin: 8px 0 0; padding-left: 20px; }
.logout-link { padding: 0; color: var(--navy-deep); background: transparent; border: 0; font-size: 12px; font-weight: 650; }
.header-actions form { margin: 0; }
.cookie-banner { display: none; }
.cookie-banner.visible { display: grid; }
.app-toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 360px; padding: 14px 18px; color: #fff; background: var(--navy-deep); border-left: 4px solid var(--gold); border-radius: 5px; box-shadow: 0 18px 48px rgba(4,20,47,.24); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; font-size: 12px; line-height: 1.5; }
.app-toast.visible { opacity: 1; transform: translateY(0); }
.screen-context-bar { color: #cbd8ee; background: #071f55; border-bottom: 1px solid rgba(255,255,255,.12); }
.screen-context-bar > div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.screen-context-bar span { color: var(--gold); font-family: var(--font-geist-mono); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.screen-context-bar a { font-size: 11px; font-weight: 700; }

.screen-index-hero {
  padding: 82px 0 72px;
  color: #fff;
  background: linear-gradient(118deg, var(--navy-deep), #0d3a89);
}
.screen-index-hero h1 { max-width: 850px; margin: 8px 0 14px; font-size: clamp(40px, 5vw, 70px); line-height: 1.04; }
.screen-index-hero p:last-child { max-width: 720px; margin: 0; color: #c8d6ef; line-height: 1.7; }
.route-group + .route-group { margin-top: 64px; }
.screen-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.screen-index-grid > a { min-height: 230px; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid #dce3ed; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.screen-index-grid > a:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(8,39,108,.10); }
.screen-index-grid span { color: #9a6a00; font-family: var(--font-geist-mono); font-size: 12px; font-weight: 800; }
.screen-index-grid h2 { margin: 28px 0 8px; color: var(--navy-deep); font-size: 19px; line-height: 1.35; }
.screen-index-grid p { margin: 0; color: #7c899b; font-family: var(--font-geist-mono); font-size: 10px; text-transform: uppercase; }
.screen-index-grid b { margin-top: auto; padding-top: 24px; color: var(--navy); font-size: 12px; }

.search-results-hero { min-height: 390px; }
.empty-state { display: grid; justify-items: start; gap: 10px; padding: clamp(30px, 7vw, 90px); background: #fff; border: 1px solid #dce3ed; }
.empty-state span { color: #946300; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.empty-state h2 { margin: 0; color: var(--navy-deep); font-size: clamp(24px, 4vw, 42px); }
.empty-state p { margin: 0 0 14px; color: #69778b; }

[data-form-status]:empty { display: none; }
.ui-success-message { padding: 12px 14px; color: #185b3f; background: #edf9f3; border-left: 3px solid #35a16d; }
.portal-muted { color: #6c798d; font-size: 12px; }
.portal-task { width: 100%; color: inherit; text-align: left; background: transparent; }
.full { width: 100%; }
.portal-inline-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.portal-profile-preview.tablette { max-width: 760px; margin-inline: auto; }
.portal-profile-preview.mobile { max-width: 390px; margin-inline: auto; grid-template-columns: 1fr; }
.portal-profile-preview.mobile .portal-profile-cover { min-height: 180px; }

/* Tablettes */
@media (max-width: 980px) {
  .screen-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-navigation.is-open { display: block; }
}

/* Mobiles */
@media (max-width: 650px) {
  .flash-message { width: min(calc(100% - 28px), var(--container)); }
  .screen-index-hero { padding: 60px 0 52px; }
  .screen-index-grid { grid-template-columns: 1fr; }
  .screen-index-grid > a { min-height: 190px; }
  .route-group + .route-group { margin-top: 44px; }
  .portal-inline-actions { flex-direction: column-reverse; }
  .portal-inline-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
