/* Page d'accueil publique (racine du site, hors connexion obligatoire) */

.public-accueil {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #f0f4f8 0%, #e8eef5 40%, #fafbfc 100%);
  color: #1a1a2e;
}

.public-accueil-header {
  background: linear-gradient(
    90deg,
    #004080 0%,
    #1565c0 18%,
    #ffffff 50%,
    #ffffff 62%,
    #ff9999 82%,
    #c00000 100%
  );
  padding: 0.45rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.public-accueil-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-accueil-header .brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Même ordre de taille que la barre du portail connecté (portail-udsp-brand--header) */
.public-accueil-header .portail-udsp-brand--header {
  max-height: 28px;
  align-items: center;
}

/* Capsule claire : les boutons restent lisibles sur le dégradé bleu / blanc / rouge */
.public-accueil-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 64, 128, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.45rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.public-accueil-header .header-actions .public-accueil-header-btn {
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  line-height: 1.2;
  border-radius: 999px;
  white-space: nowrap;
}

.public-accueil-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

.public-accueil-hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.public-accueil-hero-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

/* Bleu « Portail », rouge « UDSP » — cohérent avec la marque (portail-brand.css) */
.public-accueil-hero-t-portail {
  background: linear-gradient(135deg, #004080 0%, #1565c0 55%, #0d47a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #004080;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .public-accueil-hero-t-portail {
    -webkit-text-fill-color: unset;
    color: #004080;
    background: none;
  }
}

.public-accueil-hero-t-udsp {
  color: #c8102e;
  -webkit-text-fill-color: #c8102e;
}

.public-accueil-hero .lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #37474f;
  max-width: 42rem;
  margin: 0 auto;
}

.public-accueil-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.public-accueil-feature {
  background: #fff;
  border-radius: 0.85rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(0, 64, 128, 0.12);
  box-shadow: 0 2px 10px rgba(0, 64, 128, 0.06);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.public-accueil-feature .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #004080 0%, #1565c0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.public-accueil-feature h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: #0d47a1;
}

.public-accueil-feature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #455a64;
}

.public-accueil-partner {
  margin-bottom: 2rem;
  text-align: center;
}

.public-accueil-partner-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0d47a1;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.public-accueil-partner-lead {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #546e7a;
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.public-accueil-partner-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.5rem 1rem;
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 64, 128, 0.14);
  box-shadow: 0 2px 12px rgba(0, 64, 128, 0.07);
}

.public-accueil-partner-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.public-accueil-partner-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #37474f;
  max-width: 22rem;
  line-height: 1.35;
}

.public-accueil-partner-site {
  margin-top: -0.15rem;
}

/* CSApp — même principe que Portail UDSP (icône + mot bicolore) */
.csapp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  line-height: 1.1;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  text-decoration: none !important;
  color: inherit;
}

.csapp-brand:hover {
  opacity: 0.9;
}

.csapp-brand:focus-visible {
  outline: 2px solid #1565c0;
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.csapp-brand-icon {
  flex-shrink: 0;
  font-size: 1.2em;
  line-height: 1;
  color: #004080;
}

.csapp-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.csapp-brand-t1 {
  color: #004080;
}

.csapp-brand-t2 {
  color: #c8102e;
  margin-left: 0.08em;
}

.csapp-brand--accueil-footer {
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  justify-content: center;
}

.public-accueil-footer {
  margin-top: auto;
  padding: 1.35rem 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #607d8b;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 244, 248, 0.9) 100%);
}

.public-accueil-footer-inner {
  max-width: 820px;
  margin: 0 auto;
}

.public-accueil-footer-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.75rem 2.75rem;
  margin-bottom: 1.1rem;
}

.public-accueil-footer-brand-col {
  flex: 1 1 240px;
  max-width: 320px;
  text-align: center;
}

.public-accueil-footer-brand-col .portail-udsp-brand--footer.public-accueil-footer-mark {
  font-size: 0.88rem;
}

.public-accueil-footer-desc {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #78909c;
}

.public-accueil-footer-note {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0, 64, 128, 0.1);
}

@media (max-width: 575.98px) {
  .public-accueil-header .inner {
    justify-content: center;
    text-align: center;
  }
}
