/* 
 * ========================================================================
 * FEUILLE DE STYLE PRINCIPALE (UI/UX)
 * ========================================================================
 * Ce fichier gère l'intégralité du design "Glassmorphism" de l'application.
 * L'architecture CSS suit une approche "Design System" propre :
 * 
 * 1. Variables CSS (:root) : Définition des couleurs (bleu dominant), de la typographie (Roboto) et des espacements.
 * 2. Utilitaires : Classes d'animation (fade-in), d'interaction (hover, focus) et de grille responsive.
 * 3. Composants : Cartes interactives, boutons, formulaires et le radar/cercle de résultats.
 * 
 * Note : Le préfixe "an-" (Acculturation Numérique) est utilisé sur toutes les classes
 * pour éviter les conflits si ce module est intégré dans un autre site web à l'avenir.
 */

:root {
  --an-font-body: "Roboto", "Segoe UI", sans-serif;
  --an-font-display: "Roboto", sans-serif;
  --an-font-mono: "Roboto", sans-serif;

  --an-background: #e9eef7;
  --an-background-strong: #dbe4f2;
  --an-surface: #f8fbff;
  --an-surface-soft: #f1f6ff;
  --an-surface-muted: #e4ecf9;
  --an-surface-raised: #ffffff;

  --an-ink: #1a2336;
  --an-ink-soft: #4e5f7a;
  --an-ink-muted: #7583a0;

  --an-border: #ced9ed;
  --an-border-strong: #b7c6e2;

  --an-primary: #1d56d8;
  --an-primary-strong: #1646b5;
  --an-primary-bright: #2d74ff;
  --an-primary-soft: #e5efff;
  --an-secondary: #1d9ccc;
  --an-success: #0f766e;
  --an-success-ink: #0b6159;
  --an-error: #b42318;
  --an-error-ink: #8b1911;
  --an-error-soft-ink: #7b2018;
  --an-white: #ffffff;

  --an-focus: rgba(29, 86, 216, 0.24);
  --an-burst-primary: rgba(29, 86, 216, 0.14);
  --an-burst-secondary: rgba(29, 156, 204, 0.12);
  --an-hero-burst-primary: rgba(29, 86, 216, 0.18);
  --an-hero-burst-secondary: rgba(29, 156, 204, 0.14);
  --an-hero-burst-tertiary: rgba(64, 128, 255, 0.1);
  --an-gradient-hero-end: rgba(248, 251, 255, 0.95);
  --an-primary-border-soft: rgba(22, 70, 181, 0.28);
  --an-primary-shadow: rgba(24, 79, 205, 0.24);
  --an-primary-shadow-hover: rgba(24, 79, 205, 0.3);
  --an-hero-shell-border: rgba(255, 255, 255, 0.55);
  --an-glass-surface: rgba(255, 255, 255, 0.74);
  --an-hero-float-border: rgba(255, 255, 255, 0.78);
  --an-hero-float-surface: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(239, 246, 255, 0.74));
  --an-hero-content-surface: linear-gradient(165deg, rgba(255, 255, 255, 0.68), rgba(247, 251, 255, 0.55));
  --an-hero-content-border: rgba(255, 255, 255, 0.76);
  --an-hero-metric-bg: rgba(255, 255, 255, 0.72);
  --an-hero-metric-border: rgba(175, 192, 223, 0.52);
  --an-primary-border-checked: rgba(29, 86, 216, 0.42);
  --an-ring-track: rgba(73, 96, 145, 0.16);
  --an-radar-fill: rgba(29, 86, 216, 0.18);
  --an-line-fill: rgba(29, 86, 216, 0.14);
  --an-alert-border: rgba(180, 35, 24, 0.24);
  --an-alert-bg: rgba(180, 35, 24, 0.05);
  --an-success-border: rgba(15, 118, 110, 0.25);
  --an-success-bg: rgba(15, 118, 110, 0.06);
  --an-error-border: rgba(180, 35, 24, 0.25);
  --an-error-bg: rgba(180, 35, 24, 0.06);
  --an-shadow-soft: 0 14px 36px rgba(20, 34, 64, 0.08);
  --an-shadow-card: 0 16px 44px rgba(17, 30, 57, 0.1);
  --an-shadow-float: 0 24px 56px rgba(10, 20, 44, 0.2);

  --an-radius-sm: 10px;
  --an-radius-md: 16px;
  --an-radius-lg: 26px;

  --an-gradient-hero: linear-gradient(160deg, rgba(29, 86, 216, 0.1), rgba(29, 156, 204, 0.06) 42%, var(--an-gradient-hero-end));
  --an-gradient-primary: linear-gradient(135deg, var(--an-primary), var(--an-primary-bright));
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input,
select,
textarea,
button,
option {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--an-font-body);
  background:
    radial-gradient(circle at 10% 10%, var(--an-hero-burst-primary), transparent 36%),
    radial-gradient(circle at 84% 18%, var(--an-hero-burst-secondary), transparent 42%),
    radial-gradient(circle at 50% 96%, var(--an-hero-burst-tertiary), transparent 45%),
    var(--an-gradient-hero);
  color: var(--an-ink);
  line-height: 1.58;
}

#an-diagnostic {
  --an-shell-pad-top: 64px;
  --an-shell-pad-x: 22px;
  --an-shell-pad-bottom: 110px;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--an-shell-pad-top) var(--an-shell-pad-x) var(--an-shell-pad-bottom);
}

#an-diagnostic [x-cloak] {
  display: none !important;
}

.an-section {
  margin-top: 24px;
}

.an-panel,
.an-card {
  border: 1px solid var(--an-border);
  border-radius: var(--an-radius-lg);
  background: var(--an-surface-raised);
  box-shadow: var(--an-shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.an-panel {
  position: relative;
  overflow: hidden;
}

.an-card {
  padding: clamp(20px, 2.6vw, 30px);
}

.an-grid {
  display: grid;
  gap: 20px;
}

.an-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.an-eyebrow {
  margin: 0 0 10px;
  font-family: var(--an-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--an-primary);
}

.an-title {
  margin: 0;
  font-family: var(--an-font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
  padding-bottom: 0.1em;
}

.an-lead {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 1.02rem;
  color: var(--an-ink-soft);
}

.an-card-title {
  margin: 0;
  font-size: clamp(1.34rem, 2.1vw, 1.78rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--an-ink);
}

.an-card-subtitle {
  margin: 10px 0 0;
  color: var(--an-ink-soft);
  font-size: 0.96rem;
  line-height: 1.58;
}

.an-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.an-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 22px;
  font-family: var(--an-font-body);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.an-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.an-btn-primary {
  background: var(--an-gradient-primary);
  border-color: var(--an-primary-border-soft);
  color: var(--an-white);
  box-shadow: 0 10px 22px var(--an-primary-shadow);
}

.an-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px var(--an-primary-shadow-hover);
}

.an-btn-secondary {
  background: var(--an-white);
  border: 1px solid transparent;
  color: var(--an-ink-soft);
}

.an-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: transparent;
  color: var(--an-ink);
}

.an-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--an-ink-soft);
  transition: color 0.15s ease;
}

.an-btn-ghost:hover {
  color: var(--an-ink);
  background: transparent;
}

.an-btn-ghost-primary {
  background: transparent;
  border-color: transparent;
  color: var(--an-ink);
  transition: color 0.15s ease;
}

.an-btn-ghost-primary:hover {
  color: var(--an-primary);
  background: transparent;
}

.an-btn:focus-visible,
.an-check input:focus-visible+span {
  outline: 3px solid var(--an-focus);
  outline-offset: 2px;
}

.an-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--an-shell-pad-top));
  margin-bottom: calc(-1 * var(--an-shell-pad-bottom));
  min-height: max(700px, 84vh);
  display: grid;
  place-items: center;
  padding: clamp(30px, 6vw, 76px);
  border: 0;
  border-radius: 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.an-hero::before,
.an-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.an-hero::before {
  display: none;
}

.an-hero::after {
  inset: 8% 24% auto;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(29, 86, 216, 0.22), transparent 72%);
  filter: blur(26px);
  z-index: 0;
}

.an-hero-fx {
  box-shadow: none;
}

.an-hero-content {
  position: relative;
  z-index: 3;
  max-width: min(900px, 95%);
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 0;
}

.an-hero-kicker {
  margin: 0;
  padding: 0;
  color: var(--an-primary-strong);
}

.an-hero .an-title {
  margin: 0;
  max-width: 18ch;
}

.an-hero-title-gradient {
  background: linear-gradient(180deg, #131d33 0%, #1f3157 72%, #455f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.an-hero .an-lead {
  margin: 0;
  max-width: 58ch;
  color: var(--an-ink-soft);
}

.an-hero-bg-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.an-hero-float {
  --an-repel-x: 0px;
  --an-repel-y: 0px;
  position: absolute;
  transform: translate3d(var(--an-repel-x), var(--an-repel-y), 0);
  transition: transform 130ms ease-out;
  pointer-events: none;
  will-change: transform;
  padding: 24px;
  margin: -24px;
}

.an-hero-float-inner {
  width: clamp(64px, 5.7vw, 86px);
  height: clamp(64px, 5.7vw, 86px);
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--an-hero-float-border);
  background: var(--an-hero-float-surface);
  box-shadow: var(--an-shadow-float);
  animation: an-float-drift var(--an-float-duration, 7.2s) ease-in-out var(--an-float-delay, 0s) infinite;
}

.an-hero-float-inner svg,
.an-hero-float-logo {
  width: clamp(29px, 2.9vw, 40px);
  height: clamp(29px, 2.9vw, 40px);
  display: block;
  object-fit: contain;
}

.an-hero-float--1 {
  top: 14%;
  left: 8%;
  --an-float-duration: 6.8s;
  --an-float-delay: -0.8s;
}

.an-hero-float--2 {
  top: 15%;
  right: 10%;
  --an-float-duration: 8.4s;
  --an-float-delay: -1.4s;
}

.an-hero-float--3 {
  top: 33%;
  left: 4%;
  --an-float-duration: 7.5s;
  --an-float-delay: -2.6s;
}

.an-hero-float--4 {
  top: 36%;
  right: 3%;
  --an-float-duration: 7.1s;
  --an-float-delay: -1.1s;
}

.an-hero-float--5 {
  top: 55%;
  left: 9%;
  --an-float-duration: 8.2s;
  --an-float-delay: -0.2s;
}

.an-hero-float--6 {
  top: 58%;
  right: 10%;
  --an-float-duration: 6.9s;
  --an-float-delay: -2.8s;
}

.an-hero-float--7 {
  top: 22%;
  left: 26%;
  --an-float-duration: 9s;
  --an-float-delay: -3.2s;
}

.an-hero-float--8 {
  top: 24%;
  right: 28%;
  --an-float-duration: 7.7s;
  --an-float-delay: -1.8s;
}

.an-hero-float--9 {
  bottom: 15%;
  left: 7%;
  --an-float-duration: 8.8s;
  --an-float-delay: -0.7s;
}

.an-hero-float--10 {
  bottom: 16%;
  right: 8%;
  --an-float-duration: 7.3s;
  --an-float-delay: -2.1s;
}

.an-hero-float--11 {
  bottom: 14%;
  left: 27%;
  --an-float-duration: 8.1s;
  --an-float-delay: -3.4s;
}

.an-hero-float--12 {
  bottom: 15%;
  right: 28%;
  --an-float-duration: 7.9s;
  --an-float-delay: -2.5s;
}

@keyframes an-float-drift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(4px, -8px, 0) rotate(2.5deg);
  }

  50% {
    transform: translate3d(-1px, -13px, 0) rotate(0deg);
  }

  75% {
    transform: translate3d(-4px, -6px, 0) rotate(-2.5deg);
  }
}

.an-hero-actions {
  justify-content: center;
}

.an-hero-cta {
  min-height: 52px;
  padding-inline: 32px;
  font-size: 1rem;
}

.an-hero-metrics {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.an-hero-metrics li {
  min-width: auto;
  padding: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.an-hero-metrics li::after {
  content: "•";
  margin-left: 4px;
  color: var(--an-ink-muted);
}

.an-hero-metrics li:last-child::after {
  content: none;
}

.an-hero-metrics strong {
  font-family: var(--an-font-display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--an-ink);
}

.an-hero-metrics span {
  font-size: 0.83rem;
  color: var(--an-ink-soft);
}

.an-stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.an-stepper-badge {
  padding: 0;
  padding-right: 8px;
  color: var(--an-ink-soft);
  font-family: var(--an-font-mono);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.an-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--an-border-strong);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.an-step-dot.active {
  background: var(--an-primary);
  transform: scale(1.22);
}

.an-card-questions {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.an-checklist {
  margin-top: 0px;
  display: grid;
  gap: 0px;
}

.an-checklist-legend {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 0px 0px 8px 0px;
  margin-top: 4px;
  border-bottom: 0;
}

.an-legend-options {
  display: grid;
  grid-template-columns: repeat(2, 80px);
  gap: 12px;
  text-align: center;
}

.an-legend-options span {
  font-family: var(--an-font-display);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--an-ink-muted);
}

.an-checklist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 12px 0px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.15s ease;
}

.an-checklist-label {
  font-size: 0.96rem;
  font-weight: 450;
  line-height: 1.45;
  color: var(--an-ink-soft);
  transition: color 0.15s ease;
}

.an-checklist-row:hover .an-checklist-label {
  color: var(--an-ink);
}

.an-checklist-options {
  display: grid;
  grid-template-columns: repeat(2, 80px);
  gap: 12px;
  justify-items: center;
}

.an-option-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.an-option-label {
  display: none;
}

.an-mini-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--an-border-strong);
  background: var(--an-white);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.an-mini-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.an-mini-box:hover {
  transform: scale(1.1);
  border-color: var(--an-primary);
}

/* Selected active checkbox (solid filling + checkmark indicator) */
.an-mini-box.active-box {
  border-color: var(--an-primary);
  background: var(--an-primary);
  box-shadow: 0 0 0 3px rgba(29, 86, 216, 0.2);
}

.an-mini-box.active-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--an-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .an-checklist-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--an-border-light);
  }
  .an-checklist-options {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    width: 100%;
    margin-top: 4px;
  }
  .an-checklist-legend {
    display: none;
  }
  .an-option-label {
    display: inline;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--an-ink-soft);
  }
}

.an-nav {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.an-results-shell {
  display: grid;
  gap: 18px;
}

.an-results-top {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.3fr auto;
  align-items: end;
}

.an-results-actions {
  justify-content: flex-end;
}

.an-pdf-only {
  display: none;
}

.an-results-summary {
  margin: 10px 0 0;
  color: var(--an-ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.an-results-meta {
  margin: 4px 0 0;
  color: var(--an-ink-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.an-bento-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 10px;
}

.an-bento-card {
  position: relative;
  min-height: 100%;
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--an-surface-raised);
  border: 1px solid var(--an-border);
  border-radius: var(--an-radius-lg);
  box-shadow:
    0 10px 30px -10px rgba(29, 86, 216, 0.05),
    0 16px 44px -8px rgba(17, 30, 57, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.an-bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--an-primary-bright);
  box-shadow:
    0 14px 36px -8px rgba(29, 86, 216, 0.08),
    0 20px 48px -6px rgba(17, 30, 57, 0.06);
}


.an-bento-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.an-bento-head::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--an-primary);
  flex-shrink: 0;
}

.an-bento-title {
  margin: 0;
  font-family: var(--an-font-display);
  font-weight: 800;
  color: var(--an-ink);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.an-bento-tag {
  border: 1px solid var(--an-border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.71rem;
  font-family: var(--an-font-mono);
  color: var(--an-ink-muted);
  background: var(--an-surface-soft);
  white-space: nowrap;
}

.an-bento-score {
  grid-column: span 4;
  grid-row: span 2;
  justify-content: flex-start;
}

.an-score-divider {
  height: 1px;
  background: rgba(29, 86, 216, 0.08);
  margin: 22px 0;
  width: 100%;
}

.an-score-priorities {
  text-align: left;
  width: 100%;
}

.an-score-priorities-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--an-ink-soft);
  margin-bottom: 12px;
}

.an-score-ring {
  --an-progress: 0;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  margin: 10px auto 20px;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--an-primary) calc(var(--an-progress) * 1%),
      rgba(29, 86, 216, 0.08) 0);
  box-shadow:
    0 10px 30px -10px rgba(29, 86, 216, 0.15),
    inset 0 0 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.an-score-ring::before {
  display: none;
}

.an-score-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 24px -6px rgba(29, 86, 216, 0.08),
    inset 0 4px 10px rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.an-score-ring span,
.an-score-ring small {
  position: relative;
  z-index: 2;
}

.an-score-ring span {
  font-family: var(--an-font-display);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  transform: translateY(28px);
  background: linear-gradient(135deg, var(--an-primary-strong), var(--an-primary-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.an-score-ring small {
  margin-top: -22px;
  transform: translateY(-8px);
  color: var(--an-ink-muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--an-font-mono);
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.an-avg-score {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--an-secondary);
  letter-spacing: 0.01em;
}

.an-score-meta {
  text-align: left;
  margin-top: 5px;
  width: 100%;
}

.an-score-meta strong {
  display: block;
  color: var(--an-ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-align: center;
}

.an-score-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--an-ink-soft);
  margin: 12px 0 0;
  font-weight: 500;
  text-align: left;
  max-width: 100%;
}


.an-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.an-badge {
  border: 1px solid var(--an-border);
  background: var(--an-surface-soft);
  color: var(--an-ink-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.an-bento-radar {
  grid-column: span 4;
}

.an-radar-svg {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 0;
  filter: drop-shadow(0 6px 16px rgba(29, 86, 216, 0.06));
}

.an-radar-ring {
  fill: none;
  stroke: rgba(29, 86, 216, 0.07);
  stroke-width: 1.25;
}

.an-radar-axis {
  fill: none;
  stroke: rgba(29, 86, 216, 0.09);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.an-radar-shape {
  fill: rgba(29, 86, 216, 0.28);
  stroke: var(--an-primary);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.an-radar-avg-shape {
  fill: rgba(29, 156, 204, 0.10);
  stroke: var(--an-secondary);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-dasharray: 5 3;
}

.an-radar-dot {
  fill: var(--an-primary);
  stroke: #ffffff;
  stroke-width: 1;
  transition: r 0.2s ease, stroke-width 0.2s ease, fill 0.2s ease;
  cursor: pointer;
}

.an-radar-dot:hover {
  r: 4.5;
  fill: var(--an-primary-strong);
}

.an-radar-label {
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--an-ink-soft);
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: var(--an-font-mono);
  letter-spacing: 0.02em;
}

.an-bento-bars {
  grid-column: span 4;
  justify-content: flex-start;
  align-self: start;
}

.an-bento-bars .an-bento-head {
  margin-bottom: 12px;
}

.an-bars {
  display: grid;
  gap: 14px;
  margin-top: 5px;
  width: 100%;
}

.an-bars-tight {
  margin-top: 0;
}

.an-bento-bars .an-bars {
  gap: 24px;
  margin-top: 2px;
}

.an-bar-row {
  display: grid;
  gap: 8px;
}

.an-bento-bars .an-bar-row {
  gap: 12px;
}

.an-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--an-ink-soft);
  letter-spacing: -0.01em;
}

.an-bar-label strong {
  font-family: var(--an-font-mono);
  color: var(--an-primary-strong);
  font-weight: 800;
  font-size: 0.86rem;
}

.an-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(73, 96, 145, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
}

.an-bar-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: rgba(29, 86, 216, 0.28);
  border: 1px solid var(--an-primary);
  box-sizing: border-box;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.an-bento-line {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.an-bar-chart-svg {
  width: 100%;
  height: auto;
  margin-top: auto;
  overflow: visible;
}

.an-barchart-rect {
  fill: rgba(29, 86, 216, 0.28);
  stroke: var(--an-primary);
  stroke-width: 1;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.an-barchart-rect:hover {
  opacity: 0.78;
}

.an-barchart-avg-rect {
  fill: rgba(29, 156, 204, 0.15);
  stroke: var(--an-secondary);
  stroke-width: 1;
  stroke-dasharray: 5 3;
}

.an-barchart-avg-value {
  fill: var(--an-secondary);
  font-size: 8px;
  font-weight: 700;
  font-family: var(--an-font-mono);
  text-anchor: middle;
  letter-spacing: 0.01em;
}

.an-barchart-value {
  fill: var(--an-primary-strong);
  font-size: 9px;
  font-weight: 800;
  font-family: var(--an-font-mono);
  text-anchor: middle;
  letter-spacing: 0.01em;
}

.an-barchart-label {
  fill: var(--an-ink-soft);
  font-size: 8.5px;
  font-weight: 700;
  font-family: var(--an-font-mono);
  text-anchor: middle;
  letter-spacing: 0.01em;
}

.an-bento-priority {
  grid-column: span 4;
}

.an-kpi-list {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.an-kpi-list li {
  position: relative;
  padding-left: 28px;
  color: var(--an-ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

.an-kpi-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--an-primary);
}

.an-score-priorities-block+.an-score-priorities-block {
  margin-top: 18px;
}

.an-callout {
  margin-top: 18px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: var(--an-radius-md);
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(180, 35, 24, 0.05) 0%, rgba(180, 35, 24, 0.02) 100%);
  box-shadow: 0 4px 15px rgba(180, 35, 24, 0.02);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.an-callout p {
  margin: 0;
  color: var(--an-error-soft-ink);
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 500;
}

.an-callout strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--an-error);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.an-bento-next {
  grid-column: span 12;
}

.an-bento-next .an-card-subtitle {
  margin-top: 0px;
  margin-bottom: 20px;
  font-size: 0.98rem;
  max-width: 78ch;
}

.an-tools-grid {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.an-tool-pill {
  border: 1px solid var(--an-border);
  border-radius: 16px;
  background: var(--an-surface-raised);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  color: var(--an-ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow:
    0 4px 10px rgba(29, 86, 216, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.an-tool-pill:hover {
  transform: translateY(-2px);
  border-color: var(--an-primary-bright);
  box-shadow:
    0 8px 18px rgba(29, 86, 216, 0.05);
  color: var(--an-primary-strong);
}


.an-tool-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.an-tool-pill:hover .an-tool-icon {
  transform: scale(1.08) rotate(2deg);
}

.an-tool-icon img {
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.an-tool-fallback {
  font-family: var(--an-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--an-primary);
  letter-spacing: -0.01em;
}

@media print {
  html,
  body {
    background: #ffffff;
  }

  #an-diagnostic {
    max-width: none;
    padding: 0;
  }

  .an-results-actions,
  .an-bento-next {
    display: none !important;
  }

  .an-panel,
  .an-card,
  .an-bento-card {
    box-shadow: none !important;
    border-color: #d7e0ef !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .an-results-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .an-bento-grid {
    gap: 14px;
    margin-top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-bento-score,
  .an-bento-radar,
  .an-bento-bars,
  .an-bento-line {
    grid-column: auto;
    grid-row: auto;
  }

  .an-fade-in {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .an-hero-float {
    transition: none;
  }

  .an-hero-float-inner {
    animation: none;
  }
}

@media (max-width: 1060px) {
  .an-hero {
    min-height: 650px;
    padding: 34px 20px;
  }

  .an-hero .an-title {
    max-width: 16ch;
  }

  .an-hero-content {
    max-width: min(760px, 95%);
    padding: 24px 20px;
  }

  .an-hero-float--1 {
    left: 4%;
  }

  .an-hero-float--2 {
    right: 5%;
  }

  .an-hero-float--3 {
    left: 1%;
  }

  .an-hero-float--4 {
    right: 1%;
  }

  .an-hero-float--7 {
    left: 18%;
  }

  .an-hero-float--8 {
    right: 20%;
  }

  .an-hero-float--11 {
    left: 21%;
  }

  .an-hero-float--12 {
    right: 21%;
  }

  .an-bento-score,
  .an-bento-radar,
  .an-bento-bars,
  .an-bento-priority {
    grid-column: span 6;
    grid-row: auto;
  }

  .an-bento-line,
  .an-bento-next {
    grid-column: span 12;
  }

  .an-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-results-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .an-results-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  #an-diagnostic {
    --an-shell-pad-top: 38px;
    --an-shell-pad-x: 16px;
    --an-shell-pad-bottom: 80px;
  }

  .an-hero {
    min-height: 580px;
    padding: 26px 16px;
  }

  .an-hero-content {
    padding: 0;
  }

  .an-hero .an-title {
    max-width: 14ch;
    font-size: clamp(1.98rem, 8.4vw, 2.9rem);
  }

  .an-hero .an-lead {
    font-size: 0.94rem;
  }

  .an-hero-float-inner {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .an-hero-float-inner svg,
  .an-hero-float-logo {
    width: 22px;
    height: 22px;
  }

  .an-hero-float--3,
  .an-hero-float--4,
  .an-hero-float--9,
  .an-hero-float--10 {
    display: none;
  }

  .an-hero-float--7 {
    top: 22%;
    left: 12%;
  }

  .an-hero-float--8 {
    top: 24%;
    right: 14%;
  }

  .an-hero-float--11 {
    bottom: 14%;
    left: 14%;
  }

  .an-hero-float--12 {
    bottom: 15%;
    right: 14%;
  }

  .an-grid-2,
  .an-bento-grid {
    grid-template-columns: 1fr;
  }

  .an-bento-score,
  .an-bento-radar,
  .an-bento-bars,
  .an-bento-line,
  .an-bento-priority,
  .an-bento-next {
    grid-column: auto;
  }

  .an-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .an-hero {
    min-height: 510px;
  }

  /* On ne garde que 4 icônes, une par coin, pour un rendu symétrique
     sans chevauchement sur petit écran (3, 4, 9, 10 déjà masquées à 820px). */
  .an-hero-float--7,
  .an-hero-float--8,
  .an-hero-float--11,
  .an-hero-float--12 {
    display: none;
  }

  .an-hero-float--1 {
    top: 9%;
    left: 6%;
  }

  .an-hero-float--2 {
    top: 11%;
    right: 6%;
  }

  .an-hero-float--5 {
    top: auto;
    bottom: 11%;
    left: 7%;
  }

  .an-hero-float--6 {
    top: auto;
    bottom: 12%;
    right: 7%;
  }

  .an-hero-content {
    padding: 0;
  }

  .an-hero .an-lead {
    font-size: 0.92rem;
  }

  .an-hero-metrics {
    justify-content: center;
  }

  .an-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .an-actions .an-btn {
    width: 100%;
  }

  .an-nav {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 12px;
  }

  .an-nav .an-btn {
    flex: 1;
    width: auto;
  }
}

/* Premium Entrance & Transition Animation */
@keyframes an-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.an-fade-in {
  animation: an-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
