:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --ink: #071439;
  --black: #111111;
  --muted: #6b665d;
  --line: #e2ded2;
  --accent: #1f4dff;
  --accent-2: #05c8f7;
  --accent-dark: #071f83;
  --soft: #eaf0ff;
  --danger: #b42318;
  --ok: #0f7b4b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--black); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 5vw; background: rgba(255,253,248,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; min-width: 210px; }
.brand-logo { display: block; height: 44px; width: auto; max-width: 250px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: white; font-size: 14px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.nav a, .link-button { font-weight: 650; color: #222; }
.nav a:hover, .link-button:hover { color: var(--accent); }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: none; font: inherit; cursor: pointer; padding: 0; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: white; }
main { min-height: 70vh; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 56px; padding: 90px 5vw 72px; align-items: center; }
.hero-lexia { background:
    radial-gradient(circle at 74% 24%, rgba(31,77,255,.10), transparent 28%),
    radial-gradient(circle at 88% 62%, rgba(5,200,247,.10), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #f6f4ef 100%);
}
.eyebrow { color: var(--accent); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; font-size: 12px; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 6.6vw, 84px); line-height: .94; letter-spacing: -.075em; margin: 0 0 24px; color: #111; max-width: 980px; }
h2 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -.055em; line-height: 1; margin: 0 0 18px; color: #111; }
h3 { margin-top: 26px; }
.lead, .section-lead { font-size: clamp(18px, 2vw, 23px); color: var(--muted); max-width: 820px; }
.section-lead { margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 22px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; font-weight: 900; cursor: pointer; transition: .15s ease; box-shadow: 0 12px 28px rgba(31,77,255,.18); }
.btn:hover { transform: translateY(-1px); filter: brightness(.98); }
.btn.secondary { background: var(--paper); color: var(--black); border: 1px solid var(--line); box-shadow: none; }
.btn.secondary:hover { background: var(--soft); }
.btn.small { padding: 9px 15px; font-size: 14px; }
.danger { border: 0; background: var(--danger); color: white; padding: 11px 16px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.stats-card { background: linear-gradient(145deg, #ffffff, #eef4ff); border: 1px solid #dbe5ff; border-radius: 30px; padding: 34px; box-shadow: 0 30px 80px rgba(7,20,57,.10); }
.stat-number { display: block; font-size: 72px; line-height: .85; font-weight: 950; letter-spacing: -.09em; color: #0a1029; }
.stat-label { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stats-grid div { background: rgba(255,255,255,.78); border-radius: 20px; padding: 17px; }
.stats-grid strong { display: block; font-size: 28px; color: #0a1029; }
.stats-grid small { color: var(--muted); }
.section { padding: 66px 5vw; }
.section.narrow { max-width: 900px; margin: 0 auto; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card, .form-card, .result-card, .price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 25px; box-shadow: 0 12px 34px rgba(20,20,20,.045); }
.card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.level-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 24px; min-height: 270px; box-shadow: 0 16px 40px rgba(20,20,20,.045); transition: transform .16s ease, border-color .16s ease; }
.level-card:hover { transform: translateY(-3px); border-color: rgba(31,77,255,.38); }
.level-card span { display: inline-flex; width: 42px; height: 42px; border-radius: 999px; align-items: center; justify-content: center; background: #0a1029; color: white; font-weight: 900; margin-bottom: 22px; }
.level-card h3 { font-size: 22px; line-height: 1.05; margin: 0 0 12px; color: #111; }
.level-card p { color: var(--muted); margin: 0; }
.level-card.featured { border-color: var(--accent); background: linear-gradient(180deg, #fff, #eef4ff); }
.search-highlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center; background: #10182f; color: white; }
.search-highlight h2, .search-highlight .lead { color: white; }
.search-highlight .lead { opacity: .78; }
.quick-search-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: 28px; }
.quick-search-box p { margin-top: 0; font-weight: 900; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.chips a, .app-tags span { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: #111; }
.search-highlight .chips a { background: rgba(255,255,255,.10); color: white; border-color: rgba(255,255,255,.18); }
.form-card { display: grid; gap: 18px; }
.form-card label, .compact-form label { display: grid; gap: 7px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; font: inherit; background: white; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.checkbox-row { display: flex; gap: 20px; flex-wrap: wrap; }
.checkbox-row label { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.alert { padding: 14px 16px; border-radius: 14px; background: var(--soft); border: 1px solid #c8d5ff; margin: 15px 0; }
.alert.error { background: #fff1f0; border-color: #ffccc7; color: var(--danger); }
.search-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 20px 0; }
.result-list { display: grid; gap: 24px; }
.result-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.result-head h2 { margin: 4px 0 0; font-size: 34px; }
.rank { color: var(--accent); font-weight: 900; }
.score { min-width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.score small { font-size: 12px; opacity: .75; margin-left: 2px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.meta-grid div { background: #f7f6f1; padding: 14px; border-radius: 16px; }
.meta-grid strong, .meta-grid span { display: block; }
.meta-grid span { color: var(--muted); margin-top: 4px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 16px 50px rgba(31,77,255,.12); }
.price { font-size: 42px; font-weight: 900; letter-spacing: -.06em; margin: 12px 0; }
.price small { font-size: 16px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin: 16px 0 28px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f6f1; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.compact-form { display: grid; gap: 10px; }
.site-footer { padding: 32px 5vw; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); }
code { white-space: pre-wrap; }
@media (max-width: 1100px) {
  .level-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .brand-logo { height: 38px; max-width: 220px; }
  .hero, .cards.three, .cards.two, .pricing-grid, .form-grid, .meta-grid, .search-highlight { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
}

/* Results page premium layout */
.results-page { padding-top: 52px; }
.results-hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: stretch; margin-bottom: 28px; }
.results-page h1 { font-size: clamp(44px, 5.2vw, 70px); max-width: 920px; margin-bottom: 14px; }
.results-page .lead { max-width: 760px; }
.results-panel { background: linear-gradient(145deg, #ffffff, #eef4ff); border: 1px solid #dbe5ff; border-radius: 26px; padding: 26px; box-shadow: 0 24px 70px rgba(7,20,57,.08); }
.results-panel strong { display: block; font-size: 40px; line-height: 1; color: var(--ink); letter-spacing: -.06em; margin-bottom: 6px; }
.results-panel span { color: var(--muted); }
.search-summary.results-summary { border-radius: 22px; padding: 22px 24px; margin: 0 0 26px; background: var(--paper); box-shadow: 0 12px 34px rgba(20,20,20,.04); }
.results-summary small { display: block; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 900; margin-bottom: 8px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.result-card.premium-result { position: relative; overflow: hidden; padding: 0; border-radius: 28px; }
.result-card.premium-result::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.result-top { padding: 26px 26px 18px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.result-title-block h2 { font-size: clamp(26px, 2.2vw, 38px); margin: 8px 0 10px; line-height: 1; }
.result-description { margin: 0; color: var(--muted); max-width: 720px; }
.score-badge { min-width: 82px; height: 82px; border-radius: 28px; background: #071439; color: white; display: grid; place-items: center; text-align: center; font-weight: 950; box-shadow: 0 16px 36px rgba(7,20,57,.16); }
.score-badge strong { font-size: 28px; line-height: 1; display: block; }
.score-badge small { display: block; font-size: 11px; opacity: .78; margin-top: 3px; }
.result-body { padding: 22px 26px 26px; }
.result-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .10em; color: var(--accent); font-weight: 950; margin: 24px 0 10px; }
.result-reasons, .workflow-list { margin: 0; padding-left: 20px; color: #222; }
.result-reasons li, .workflow-list li { margin: 6px 0; }
.meta-grid.result-meta { grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0 0 18px; }
.meta-grid.result-meta div { background: #f7f9ff; border: 1px solid #e7ecff; }
.app-tags.result-tags span { background: #fff; border-color: #dfe5f7; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.no-results-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 30px; }
@media (max-width: 1050px) {
  .results-hero, .results-grid { grid-template-columns: 1fr; }
  .results-panel { max-width: 420px; }
}
@media (max-width: 700px) {
  .results-page { padding-top: 36px; }
  .result-top { flex-direction: column; }
  .score-badge { width: 100%; height: auto; min-height: 70px; border-radius: 20px; }
  .meta-grid.result-meta { grid-template-columns: 1fr; }
}


/* === Patch global compact / footer / hover cards - 2026-06-12 === */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  min-height: auto;
}
.site-header {
  position: static;
  padding: 12px 4.6vw;
}
.brand-logo {
  height: 38px;
  max-width: 230px;
}
.nav {
  gap: 16px;
  font-size: 13px;
}
.lang {
  padding: 5px 9px;
}

h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: .96;
  letter-spacing: -.065em;
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -.052em;
}
.lead, .section-lead {
  font-size: clamp(16px, 1.45vw, 20px);
}
.section-lead {
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 11px;
  margin-bottom: 12px;
}

.hero {
  padding: 46px 4.6vw 42px;
  gap: 34px;
}
.hero-actions {
  margin-top: 24px;
}
.stats-card {
  padding: 24px;
  border-radius: 24px;
}
.stat-number {
  font-size: 54px;
}
.stats-grid {
  margin-top: 20px;
}
.stats-grid div {
  padding: 13px;
}
.stats-grid strong {
  font-size: 24px;
}
.section {
  padding: 44px 4.6vw;
}
.section.narrow {
  max-width: 820px;
}
.cards {
  gap: 16px;
}
.card, .form-card, .result-card, .price-card {
  padding: 22px;
  border-radius: 22px;
}
.card h2, .price-card h2 {
  font-size: clamp(28px, 3vw, 42px);
}
.card h3 {
  margin-top: 0;
}

.level-grid {
  gap: 14px;
}
.level-card {
  min-height: 210px;
  padding: 20px;
  cursor: default;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.level-card.featured {
  border-color: var(--line);
  background: var(--paper);
}
.level-card:hover,
.level-card.featured:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff, #eef4ff);
  box-shadow: 0 22px 54px rgba(31,77,255,.14);
}
.level-card span {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}
.level-card:hover span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(31,77,255,.22);
}
.level-card h3 {
  font-size: 20px;
}
.level-card p {
  font-size: 15px;
}

.search-highlight {
  padding-top: 38px;
  padding-bottom: 38px;
  gap: 28px;
}
.quick-search-box {
  padding: 22px;
}
.chips {
  gap: 10px;
  margin-bottom: 16px;
}
.chips a, .app-tags span {
  padding: 8px 12px;
}
.why-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.pricing-grid {
  gap: 16px;
}
.price-card {
  min-height: 0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.price-card.featured {
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(20,20,20,.045);
}
.price-card:hover,
.price-card.featured:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff, #eef4ff);
  box-shadow: 0 22px 54px rgba(31,77,255,.14);
}
.price-card:hover .btn.secondary,
.price-card:hover button.btn.secondary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(31,77,255,.18);
}
.price-card h2 {
  line-height: .98;
}
.price {
  font-size: 36px;
  margin: 10px 0;
}
.price small {
  font-size: 13px;
}
.price-card ul {
  padding-left: 21px;
}

.table-wrap {
  margin-bottom: 22px;
}
th, td {
  padding: 12px 14px;
}
.danger {
  padding: 9px 13px;
  font-size: 13px;
}

.results-page h1 {
  font-size: clamp(38px, 4.8vw, 62px);
}
.result-title-block h2 {
  font-size: clamp(24px, 2vw, 34px);
}
.score-badge {
  min-width: 72px;
  height: 72px;
  border-radius: 24px;
}
.score-badge strong {
  font-size: 26px;
}

.site-footer {
  padding: 16px 4.6vw 18px;
  font-size: 12px;
  line-height: 1.35;
}
.site-footer p {
  margin: 0 0 6px;
}
.site-footer p:last-child {
  margin-bottom: 0;
}
.site-footer a:hover {
  color: var(--accent);
}

@media (min-width: 1200px) {
  .levels-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .level-card {
    min-height: 195px;
  }
}
@media (max-width: 900px) {
  .site-header {
    position: static;
    padding: 12px 5vw;
  }
  h1 {
    font-size: 42px;
  }
  h2 {
    font-size: 32px;
  }
  .hero {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

/* === Patch correctif visuel 2 - accueil / tarifs / footer - 2026-06-12 === */
:root {
  --header-height: 63px;
}

.site-footer {
  padding: 10px 4.6vw 11px;
  font-size: 11px;
  line-height: 1.25;
}
.site-footer p {
  margin: 0 0 3px;
}
.site-footer p:last-child {
  margin-bottom: 0;
}

h1 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: .98;
  letter-spacing: -.058em;
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(25px, 2.8vw, 38px);
  letter-spacing: -.05em;
}
.lead,
.section-lead {
  font-size: clamp(15px, 1.25vw, 18px);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero-actions {
  margin-top: 20px;
}
.stats-card {
  padding: 22px;
}
.stat-number {
  font-size: 48px;
}
.stats-grid {
  margin-top: 16px;
}
.stats-grid div {
  padding: 11px;
}
.stats-grid strong {
  font-size: 22px;
}

.levels-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.level-card,
.level-card.featured {
  min-height: 180px;
  padding: 18px;
  border-color: var(--line) !important;
  background: var(--paper) !important;
  box-shadow: 0 16px 40px rgba(20,20,20,.045) !important;
}
.level-card span,
.level-card.featured span {
  width: 34px;
  height: 34px;
  font-size: 13px;
  margin-bottom: 14px;
  background: #0a1029 !important;
  color: #fff;
}
.level-card h3 {
  font-size: 19px;
}
.level-card p {
  font-size: 14px;
}
.level-card:hover,
.level-card.featured:hover {
  transform: translateY(-6px);
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, #fff, #eef4ff) !important;
  box-shadow: 0 24px 58px rgba(31,77,255,.16) !important;
}
.level-card:hover span,
.level-card.featured:hover span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 10px 24px rgba(31,77,255,.24);
}

.search-highlight {
  min-height: calc(100vh - var(--header-height));
  padding-top: 54px;
  padding-bottom: 54px;
  align-items: center;
  scroll-margin-top: 0;
}
.search-highlight h2 {
  font-size: clamp(30px, 3.6vw, 48px);
}
.quick-search-box {
  padding: 24px;
}

.why-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.pricing-grid {
  align-items: stretch;
}
.price-card,
.price-card.featured {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  border-color: var(--line) !important;
  background: var(--paper) !important;
  box-shadow: 0 12px 34px rgba(20,20,20,.045) !important;
}
.price-card h2 {
  font-size: clamp(26px, 2.6vw, 36px);
}
.price-card ul {
  flex: 1;
  margin-bottom: 22px;
}
.price-card form,
.price-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}
.price-card .btn,
.price-card button.btn,
.price-card .btn.secondary,
.price-card button.btn.secondary {
  background: var(--paper);
  color: var(--black);
  border: 1px solid var(--line);
  box-shadow: none;
}
.price-card:hover,
.price-card.featured:hover {
  transform: translateY(-6px);
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, #fff, #eef4ff) !important;
  box-shadow: 0 24px 58px rgba(31,77,255,.16) !important;
}
.price-card:hover .btn,
.price-card:hover button.btn,
.price-card .btn:hover,
.price-card button.btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(31,77,255,.18);
}

@media (max-width: 1200px) {
  .hero,
  .levels-section,
  .search-highlight {
    min-height: auto;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card,
  .price-card.featured {
    min-height: auto;
  }
}


/* === Patch méthode commerciale + bandeau recherche compact - 2026-06-12 === */
.levels-section {
  min-height: auto !important;
  justify-content: flex-start !important;
  padding-top: 52px !important;
  padding-bottom: 52px !important;
}
.method-insight-panel {
  margin-top: 20px;
  border: 1px solid #dbe5ff;
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  border-radius: 24px;
  padding: 18px 22px;
  min-height: 86px;
  box-shadow: 0 16px 42px rgba(7,20,57,.07);
}
.method-insight-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 1120px;
}
.method-insight-panel strong {
  color: #0a1029;
}
.method-insight-panel .method-detail {
  display: none;
}
.levels-section:has(.level-card:nth-child(1):hover) .method-default,
.levels-section:has(.level-card:nth-child(2):hover) .method-default,
.levels-section:has(.level-card:nth-child(3):hover) .method-default,
.levels-section:has(.level-card:nth-child(4):hover) .method-default,
.levels-section:has(.level-card:nth-child(5):hover) .method-default {
  display: none;
}
.levels-section:has(.level-card:nth-child(1):hover) .method-detail-1,
.levels-section:has(.level-card:nth-child(2):hover) .method-detail-2,
.levels-section:has(.level-card:nth-child(3):hover) .method-detail-3,
.levels-section:has(.level-card:nth-child(4):hover) .method-detail-4,
.levels-section:has(.level-card:nth-child(5):hover) .method-detail-5 {
  display: block;
  animation: methodFade .14s ease-out;
}
@keyframes methodFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-highlight {
  min-height: auto !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid var(--line);
}
.search-highlight h2 {
  font-size: clamp(28px, 3.1vw, 42px) !important;
  margin-bottom: 14px;
}
.search-highlight .lead {
  max-width: 760px;
}
.quick-search-box {
  padding: 22px !important;
}
.why-section {
  padding-top: 46px !important;
}
@media (max-width: 900px) {
  .method-insight-panel {
    min-height: auto;
  }
}


/* === Patch accueil : 3 pages franches - 2026-06-12 === */
@media (min-width: 1001px) {
  .hero.hero-lexia,
  .levels-section,
  .search-highlight {
    min-height: calc(100vh - 82px) !important;
    box-sizing: border-box;
    scroll-margin-top: 82px;
  }

  .hero.hero-lexia {
    padding-top: clamp(54px, 7vh, 86px) !important;
    padding-bottom: clamp(54px, 7vh, 86px) !important;
    align-items: center !important;
  }

  .levels-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-top: clamp(40px, 5vh, 64px) !important;
    padding-bottom: clamp(40px, 5vh, 64px) !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .levels-section .section-lead {
    margin-bottom: 24px !important;
  }

  .levels-section .level-grid {
    align-items: stretch;
  }

  .levels-section .level-card,
  .levels-section .level-card.featured {
    min-height: 188px !important;
    padding: 20px !important;
  }

  .levels-section .level-card span {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 18px !important;
  }

  .method-insight-panel {
    margin-top: 22px !important;
    min-height: 74px !important;
    padding: 18px 22px !important;
  }

  .search-highlight {
    padding-top: clamp(54px, 7vh, 86px) !important;
    padding-bottom: clamp(54px, 7vh, 86px) !important;
    align-items: center !important;
    border-top: none !important;
    border-bottom: none !important;
  }

  .search-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 78% 16%, rgba(46,196,255,.15), transparent 30%);
  }

  .search-highlight > * {
    position: relative;
    z-index: 1;
  }
}

/* La page d'accueil doit rester en 3 grands écrans : landing, méthode, recherche. */
.why-section {
  display: none !important;
}
