/* ==========================================================================
   DIAGNOSTIC OPTI — STYLES V2 (Éditorial haut de gamme + Bento moderne)
   ========================================================================== */

:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --surface-soft: #f0eee7;
  --surface-banner: #ecebe4;
  --navy: #24374a;
  --navy-dark: #192938;
  --navy-card: #273c51;
  --gold: #d4af37;
  --gold-deep: #b89222;
  --gold-soft: #f7f1db;
  --ink: #172534;
  --ink-muted: #52606e;
  --border: #e5e2d9;
  --border-strong: #d5d1c6;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 12px rgba(23, 37, 52, 0.035);
  --shadow-md: 0 12px 32px rgba(23, 37, 52, 0.06);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
}

.serif-heading {
  font-family: var(--font-serif);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow-container {
  max-width: 720px;
}

.result-container {
  max-width: 780px;
}

/* ==========================================================================
   HEADER RAFFINÉ AVEC LIGNE FINE
   ========================================================================== */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 247, 243, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}

.brand-opti {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-strategies {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.24rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-subtle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* Boutons arrondis */
.btn {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.14s ease, background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary-pill {
  background-color: var(--navy);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(36, 55, 74, 0.18);
}

.btn-primary-pill:hover {
  background-color: var(--navy-dark);
}

.btn-primary-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-outline-pill {
  background-color: var(--surface);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
}

.btn-outline-pill:hover {
  border-color: var(--navy);
  background-color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  padding: 12px 18px;
  border-radius: 999px;
}

.btn-ghost:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

/* Cartes génériques */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   LANDING PAGE — HERO BENTO
   ========================================================================== */
.view {
  padding: 32px 0 68px;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.hero-main-card {
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 22px;
}

.gold-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 1.07rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 290px;
  line-height: 1.45;
}

/* Colonne droite Hero */
.hero-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview-dark-card {
  background: var(--navy-card);
  border-color: var(--navy-card);
  color: #f1f5f9;
  padding: 30px 32px;
  flex: 1;
}

.preview-title {
  margin: 0 0 22px;
  font-size: 1.55rem;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 600;
}

.preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
}

.preview-item-text p {
  margin: 3px 0 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.preview-step-heading {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.35;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gold-card {
  background: var(--gold);
  border-color: var(--gold);
  color: #192430;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
}

.gold-card-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.gold-card-text {
  margin: 18px 0 0;
  font-size: 0.88rem;
  line-height: 1.48;
  font-weight: 500;
}

.portrait-mini-card {
  background: var(--surface-soft);
  border-color: var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 185px;
  padding: 12px 10px 0;
}

.portrait-img {
  width: 100%;
  max-height: 195px;
  object-fit: contain;
  object-position: bottom center;
}

/* Section Ce que le bilan examine */
.section-examine {
  margin-top: 68px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-side-note {
  margin: 0;
  max-width: 340px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.four-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar-card {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
}

.num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 34px;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Section Votre guide */
.section-guide {
  margin-top: 52px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}

.guide-photo-card {
  position: relative;
  background: var(--surface-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 320px;
  padding: 24px 24px 0;
}

.guide-photo {
  max-height: 310px;
  object-fit: contain;
  object-position: bottom center;
}

.guide-name-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.guide-name-badge strong {
  font-size: 0.94rem;
  color: var(--ink);
}

.guide-name-badge span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.guide-text-card {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-heading {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.guide-bio {
  margin: 0;
  font-size: 1.03rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

/* Bandeau CTA bas */
.section-bottom-cta {
  margin-top: 44px;
}

.bottom-cta-banner {
  background: var(--surface-banner);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 46px;
}

.bottom-cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  letter-spacing: -0.015em;
}

.bottom-cta-banner p {
  margin: 0 0 26px;
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

/* ==========================================================================
   FORMULAIRE D'ENTRÉE & QUESTIONNAIRE
   ========================================================================== */
.flow-card {
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
}

.flow-title {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3vw, 2.3rem);
  line-height: 1.18;
  color: var(--ink);
}

.flow-lead {
  margin: 0 0 28px;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.91rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink);
}

.req {
  color: var(--gold-deep);
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(36, 55, 74, 0.1);
}

/* Bloc confidentialité + accordéon dépliable */
.privacy-block {
  margin: 22px 0 26px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.privacy-summary-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.58;
}

.privacy-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.privacy-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.privacy-details summary::-webkit-details-marker {
  display: none;
}

.privacy-details summary::before {
  content: "▸";
  font-size: 0.82rem;
  color: var(--navy);
  transition: transform 0.15s ease;
  display: inline-block;
}

.privacy-details[open] summary::before {
  transform: rotate(90deg);
}

.privacy-details p {
  margin: 10px 0 0;
  line-height: 1.6;
  color: #42505e;
}

.form-error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
}

.flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

/* Barre de progression dorée fine et élégante */
.quiz-progress-wrap {
  margin-bottom: 20px;
}

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 9px;
}

.progress-track {
  height: 5px;
  background: #e2dfd5;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
  transition: width 0.28s ease;
}

.multi-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7d6110;
  background: var(--gold-soft);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}

.quiz-question-title {
  margin: 0 0 24px;
  font-size: clamp(1.38rem, 2.5vw, 1.72rem);
  line-height: 1.32;
  color: var(--ink);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.option-item:hover {
  border-color: #b7c2cc;
  background: #fcfcfa;
}

.option-item.selected {
  border-color: var(--navy);
  background: #f2f5f8;
  box-shadow: 0 0 0 2px rgba(36, 55, 74, 0.08);
}

.option-key {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.option-item.selected .option-key {
  background: var(--navy);
  color: #ffffff;
}

.option-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #9aa6b2;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
}

.option-item.selected .option-check {
  background: var(--navy);
  border-color: var(--navy);
}

/* Chargement */
.loading-card {
  text-align: center;
  padding: 56px 32px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2dfd5;
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PAGE DE RÉSULTAT (BILAN)
   ========================================================================== */
.sync-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  background: #edf5ff;
  color: var(--navy);
  border: 1px solid #cfe0f5;
}

.sync-banner.success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.sync-banner.warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.result-main-card {
  padding: 42px 46px;
  box-shadow: var(--shadow-md);
}

.result-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 26px;
}

.result-brand-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.result-sub-kicker {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.result-date {
  font-weight: 500;
  color: var(--ink-muted);
}

.result-headline {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.result-section {
  margin-bottom: 24px;
}

.result-section-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}

.result-text {
  margin: 0;
  font-size: 1rem;
  color: #263442;
}

.result-text p {
  margin: 0 0 10px;
}

.result-text p:last-child {
  margin-bottom: 0;
}

.result-action-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 26px 0;
}

.action-steps-list {
  margin: 12px 0 12px 20px;
  padding: 0;
}

.action-steps-list li {
  margin-bottom: 8px;
}

/* Prochaine étape */
.result-next-step {
  margin: 28px 0;
  padding: 24px 26px;
  background: #f3f6f9;
  border: 1px solid #d7e0ea;
  border-radius: var(--radius-lg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.home-booking-note {
  margin-top: 12px !important;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.secondary-links {
  margin-top: 12px;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.inline-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--navy-dark);
}

/* Carnet des Marchés */
.carnet-card {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid #e6dbb8;
  background: #fdfaf0;
}

.carnet-card.discreet {
  background: var(--bg);
  border-color: var(--border);
  margin-top: 26px;
}

.carnet-card h3 {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carnet-card p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #334155;
}

.carnet-card p:last-child {
  margin-bottom: 0;
}

.bonus-label {
  color: var(--navy);
  font-weight: 800;
}

/* Retour utilisateur */
.result-feedback-box {
  margin: 26px 0 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.result-feedback-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.result-feedback-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* Case J+7 */
.j7-box {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
}

.j7-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.48;
}

.j7-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}

.j7-status {
  margin: 10px 0 0 32px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #065f46;
}

.j7-status.removed {
  color: var(--ink-muted);
}

.j7-status.error {
  color: #b91c1c;
}

.result-signature {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
}

.signature-avatar {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.signature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.14);
  transform-origin: center bottom;
}

.signature-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.signature-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.signature-company {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.signature-link {
  color: var(--ink-muted);
  text-decoration: none;
  align-self: flex-start;
}

.signature-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   FOOTER RAFFINÉ AVEC LIGNE FINE
   ========================================================================== */
.site-footer {
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-weight: 500;
  color: var(--ink-muted);
}

.footer-inner a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--navy);
}

/* ==========================================================================
   PANNEAU MODE TEST (?test=1 ou Ctrl+Shift+T)
   ========================================================================== */
.test-drawer {
  background: #102030;
  color: #e2e8f0;
  padding: 14px 0 18px;
  border-bottom: 3px solid var(--gold);
}

.test-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.test-badge {
  display: inline-block;
  background: var(--gold);
  color: #102030;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 8px;
}

.test-drawer-actions {
  display: flex;
  gap: 8px;
}

.btn-test-sm {
  background: #2b445e;
  color: #ffffff;
  border: 1px solid #486888;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-test-ghost {
  background: transparent;
}

.test-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.test-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.test-pill:hover {
  background: rgba(255, 255, 255, 0.13);
}

.test-pill.pass {
  border-left: 4px solid #34d399;
}

.test-pill.fail {
  border-left: 4px solid #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.test-pill strong {
  display: block;
  color: #ffffff;
  margin-bottom: 2px;
}

/* ==========================================================================
   RESPONSIVE & IMPRESSION
   ========================================================================== */
@media (max-width: 960px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }
  .four-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
html {
    font-size: 20px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .brand-opti {
    font-size: 1rem;
  }
  .brand-strategies {
    font-size: 1.1rem;
  }
  .site-header .btn-outline-pill {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .container {
    padding: 0 16px;
  }
  .hero-main-card,
  .flow-card,
  .result-main-card,
  .guide-text-card,
  .bottom-cta-banner {
    padding: 26px 20px;
  }
  .four-cards-grid,
  .hero-sub-grid {
    grid-template-columns: 1fr;
  }
  #header-actions-landing .header-subtle-label {
    display: none;
  }
  .flow-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .flow-actions .btn {
    width: 100%;
  }
}

@media print {
  body {
    background: #ffffff;
  }
  .no-print,
  .site-header,
  .test-drawer,
  .sync-banner {
    display: none !important;
  }
  .result-main-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.82em;
    color: #475569;
  }
  .signature-link::after {
    content: none !important;
  }
}
