/* ============================================================
   CSS - Page Quel LLM Choisir | digital-m.fr
   Fichier : /wp-content/themes/Divi-child/css/quel-llm.css
   Charge conditionnellement via functions.php (is_page)
   ============================================================ */

/* ---- Variables locales ---- */
.qllm-hero,
.qllm-quiz-section,
.qllm-llms,
.qllm-methodo,
.qllm-faq,
.qllm-cta {
  --qllm-orange:  #ff6a1c;
  --qllm-yellow:  #fce721;
  --qllm-grad:    linear-gradient(135deg, #ff6a1c, #fce721);
  --qllm-navy:    #1a1a2e;
  --qllm-dark:    #0d0d1a;
  --qllm-border:  rgba(255,255,255,0.1);
  --qllm-card:    rgba(255,255,255,0.04);
  --qllm-muted:   rgba(255,255,255,0.62);
  --qllm-radius:  16px;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

.qllm-hero *,
.qllm-quiz-section *,
.qllm-llms *,
.qllm-methodo *,
.qllm-faq *,
.qllm-cta * {
  box-sizing: border-box;
}

.qllm-hidden {
  display: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.qllm-hero {
  background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
  padding: 110px 24px 40px;
  text-align: center;
}

.qllm-hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,106,28,0.45);
  border-radius: 999px;
  color: var(--qllm-yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.qllm-hero h1 {
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 18px;
}

.qllm-hero h1 .qllm-grad-txt {
  background: var(--qllm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qllm-hero-sub {
  color: var(--qllm-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 28px;
}

.qllm-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.qllm-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--qllm-card);
  border: 1px solid var(--qllm-border);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 500;
}

/* ============================================================
   SECTION QUIZ
   ============================================================ */
.qllm-quiz-section {
  background: var(--qllm-navy);
  padding: 30px 24px 100px;
}

.qllm-quiz-inner {
  max-width: 780px;
  margin: 0 auto;
}

.qllm-quiz-intro-txt {
  color: var(--qllm-muted);
  font-size: 15.5px;
  line-height: 1.7;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 34px;
}

/* ---- Carte principale du comparateur ---- */
.qllm-card {
  position: relative;
  background: var(--qllm-card);
  border: 1px solid var(--qllm-border);
  border-radius: 20px;
  padding: 44px 40px;
  overflow: hidden;
}

.qllm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--qllm-grad);
}

/* ---- Ecran intro ---- */
.qllm-intro {
  text-align: center;
}

.qllm-intro h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 14px;
}

.qllm-intro p {
  color: var(--qllm-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 24px;
}

.qllm-intro-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 0;
  margin: 0 0 30px;
}

.qllm-intro-list li {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}

.qllm-intro-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--qllm-orange);
  font-weight: 800;
}

/* ---- Boutons generiques ---- */
.qllm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qllm-btn--primary {
  background: linear-gradient(135deg, #ff6a1c, #e65c17);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255,106,28,0.3);
}

.qllm-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255,106,28,0.45);
  color: #fff;
}

.qllm-btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.28);
  color: #fff;
}

.qllm-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--qllm-orange);
  color: #fff;
}

/* ---- Ecran question ---- */
.qllm-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qllm-progress-count {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 700;
}

.qllm-progress-pct {
  color: var(--qllm-yellow);
  font-size: 13px;
  font-weight: 700;
}

.qllm-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}

.qllm-progress-fill {
  height: 100%;
  width: 0;
  background: var(--qllm-grad);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.qllm-question-title {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 26px;
  outline: none;
}

.qllm-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qllm-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--qllm-border);
  border-radius: var(--qllm-radius);
  color: rgba(255,255,255,0.9);
  font-family: 'Roboto', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.qllm-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255,106,28,0.6);
  background: rgba(255,106,28,0.07);
}

.qllm-option:focus-visible {
  outline: 2px solid var(--qllm-yellow);
  outline-offset: 2px;
}

.qllm-option.is-selected {
  border-color: var(--qllm-orange);
  background: rgba(255,106,28,0.12);
}

.qllm-option-letter {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--qllm-border);
  border-radius: 10px;
  color: var(--qllm-yellow);
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.qllm-option:hover .qllm-option-letter,
.qllm-option.is-selected .qllm-option-letter {
  background: var(--qllm-grad);
  border-color: transparent;
  color: #1a1a2e;
}

.qllm-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  padding: 0;
  background: none;
  border: none;
  color: var(--qllm-muted);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.qllm-back:hover {
  color: #fff;
}

/* ---- Ecran analyse ---- */
.qllm-loading {
  text-align: center;
  padding: 30px 0;
}

.qllm-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 28px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--qllm-orange);
  border-radius: 50%;
  animation: qllm-spin 0.9s linear infinite;
}

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

.qllm-loading-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.qllm-loading-steps li {
  color: rgba(255,255,255,0.35);
  font-size: 15px;
  font-weight: 500;
  padding-left: 26px;
  position: relative;
  transition: color 0.3s ease;
}

.qllm-loading-steps li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.15);
  font-weight: 800;
  transition: color 0.3s ease;
}

.qllm-loading-steps li.is-done {
  color: rgba(255,255,255,0.9);
}

.qllm-loading-steps li.is-done::before {
  color: var(--qllm-orange);
}

/* ---- Ecran resultats ---- */
.qllm-results-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
}

.qllm-results-sub {
  color: var(--qllm-muted);
  font-size: 15px;
  text-align: center;
  margin: 0 0 22px;
}

.qllm-profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.qllm-profile-chip {
  padding: 5px 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--qllm-border);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  font-weight: 500;
}

.qllm-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
}

.qllm-result {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--qllm-border);
  border-radius: var(--qllm-radius);
  padding: 24px;
}

.qllm-result--top {
  border-color: rgba(255,106,28,0.55);
  background: rgba(255,106,28,0.06);
  box-shadow: 0 8px 32px rgba(255,106,28,0.12);
}

.qllm-result-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 4px 14px;
  background: var(--qllm-grad);
  border-radius: 999px;
  color: #1a1a2e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.qllm-result-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}

.qllm-result-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 9px;
  background: #fff;
  border-radius: 13px;
}

.qllm-result-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qllm-result-name {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}

.qllm-result-vendor {
  color: var(--qllm-muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.qllm-result-match {
  margin-left: auto;
  text-align: right;
}

.qllm-result-pct {
  display: block;
  background: var(--qllm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.qllm-result-pct-label {
  color: var(--qllm-muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.qllm-result-bar {
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.qllm-result-bar-fill {
  height: 100%;
  width: 0;
  background: var(--qllm-grad);
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.qllm-result-desc {
  color: rgba(255,255,255,0.8);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.qllm-result-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qllm-result-reasons li {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.qllm-result-reasons li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--qllm-orange);
  font-weight: 800;
}

/* ---- Bloc suite / CTA dans les resultats ---- */
.qllm-next {
  border-top: 1px solid var(--qllm-border);
  padding-top: 30px;
  text-align: center;
}

.qllm-next h3 {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 10px;
}

.qllm-next p {
  color: var(--qllm-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 22px;
}

.qllm-next-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.qllm-restart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  color: var(--qllm-muted);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.qllm-restart:hover {
  color: var(--qllm-yellow);
}

/* ---- Noscript ---- */
.qllm-noscript {
  margin-top: 26px;
  padding: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--qllm-border);
  border-radius: var(--qllm-radius);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

/* ============================================================
   SECTION 7 LLM (contenu statique GEO)
   ============================================================ */
.qllm-llms {
  background: #f8f8fb;
  padding: 90px 24px;
}

.qllm-llms-inner,
.qllm-methodo-inner,
.qllm-faq-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.qllm-sec-head {
  text-align: center;
  margin-bottom: 50px;
}

.qllm-sec-eyebrow {
  display: inline-block;
  color: var(--qllm-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.qllm-sec-head h2 {
  color: #1a1a2e;
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 14px;
}

.qllm-sec-head p {
  color: #555;
  font-size: 16px;
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto;
}

.qllm-llms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.qllm-llm-card {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--qllm-radius);
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qllm-llm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--qllm-grad);
}

.qllm-llm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(26,26,46,0.1);
}

.qllm-llm-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.qllm-llm-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 7px;
  background: #f8f8fb;
  border: 1px solid #eee;
  border-radius: 12px;
}

.qllm-llm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qllm-llm-card h3 {
  color: #1a1a2e;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.qllm-llm-vendor {
  color: #888;
  font-size: 12.5px;
  margin: 2px 0 0;
}

.qllm-llm-origin {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 4px 11px;
  background: #f2f2f7;
  border-radius: 999px;
  color: #666;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.qllm-llm-card p {
  color: #555;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.qllm-llm-ideal {
  display: block;
  padding-top: 12px;
  border-top: 1px solid #f0f0f5;
  color: #1a1a2e;
  font-size: 13.5px;
}

.qllm-llm-ideal strong {
  color: var(--qllm-orange);
  font-weight: 800;
}

/* ============================================================
   SECTION METHODOLOGIE
   ============================================================ */
.qllm-methodo {
  background: #fff;
  padding: 90px 24px;
}

.qllm-methodo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.qllm-methodo-step {
  text-align: center;
  padding: 0 10px;
}

.qllm-methodo-num {
  display: inline-block;
  background: var(--qllm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.qllm-methodo-step h3 {
  color: #1a1a2e;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}

.qllm-methodo-step p {
  color: #555;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

.qllm-methodo-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  background: #f8f8fb;
  border-left: 4px solid var(--qllm-orange);
  border-radius: 0 12px 12px 0;
  color: #555;
  font-size: 14.5px;
  line-height: 1.65;
}

/* ============================================================
   SECTION FAQ
   ============================================================ */
.qllm-faq {
  background: #f8f8fb;
  padding: 90px 24px;
}

.qllm-faq-inner {
  max-width: 860px;
}

.qllm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qllm-faq-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--qllm-radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.qllm-faq-item[open] {
  border-color: rgba(255,106,28,0.4);
  box-shadow: 0 8px 26px rgba(26,26,46,0.07);
}

.qllm-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.qllm-faq-item summary::-webkit-details-marker {
  display: none;
}

.qllm-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--qllm-orange);
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.qllm-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.qllm-faq-item .qllm-faq-body {
  padding: 0 24px 22px;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   SECTION CTA FINALE
   ============================================================ */
.qllm-cta {
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
  padding: 90px 24px;
  text-align: center;
}

.qllm-cta h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 16px;
}

.qllm-cta p {
  color: var(--qllm-muted);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 30px;
}

.qllm-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.qllm-cta-sub {
  margin-top: 22px;
  color: rgba(255,255,255,0.45);
  font-size: 13.5px;
}

.qllm-cta-sub a {
  color: var(--qllm-yellow);
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .qllm-methodo-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 768px) {
  .qllm-hero {
    padding: 90px 18px 30px;
  }

  .qllm-hero h1 {
    font-size: 32px;
  }

  .qllm-hero-sub {
    font-size: 16px;
  }

  .qllm-quiz-section {
    padding: 20px 16px 70px;
  }

  .qllm-card {
    padding: 32px 22px;
  }

  .qllm-question-title {
    font-size: 20px;
  }

  .qllm-sec-head h2 {
    font-size: 27px;
  }

  .qllm-cta h2 {
    font-size: 26px;
  }

  .qllm-result-head {
    flex-wrap: wrap;
  }

  .qllm-result-match {
    margin-left: 0;
    width: 100%;
    text-align: left;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .qllm-hero h1 {
    font-size: 27px;
  }

  .qllm-option {
    font-size: 14.5px;
    padding: 14px 14px;
  }

  .qllm-option-letter {
    width: 32px;
    height: 32px;
  }

  .qllm-btn {
    width: 100%;
  }

  .qllm-intro h2 {
    font-size: 23px;
  }
}

/* ---- Accessibilite : mouvement reduit ---- */
@media (prefers-reduced-motion: reduce) {
  .qllm-hero *,
  .qllm-quiz-section *,
  .qllm-llms *,
  .qllm-methodo *,
  .qllm-faq *,
  .qllm-cta * {
    animation: none !important;
    transition: none !important;
  }
}
