/* ── Reset ───────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(26, 64, 200, 0.28) 0%, transparent 60%),
    radial-gradient(rgba(77, 114, 255, 0.16) 1px, transparent 1px);
  background-size: 100% 800px, 22px 22px;
  background-repeat: no-repeat, repeat;
  color: var(--color-text);
  font-family: var(--font-sans);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ── Barre de navigation fixe (cohérente avec le Simulateur) ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid var(--color-border);
  background: rgba(4, 12, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 58px;
  padding: 0 var(--sp-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.site-header-nav a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: var(--text-sm2);
  transition: color 0.15s;
}

.site-header-nav a:hover {
  color: var(--color-text);
}

/* ── Hero ──────────────────────────────────────────────── */

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 107px var(--sp-9) var(--sp-11);
}

.logout-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-dim);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 5px 12px;
  transition: color 0.15s, border-color 0.15s;
}

.logout-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text-dim);
}

.nav-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.app-logo {
  margin-bottom: var(--sp-4);
}

.app-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}

.app-slogan {
  font-size: clamp(14px, 2vw, 17px);
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: var(--sp-11);
  max-width: 400px;
}

/* La recherche est intégrée dans le header ─────────── */

.app-header .search-container {
  width: 100%;
  max-width: 357px;
  margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────── */

.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-9);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-dim);
  font-size: var(--text-sm);
  z-index: 10;
}

.footer-accent { color: #4D72FF; }
.footer-sep { color: var(--color-border); }

/* ── Légende score ───────────────────────────────────── */

.score-legend {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  margin-top: var(--sp-3);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.score-legend-grades {
  white-space: nowrap;
}

/* ── Conteneur des résultats ─────────────────────────── */

.app-main {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 60px;
  padding: var(--sp-10) var(--sp-9) var(--sp-13);
}

/* ── En-tête entreprise ──────────────────────────────── */

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.company-identity {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ── Grille des cartes ───────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

/* ── Section actualités ──────────────────────────────── */

.news-section h3 {
  font-size: var(--text-base);
  margin-bottom: var(--sp-5);
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ── Responsive tablette ─────────────────────────────── */

@media (max-width: 768px) {
  .app-header {
    padding: 92px var(--sp-6) var(--sp-10);
  }

  .app-slogan {
    margin-bottom: var(--sp-9);
  }

  .app-main {
    padding: var(--sp-9) var(--sp-6) var(--sp-11);
  }
}

/* ── Responsive mobile ───────────────────────────────── */

@media (max-width: 480px) {
  .app-header {
    padding: 70px var(--sp-6) var(--sp-5);
  }

  .site-header-inner {
    gap: var(--sp-1);
    padding: 0 var(--sp-3);
  }

  .site-logo svg {
    width: 26px;
    height: 26px;
  }

  .site-logo-name {
    font-size: 12px;
  }

  .site-header-nav {
    gap: 6px;
  }

  .site-header-nav a {
    font-size: 11px;
  }

  .site-header-nav .logout-btn {
    padding: 4px 7px;
    font-size: 11px;
  }

  .nav-arrow {
    display: none;
  }

  .nav-logo {
    height: 24px;
  }

  .app-logo {
    margin-bottom: var(--sp-2);
  }

  .logo-svg {
    width: 40px;
    height: 40px;
  }

  .app-title {
    font-size: 20px;
    margin-bottom: var(--sp-1);
  }

  .app-slogan {
    margin-bottom: var(--sp-4);
    font-size: 12px;
  }

  .search-input {
    padding: 10px 14px 10px 40px;
    font-size: 14px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}
