/* ============================================================
   APP.CSS — mise en page et composants spécifiques INNOPREV
   S'appuie sur les tokens définis dans design-system.css.
   ============================================================ */

/* --- Accessibilité : lien d'évitement ---------------------- */
.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 1080;
  background: var(--ip-petrol-900); color: #fff; padding: .5rem .9rem;
  border-radius: var(--ip-radius-sm);
}

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--ip-petrol-900);
  color: #fff;
  font-size: .875rem;
}
.topbar .container { padding-block: .4rem; }
.topbar__phone { color: #fff; text-decoration: none; display: inline-flex; gap: .5rem; align-items: baseline; }
.topbar__phone strong { color: #fff; }
.topbar__label { opacity: .8; }
.topbar__note  { opacity: .7; font-size: .8em; }
.topbar__cert  { opacity: .9; }
.topbar__cert strong { color: #fff; }

.site-nav {
  background: var(--ip-bg);
  border-bottom: 1px solid var(--ip-line);
  box-shadow: var(--ip-shadow-sm);
}
.navbar-brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark {
  font-family: var(--ip-font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: .02em;
  color: var(--ip-petrol-700);
}
.brand-baseline { font-size: .72rem; color: var(--ip-slate); letter-spacing: .03em; }

.site-nav .nav-link {
  font-family: var(--ip-font-display);
  font-weight: 600;
  color: var(--ip-ink);
  padding-inline: .85rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--ip-coral-600); }
.site-nav .dropdown-menu { border-color: var(--ip-line); box-shadow: var(--ip-shadow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--ip-petrol-900), var(--ip-petrol-700));
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero--compact { padding-block: clamp(2rem, 4vw, 3rem); }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: .5rem;
}
.hero__title {
  color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 24ch; margin-bottom: .75rem;
}
.hero__subtitle { color: rgba(255,255,255,.85); font-size: 1.125rem; max-width: 60ch; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--muted { background: var(--ip-bg-muted); }
.section--error { padding-block: 5rem; }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--ip-coral-600); margin-bottom: .35rem;
}
.section__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .25rem; }

/* Atouts */
.atout { padding-left: 1rem; border-left: 3px solid var(--ip-coral-600); }
.atout__title { color: var(--ip-petrol-700); }
.atout__text  { color: var(--ip-slate); }

/* Listes formation */
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ip-green-600); font-weight: 700;
}
.list-program { padding-left: 1.2rem; }
.list-program li { margin-bottom: .4rem; }

/* Carte info (sidebar formation / contact) */
.info-card {
  background: var(--ip-petrol-100);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
  padding: 1.5rem;
}
.info-card__title { color: var(--ip-petrol-700); text-transform: uppercase; letter-spacing: .08em; }
.info-list { margin: 0; }
.info-list dt { font-weight: 700; color: var(--ip-petrol-700); margin-top: .6rem; }
.info-list dd { margin: 0 0 .2rem; color: var(--ip-ink); }

/* Contenu éditorial */
.prose { color: var(--ip-ink); line-height: 1.7; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose a  { color: var(--ip-petrol-500); }

/* Fil d'Ariane */
.breadcrumb-wrap { background: var(--ip-bg-muted); border-bottom: 1px solid var(--ip-line); }
.breadcrumb-wrap .container { padding-block: .6rem; }
.breadcrumb { font-size: .875rem; }

/* État vide / erreur */
.empty-state { color: var(--ip-slate); text-align: center; padding: 2rem 0; }
.error-code { font-family: var(--ip-font-display); font-size: 5rem; font-weight: 700; color: var(--ip-coral-600); line-height: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ip-petrol-900);
  color: rgba(255,255,255,.85);
  padding-block: 3rem 1.5rem;
  margin-top: 0;
}
.footer-brand { font-family: var(--ip-font-display); font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: .1rem; }
.footer-baseline { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-phone { color: #fff; font-weight: 600; text-decoration: none; }
.footer-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-cert { color: #fff; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,.85); }
.footer-sep { border-color: rgba(255,255,255,.15); margin-block: 1.75rem 1rem; }
.footer-bottom { font-size: .85rem; color: rgba(255,255,255,.65); }
.footer-bottom a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   ACCESSIBILITÉ / MOTION
   ============================================================ */
:focus-visible { outline: 3px solid var(--ip-coral-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
