:root {
  --ih-navy: #0b1c30;
  --ih-navy-2: #0f2b48;
  --ih-blue: #025283;
  --ih-blue-2: #216293;
  --ih-tint: #eaf1ff;
  --ih-tint-2: #d3e4fe;
  --ih-border: #d2e4ff;
  --ih-ink: #101828;
  --ih-muted: #5c6b7d;
  --ih-green: #0f7a4d;
  --ih-amber: #ca8100;
  --ih-red: #93000a;
}

.public-portal { background: #f8f9ff; color: var(--ih-ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
.public-portal h1, .public-portal h2, .public-portal h3, .public-portal h4 { letter-spacing: -.01em; }

.public-utilitybar { background: var(--ih-navy); color: #b9c8dc; font-size: .78rem; padding: .4rem 0; }
.public-utilitybar a { color: #b9c8dc; text-decoration: none; }
.public-navbar { background: #fff; border-bottom: 1px solid #e7ecf5; }
.public-navbar .nav-link { color: #33455c; font-weight: 500; }
.public-navbar .nav-link:hover, .public-navbar .nav-link.active { color: var(--ih-blue); }
.brand-badge { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(145deg, var(--ih-blue-2), var(--ih-navy)); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.brand-sub { font-size: .68rem; letter-spacing: .06em; color: var(--ih-muted); text-transform: uppercase; }

.public-hero { background: radial-gradient(circle at 82% 18%, rgba(58,120,180,.35), transparent 55%), linear-gradient(160deg, var(--ih-navy) 0%, var(--ih-navy-2) 100%); color: #fff; padding: 3.5rem 0 4.5rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 30px; padding: .35rem .9rem; font-size: .82rem; color: #dce9ff; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c07a; display: inline-block; }
.public-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.18; }
.public-hero .lead { color: #b9c8dc; font-size: 1.05rem; max-width: 46ch; }
.btn-hero-primary { background: #fff; color: var(--ih-navy); font-weight: 600; border: none; }
.btn-hero-primary:hover { background: #dce9ff; color: var(--ih-navy); }
.btn-hero-outline { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.35); font-weight: 600; }
.btn-hero-outline:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-hero-ghost { background: transparent; color: #dce9ff; font-weight: 600; }
.hero-search { background: #fff; border-radius: 14px; padding: .4rem; box-shadow: 0 20px 45px rgba(0,0,0,.28); }
.hero-search input { border: none; }
.hero-search input:focus { box-shadow: none; }
.hero-trust { color: #9fb3cb; font-size: .85rem; }
.hero-photo-frame { border-radius: 20px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); position: relative; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-frame .carousel, .hero-photo-frame .carousel-inner, .hero-photo-frame .carousel-item { height: 100%; }
.hero-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 2.4rem; /* marge basse : la légende reste au-dessus des indicateurs */
  background: linear-gradient(to top, rgba(7,21,39,.85), transparent);
  color: #fff; font-weight: 700; font-size: .95rem;
}
.hero-photo-frame .carousel-indicators { margin-bottom: .6rem; z-index: 3; }
.hero-photo-frame .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; }

.section-pad { padding: 4rem 0; }
.bg-soft { background: var(--ih-tint); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: var(--ih-tint-2); color: var(--ih-blue); font-weight: 600; border-radius: 30px; padding: .3rem .85rem; font-size: .78rem; }
.eyebrow.eyebrow-alert { background: #ffe3e3; color: var(--ih-red); }
.section-title { font-weight: 800; color: var(--ih-navy); }
.section-lead { color: var(--ih-muted); max-width: 62ch; }

.profile-card { border-radius: 16px; background: #fff; box-shadow: 0 2px 14px rgba(15,23,42,.06); padding: 1.75rem 1.5rem; height: 100%; border-top: 4px solid transparent; }
.profile-card.usine { border-top-color: var(--ih-blue); }
.profile-card.technicien { border-top-color: var(--ih-green); }
.profile-card.fournisseur { border-top-color: var(--ih-amber); }
.profile-card .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ih-muted); }
.profile-card .icon-wrap { width: 44px; height: 44px; border-radius: 10px; background: var(--ih-tint); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--ih-blue); }
.profile-card ul { list-style: none; padding: 0; margin: .9rem 0; font-size: .88rem; color: #38455a; }
.profile-card ul li { padding: .28rem 0; display: flex; gap: .5rem; }
.profile-card ul li i { color: var(--ih-green); margin-top: .15rem; }
.profile-card .cta-link { font-weight: 700; text-decoration: none; }
.profile-card.usine .cta-link { color: var(--ih-blue); }
.profile-card.technicien .cta-link { color: var(--ih-green); }
.profile-card.fournisseur .cta-link { color: var(--ih-amber); }

.search-panel { background: #fff; border-radius: 18px; box-shadow: 0 10px 35px rgba(15,23,42,.08); padding: 1.75rem; }
.chip-pill { background: var(--ih-tint); color: var(--ih-blue-2); border-radius: 20px; padding: .35rem .85rem; font-size: .8rem; text-decoration: none; display: inline-block; }
.chip-pill:hover { background: var(--ih-tint-2); color: var(--ih-blue-2); }
.coverage-badge { background: var(--ih-tint-2); color: var(--ih-blue); font-weight: 600; font-size: .8rem; border-radius: 20px; padding: .35rem .9rem; }

.category-card { background: #fff; border-radius: 16px; padding: 1.4rem; height: 100%; box-shadow: 0 2px 12px rgba(15,23,42,.05); text-decoration: none; color: inherit; display: block; }
.category-card:hover { box-shadow: 0 10px 26px rgba(15,23,42,.1); color: inherit; }
.category-card .icon-wrap { width: 46px; height: 46px; border-radius: 10px; background: var(--ih-tint); display: inline-flex; align-items: center; justify-content: center; color: var(--ih-blue); font-size: 1.25rem; }
.category-card h6 { font-weight: 700; color: var(--ih-navy); }
.category-card p { color: var(--ih-muted); font-size: .86rem; }
.category-card .stat-line { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eef1f8; margin-top: .9rem; padding-top: .7rem; font-size: .78rem; }
.category-card .stat-line .count { color: var(--ih-green); font-weight: 700; }
.category-card .stat-line .tag { color: var(--ih-muted); }

.demande-card { border-radius: 16px; background: #fff; box-shadow: 0 2px 12px rgba(15,23,42,.06); padding: 1.3rem; height: 100%; border-top: 4px solid #cbd5e1; }
.demande-card.urgence-critique { border-top-color: var(--ih-red); }
.demande-card.urgence-haute { border-top-color: var(--ih-amber); }
.demande-card.urgence-normale { border-top-color: var(--ih-blue); }
.demande-card.urgence-faible { border-top-color: #9aa7b8; }
.status-pill { border-radius: 20px; padding: .25rem .7rem; font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.status-pill.ouverte { background: #e3f7ec; color: var(--ih-green); }
.status-pill.encours { background: #fff2da; color: var(--ih-amber); }
.status-pill.affectee { background: var(--ih-tint); color: var(--ih-blue); }
.tag-pill { background: #f1f4fa; color: #47536a; border-radius: 8px; padding: .2rem .55rem; font-size: .74rem; }

.stats-panel { background: #fff; border-radius: 22px; box-shadow: 0 15px 45px rgba(15,23,42,.08); padding: 2.75rem 2rem; }
.stat-block { text-align: center; background: var(--ih-tint); border-radius: 14px; padding: 1.5rem 1rem; }
.stat-block.stat-highlight { background: #e3f7ec; }
.stat-block .stat-number { font-size: 2.2rem; font-weight: 800; color: var(--ih-navy); }
.stat-block .stat-label { color: var(--ih-muted); font-weight: 600; font-size: .9rem; }

.step-card { background: #fff; border-radius: 14px; padding: 1.5rem; height: 100%; }
.step-number { width: 42px; height: 42px; border-radius: 10px; background: var(--ih-navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

.public-cta { background: var(--ih-navy); color: #fff; padding: 3.5rem 0; }
.public-cta h2 { font-weight: 800; }
.public-cta p { color: #b9c8dc; max-width: 52ch; }

.public-footer { background: #071527; color: #b9c8dc; }
.public-footer h6 { color: #fff; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.public-footer a { color: #b9c8dc; text-decoration: none; font-size: .9rem; }
.public-footer a:hover { color: #fff; }
.footer-badge { background: rgba(255,255,255,.08); border-radius: 20px; padding: .3rem .8rem; font-size: .78rem; }

@media (max-width: 767.98px) {
  .public-hero { padding: 2.5rem 0 3rem; }
  .stats-panel { padding: 1.75rem 1.25rem; }
}

/* Logo téléversé : remplace l'icône + le texte de marque (taille maîtrisée pour ne pas casser le menu) */
.brand-logo { height: 52px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.public-navbar .navbar-brand { flex: 0 0 auto; margin-right: 0; padding-top: 0; padding-bottom: 0; }
.public-navbar .navbar-collapse .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-logo { height: 44px; max-width: 150px; }
  .public-navbar .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .9rem; }
  .public-navbar .navbar-collapse .btn { font-size: .85rem; padding: .35rem .7rem; }
}
@media (max-width: 575.98px) { .brand-logo { height: 42px; max-width: 150px; } }
.footer-logo-wrap { display: inline-block; background: #fff; border-radius: 12px; padding: .5rem .75rem; margin-bottom: 1rem; }
.footer-logo { height: 64px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.login-logo { max-height: 90px; max-width: 100%; width: auto; object-fit: contain; }
