/*
Theme Name: LLM Monitor
Theme URI: https://www.llm-monitor.com
Author: Market Connect SAS
Author URI: https://www.llm-monitor.com
Description: Thème WordPress pour LLM Monitor - Plateforme de mesure de la visibilité des marques dans les IA conversationnelles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://www.llm-monitor.com/legal
Text Domain: llm-monitor
*/

/* Import DM Sans + DM Serif Display */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=DM+Serif+Display:ital@0;1&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* Variables CSS du design system */
:root {
  --color-primary: #17233c;
  --color-secondary: #2e4f62;
  --color-tertiary: #4c9783;
  /* Alias pour le contenu de page (home + tarifs) */
  --primary: #17233c;
  --secondary: #2e4f62;
  --tertiary: #4c9783;
  --tertiary-light: #D5F5E9;
  --tertiary-10: rgba(76, 151, 131, 0.10);
  --tertiary-20: rgba(76, 151, 131, 0.20);
  --accent: #eb718b;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gradient: linear-gradient(135deg, #17233c 0%, #4c9783 100%);
}

/* Styles shadcn de base */
* {
  border-color: hsl(214.3 31.8% 91.4%);
}

body {
  font-feature-settings: "rlig" 1, "calt" 1;
}

/* Focus ring style shadcn */
.focus-ring:focus-visible {
  outline: 2px solid var(--color-tertiary);
  outline-offset: 2px;
}

/* Transition smooth pour accordéon */
details[open] summary svg {
  transform: rotate(180deg);
}

details summary svg {
  transition: transform 0.2s ease-in-out;
}

/* Animation barres de progression */
@keyframes progressFill {
  from { width: 0; }
}

.progress-bar {
  animation: progressFill 1s ease-out forwards;
}

/* Placeholder images */
.img-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
}

/* Backgrounds maquette */
.bg-hero-gradient {
  background: linear-gradient(90deg, #16233C 0%, #315C5F 50%, #4B9683 100%);
}

.bg-section-gradient {
  background: linear-gradient(90deg, #16233C 0%, #4B9683 100%);
}

.bg-solid-dark {
  background: #16233C;
}

.bg-gray-light {
  background: #F7F8F9;
}

/* Marqueur de sections observées pour les animations internes */
.slide-in-section.visible {
  /* Déclencheur pour les animations internes (slide-in-left/right) */
}

/* Animation slide-in spécifique depuis la droite pour les visuels */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-section.visible .slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

/* Gutenberg / Spectra — full-width blocks break out of parent */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.alignwide {
  width: 100vw;
  max-width: 1280px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

@media (min-width: 1280px) {
  .alignwide {
    margin-left: calc((1280px - 100%) / -2);
    margin-right: calc((1280px - 100%) / -2);
  }
}

/* Animation slide-in spécifique depuis la gauche pour les visuels */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-section.visible .slide-in-left {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   CONTENU PAGE D'ACCUEIL (hors header / footer)
   Copier-coller le HTML dans une page WordPress.
   ============================================= */

/* ---- HERO (page d'accueil uniquement : .home-hero) ---- */
.home-hero.hero {
  padding-top: 64px;
  background: linear-gradient(135deg, #17233c 0%, #2e4f62 55%, #4c9783 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-hero .hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 16px 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .home-hero .hero-inner { padding: 16px 24px; }
}

@media (min-width: 1024px) {
  .home-hero .hero-inner { padding: 16px 32px; }
}

.home-hero .hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .home-hero .hero-title { font-size: 1.875rem; }
}

@media (min-width: 768px) {
  .home-hero .hero-title { font-size: 2.25rem; }
}

.home-hero .hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .home-hero .hero-subtitle { font-size: 1.125rem; }
}

.home-hero .hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero .hero-btn-demo {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.home-hero .hero-btn-demo:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

@media (min-width: 768px) {
  .home-hero .hero-btn-demo { font-size: 1.125rem; padding: 14px 32px; }
}

.home-hero .hero-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  background: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 20px 12px 28px;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(17, 24, 39, 0.25), 0 4px 6px -4px rgba(17, 24, 39, 0.15);
  transition: background 0.2s, gap 0.2s, padding-right 0.2s;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.home-hero .hero-btn-cta:hover {
  background: rgba(255, 255, 255, 0.92);
  gap: 8px;
  padding-right: 20px;
}

.home-hero .hero-btn-cta .btn-arrow,
.home-hero .hero-cta-group .btn-arrow {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.home-hero .hero-btn-cta:hover .btn-arrow,
.home-hero .hero-cta-group .hero-btn-cta:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 768px) {
  .home-hero .hero-btn-cta { font-size: 1.125rem; padding: 14px 24px 14px 32px; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-btn-demo,
  .hero-btn-cta { justify-content: center; }
}

/* ---- BLOC TEXTE (bandeau dégradé) ---- */
.text-section {
  background: linear-gradient(160deg, #17233c 0%, #1e2d4a 50%, #17233c 100%);
  padding: 88px 32px;
}

.text-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.text-line {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.text-section-last {
  padding-bottom: 120px;
  position: relative;
}

.text-section-last::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.08) 100%);
  pointer-events: none;
}

.section-team-spacing {
  padding-top: 120px;
}

/* ---- SECTION PRODUIT (3 cartes) ---- */
.product-section {
  background: #f9fafb;
  padding: 96px 32px;
}

.product-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.product-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 64px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(23, 35, 60, 0.1), 0 4px 12px rgba(23, 35, 60, 0.06);
  transform: translateY(-4px);
  border-color: rgba(76, 151, 131, 0.3);
}

.card-visual {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease;
  padding: 24px 20px;
  height: 420px;
}

.product-card:hover .card-visual {
  background: linear-gradient(160deg, #17233c 0%, #2e4f62 60%, #3a7268 100%);
}

.card-visual::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e4f62, #4c9783);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.product-card:hover .card-visual::after {
  transform: scaleX(1);
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.35;
  width: 100%;
}

.placeholder svg {
  width: 36px;
  height: 36px;
  color: #2e4f62;
}

.placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2e4f62;
}

.card-text {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.card-desc {
  font-size: 0.875rem;
  color: rgba(23, 35, 60, 0.6);
  line-height: 1.65;
}

/* Carte Score */
.score-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 18px 16px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(23, 35, 60, 0.06);
  justify-content: space-between;
}

.score-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

.score-circle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.score-circle-wrap svg {
  transform: rotate(-90deg);
  display: block;
}

.score-center-label {
  position: absolute;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.score-desc {
  font-size: 0.72rem;
  color: rgba(23, 35, 60, 0.6);
  line-height: 1.6;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.chart-wrap {
  position: relative;
  padding-right: 34px;
  margin-top: 8px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
  height: 66px;
}

.chart-scale-label {
  position: absolute;
  right: 0;
  font-size: 0.6rem;
  color: rgba(23, 35, 60, 0.35);
  font-weight: 500;
  line-height: 1;
}

.chart-scale-label.top { top: 16px; }

.chart-scale-label.bottom { bottom: 2px; }

.chart-dashed {
  position: absolute;
  left: 0;
  right: 34px;
  border-top: 1px dashed #d1d5db;
}

.chart-dashed.top { top: 20px; }

.chart-dashed.bottom { bottom: 6px; }

/* Carte Classement */
.rank-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 12px 12px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(23, 35, 60, 0.06);
  justify-content: space-between;
}

.rank-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #17233c;
  margin-bottom: 8px;
}

.rank-head {
  display: grid;
  grid-template-columns: 18px 1fr 38px 42px;
  gap: 4px;
  padding: 0 3px 5px;
  border-bottom: 1px solid #f3f4f6;
}

.rank-head span {
  font-size: 0.55rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.rank-head span:last-child,
.rank-head span:nth-child(3) {
  text-align: right;
}

.rrow {
  display: grid;
  grid-template-columns: 18px 1fr 38px 42px;
  gap: 4px;
  align-items: center;
  padding: 5px 3px;
  border-radius: 5px;
}

.rrow:nth-child(odd) {
  background: #f9fafb;
}

.rrow.hl {
  background: rgba(76, 151, 131, 0.08);
  border: 1px solid #4c9783;
}

.rn {
  font-size: 0.68rem;
  font-weight: 500;
  color: #6b7280;
}

.rrow.hl .rn {
  color: #4c9783;
  font-weight: 700;
}

.rb {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rav {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.rbn {
  display: flex;
  flex-direction: column;
}

.rbname {
  font-size: 0.68rem;
  font-weight: 600;
  color: #17233c;
  line-height: 1.2;
}

.rburl {
  font-size: 0.56rem;
  color: #9ca3af;
}

.rmn {
  font-size: 0.68rem;
  color: #374151;
  text-align: right;
}

.rsc {
  font-size: 0.68rem;
  font-weight: 600;
  color: #374151;
  text-align: right;
}

.rrow.hl .rsc {
  color: #4c9783;
}

.rdots {
  font-size: 0.68rem;
  color: #9ca3af;
  padding: 2px 3px;
}

.rank-btn {
  margin-top: 8px;
  background: #4c9783;
  border-radius: 16px;
  padding: 6px;
  text-align: center;
  font-size: 0.67rem;
  font-weight: 600;
  color: #fff;
}

/* Carte Persona */
.persona-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  padding: 4px 0;
}

.persona-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #17233c;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.persona-question-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
}

.persona-who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.persona-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.persona-avatar svg {
  width: 14px;
  height: 14px;
  color: #6b7280;
}

.persona-who-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #17233c;
  line-height: 1.2;
}

.persona-who-sub {
  font-size: 0.65rem;
  color: rgba(23, 35, 60, 0.45);
}

.persona-q {
  font-size: 0.72rem;
  color: rgba(23, 35, 60, 0.65);
  line-height: 1.4;
  font-style: italic;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
}

.persona-llm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.persona-llm-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #17233c;
}

.persona-brands {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pbadge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

.persona-sources {
  font-size: 0.65rem;
  color: rgba(23, 35, 60, 0.4);
  margin-top: 2px;
}

.persona-voir {
  font-size: 0.65rem;
  color: rgba(23, 35, 60, 0.4);
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---- SECTION HEATMAP ---- */
.heatmap-section {
  background: #f9fafb;
  padding: 0 32px 96px;
}

.heatmap-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.heatmap-header {
  text-align: center;
  padding-bottom: 56px;
}

.heatmap-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.heatmap-sub {
  font-size: 1rem;
  color: rgba(23, 35, 60, 0.55);
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
  white-space: nowrap;
}

.heatmap-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(23, 35, 60, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.heatmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(23, 35, 60, 0.1);
  border-color: rgba(76, 151, 131, 0.35);
}

.table-visual {
  padding-bottom: 40px;
}

.tab-bar {
  display: flex;
  gap: 8px;
  padding: 24px 24px 20px;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(23, 35, 60, 0.55);
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--tertiary);
  color: var(--tertiary);
}

.tab-btn-disabled {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(23, 35, 60, 0.28);
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  white-space: nowrap;
  cursor: not-allowed;
  font-family: inherit;
}

.tab-btn.active {
  background: #fff;
  border-color: var(--tertiary);
  color: var(--tertiary);
  font-weight: 600;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 12px;
}

.table-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.table-action {
  font-size: 0.8rem;
  color: rgba(23, 35, 60, 0.35);
  cursor: pointer;
  transition: color 0.2s;
}

.table-action:hover {
  color: var(--tertiary);
}

.table-wrap {
  overflow-x: auto;
  padding-right: 32px;
}

.heatmap-table {
  width: 100%;
  border-collapse: collapse;
}

.heatmap-table thead tr {
  border-bottom: 1px solid #e5e7eb;
}

.heatmap-table th {
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(23, 35, 60, 0.45);
  text-align: center;
  padding: 9px 14px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.heatmap-table th:last-child {
  border-right: none;
}

.heatmap-table th.row-head {
  text-align: left;
  min-width: 185px;
  font-size: 0.73rem;
  color: rgba(23, 35, 60, 0.45);
  border-right: 1px solid #e5e7eb;
}

.heatmap-table th.col-own {
  color: var(--primary);
  font-weight: 700;
  background: #f3f4f6;
}

.heatmap-table tbody tr:last-child td {
  border-bottom: none;
}

.heatmap-table td {
  text-align: center;
  padding: 15px 10px;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.heatmap-table td:last-child {
  border-right: none;
}

.heatmap-table td.row-head {
  text-align: left;
  padding: 15px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--primary);
  background: #fff;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.4;
  min-width: 185px;
}

.cell-pct {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.cell-raw {
  font-size: 0.68rem;
  color: rgba(23, 35, 60, 0.38);
  margin-top: 2px;
}

/* Niveaux de chaleur heatmap */
.h0 { background: #f0f0f0; }
.h0 .cell-pct { color: rgba(23, 35, 60, 0.28); }
.h0 .cell-raw { color: rgba(23, 35, 60, 0.2); }

.h1 { background: rgba(79, 209, 167, 0.15); }
.h2 { background: rgba(79, 209, 167, 0.28); }
.h3 { background: rgba(79, 209, 167, 0.42); }
.h4 { background: rgba(79, 209, 167, 0.55); }
.h5 { background: rgba(79, 209, 167, 0.7); }
.h5 .cell-pct { color: #1a6e52; }
.h6 { background: rgba(79, 209, 167, 0.88); }
.h6 .cell-pct { color: #0f5240; }
.h6 .cell-raw { color: rgba(15, 82, 64, 0.65); }

.heatmap-view {
  display: none;
}

.heatmap-view.active {
  display: block;
}

@media (max-width: 768px) {
  .heatmap-section { padding: 0 16px 72px; }
  .heatmap-title { font-size: 1.75rem; }
  .tab-btn { font-size: 0.78rem; padding: 6px 12px; }
}

/* ---- CTA FINAL ---- */
.cta-final-section {
  background: #f9fafb;
  background-image: radial-gradient(rgba(23, 35, 60, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 120px 32px;
  text-align: center;
}

.cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-final-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #17233c;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-final-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  color: rgba(23, 35, 60, 0.52);
  line-height: 1.65;
  margin-bottom: 40px;
}

.cta-final-section .hero-btn-demo {
  color: rgba(23, 35, 60, 0.65);
  border-color: rgba(23, 35, 60, 0.22);
}

.cta-final-section .hero-btn-demo:hover {
  background: rgba(23, 35, 60, 0.05);
  border-color: rgba(23, 35, 60, 0.45);
  color: #17233c;
}

.cta-final-section .hero-btn-cta {
  background: linear-gradient(135deg, #17233c 0%, #4c9783 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(23, 35, 60, 0.18);
}

.cta-final-section .hero-btn-cta:hover {
  background: linear-gradient(135deg, #17233c 0%, #3d8570 100%);
}

/* ---- Bloc SOURCES (Comprenez d'où les IA tirent...) ---- */
.sources-section {
  background: #f9fafb;
  padding: 0 32px 96px;
}

.sources-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.sources-header {
  text-align: center;
  margin-bottom: 56px;
}

.sources-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #17233c;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.sources-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: rgba(23, 35, 60, 0.55);
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto;
  white-space: nowrap;
}

.sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  /* Hauteur intrinsèque par colonne (ex. carte contact droite plus courte que la gauche) */
  align-items: start;
}

@media (max-width: 768px) {
  .sources-grid {
    grid-template-columns: 1fr;
  }
}

.sources-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(23, 35, 60, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sources-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(23, 35, 60, 0.1);
  border-color: rgba(76, 151, 131, 0.35);
}

.sources-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.sources-card-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sources-card-header-row svg {
  flex-shrink: 0;
  stroke: #6b7280;
}

.sources-card-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #17233c;
}

.sources-card-body {
  padding: 0 24px;
}

.sources-table-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 8px;
  border-bottom: 1px solid #f3f4f6;
}

.sources-table-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(23, 35, 60, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sources-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f9fafb;
}

.sources-table-row:last-child {
  border-bottom: none;
}

.sources-table-cell {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #17233c;
}

.sources-table-value {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #17233c;
}

.sources-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid #f3f4f6;
}

.sources-pagination-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(23, 35, 60, 0.35);
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.sources-pagination-info {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  color: #17233c;
  padding: 4px 10px;
}

.sources-cta-wrap {
  padding: 0 24px 24px;
}

.sources-cta-btn {
  background: #4c9783;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  display: block;
  text-decoration: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s;
}

.sources-cta-btn:hover {
  background: #3d8570;
}

.sources-card-spacer {
  padding: 0 24px 24px;
}

.sources-card-spacer-inner {
  height: 46px;
}

/* ---- Bloc ÉQUIPE ---- */
.team-section {
  background: linear-gradient(135deg, #17233c 0%, #2e4f62 50%, #4c9783 100%);
  padding: 96px 32px;
}

.team-inner {
  max-width: 860px;
  margin: 0 auto;
}

.team-header {
  text-align: center;
  margin-bottom: 56px;
}

.team-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.team-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.team-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.team-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  width: 240px;
  text-align: center;
}

.team-card-img-wrap {
  height: 240px;
  overflow: hidden;
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-card-body {
  padding: 20px 16px 24px;
}

.team-card-role {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.team-card-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.team-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #4c9783;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s;
}

.team-card-link:hover {
  background: #3d8570;
}

.team-card-link svg {
  fill: #fff;
}

.team-cta-wrap {
  text-align: center;
  margin-bottom: 64px;
}

.team-cta-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  background: #fff;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #17233c;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.team-cta-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #17233c;
}

.team-spin-off {
  text-align: center;
  margin-bottom: 48px;
}

.team-spin-off p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.team-stat {
  text-align: center;
}

.team-stat-value {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.team-stat-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

.team-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-logo {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}

/* ---- Compléments carte Persona (product-card) ---- */
.persona-card-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.persona-llm-block {
  margin-top: 10px;
}

.persona-llm-block .persona-llm-label {
  margin-bottom: 8px;
}

.persona-sources-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.persona-sources-strong {
  color: rgba(23, 35, 60, 0.55);
}

.persona-sources-more {
  color: #4c9783;
}

/* Badges persona (variante claire avec rang) */
.pbadge-light {
  background: #f3f4f6;
  border-radius: 7px;
  padding: 4px 8px 4px 4px;
  gap: 5px;
  display: inline-flex;
  align-items: center;
}

.pbadge-rank {
  background: #1a5c4a;
  border-radius: 5px;
  padding: 2px 6px;
  font-weight: 700;
  font-size: 0.65rem;
  color: #fff;
}

.persona-brands .pbadge-light:nth-child(1) .pbadge-rank { background: #1a5c4a; }
.persona-brands .pbadge-light:nth-child(2) .pbadge-rank { background: #226b57; }
.persona-brands .pbadge-light:nth-child(3) .pbadge-rank { background: #2e7d63; }
.persona-brands .pbadge-light:nth-child(4) .pbadge-rank { background: #3d9175; }
.persona-brands .pbadge-light:nth-child(5) .pbadge-rank { background: #4fa98a; }

.pbadge-name {
  color: #17233c;
  font-weight: 500;
  font-size: 0.7rem;
}

/* Rank head : colonnes alignées à droite */
.rank-head-right {
  text-align: right;
}

/* Chart SVG dans score card */
.chart-svg {
  width: 100%;
  height: 44px;
  display: block;
  margin-top: 18px;
}

/* Text section last : contenu centré */
.text-section-last .text-inner {
  text-align: center;
}

/* Page pleine largeur : contenu sur toute la largeur (template "Pleine largeur") */
.fullwidth-content .entry-content,
.fullwidth-content .wp-block-post-content,
.fullwidth-content > * {
  max-width: none !important;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ===== PAGE TARIFS ===== */
/* ─── HEADER HERO (bandeau partagé : Tarifs, FAQ, Contact, etc.) ─── */
.page-hero,
.pricing-hero {
  background: linear-gradient(135deg, #17233c 0%, #2e4f62 55%, #4c9783 100%);
  padding: 72px 32px 80px;
  text-align: center;
}

.page-hero-inner,
.pricing-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(76,151,131,0.18);
  border: 1px solid rgba(76,151,131,0.35);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.01em;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4c9783;
  flex-shrink: 0;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: rgba(76,151,131,0.55);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.hero-subtitle strong {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

/* ─── SECTION WRAPPER (corps marketing : Tarifs, Contact, etc.) ─── */
.page-section,
.pricing-section {
  padding: 72px 32px 96px;
  background: var(--gray-50);
}

.page-inner,
.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-section .lexique-card > h2.card-label,
.page-section .surface-card > h2.card-label,
.pricing-section .lexique-card > h2.card-label {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page-section .lexique-card a.btn-solid,
.page-section .lexique-card button.btn-solid,
.page-section .surface-card a.btn-solid,
.page-section .surface-card button.btn-solid,
.pricing-section .lexique-card a.btn-solid,
.pricing-section .lexique-card button.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--tertiary);
  background: var(--tertiary);
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  box-shadow: none;
}

.page-section .lexique-card a.btn-solid:hover,
.page-section .lexique-card button.btn-solid:hover,
.page-section .surface-card a.btn-solid:hover,
.page-section .surface-card button.btn-solid:hover,
.pricing-section .lexique-card a.btn-solid:hover,
.pricing-section .lexique-card button.btn-solid:hover {
  opacity: 0.9;
  background: var(--tertiary);
  transform: none;
  box-shadow: none;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 540px;
  font-weight: 400;
  margin-bottom: 48px;
}

/* ─── TOGGLE ANNUEL ─── */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.billing-toggle-track {
  width: 42px;
  height: 24px;
  background: var(--gray-200);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.billing-toggle-track.active { background: var(--tertiary); }

.billing-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.billing-toggle-track.active .billing-toggle-thumb { transform: translateX(18px); }

.billing-badge {
  background: var(--tertiary-10);
  color: var(--tertiary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ─── PLANS GRID ─── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(23,35,60,0.08),
    0 24px 64px rgba(23,35,60,0.10);
  align-items: stretch;
}

/* ─── PLAN CARD — subgrid on rows ─── */
.plan {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  position: relative;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:not(:last-child) {
  border-right: 1px solid var(--gray-100);
}

.plan:hover {
  z-index: 2;
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(23,35,60,0.14);
}

/* FREE */
.plan-free { background: var(--gray-50); }

/* PRO — highlight */
.plan-pro {
  background: var(--primary);
}

.plan-pro:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* ENTERPRISE */
.plan-ent {
  background: var(--secondary);
}

/* ─── POPULAR BADGE ─── */
.popular-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--tertiary);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}

/* ─── PLAN HEADER ─── */
.plan-header {
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.plan-pro .plan-header,
.plan-ent .plan-header {
  border-bottom-color: rgba(255,255,255,0.08);
}

.plan-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.plan-free .plan-tag  { background: var(--gray-100); color: var(--gray-600); }
.plan-start .plan-tag { background: var(--tertiary-10); color: var(--tertiary); }
.plan-pro .plan-tag   { background: rgba(76,151,131,0.25); color: #7dd5c0; }
.plan-ent .plan-tag   { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }

.plan-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 6px;
}

.plan-free .plan-name,
.plan-start .plan-name  { color: var(--primary); }
.plan-pro .plan-name,
.plan-ent .plan-name    { color: var(--white); }

.plan-audience {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray-500);
  font-weight: 400;
}

.plan-pro .plan-audience,
.plan-ent .plan-audience { color: rgba(255,255,255,0.45); }

/* ─── PLAN PRICE ─── */
.plan-price {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.plan-pro .plan-price,
.plan-ent .plan-price { border-bottom-color: rgba(255,255,255,0.08); }

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-free .price-amount,
.plan-start .price-amount { color: var(--primary); }
.plan-pro .price-amount   { color: var(--white); }
.plan-ent .price-amount   { color: rgba(255,255,255,0.9); }

.price-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-500);
}

.plan-pro .price-period,
.plan-ent .price-period { color: rgba(255,255,255,0.4); }

.price-analyses {
  font-size: 0.78rem;
  margin-top: 6px;
  font-weight: 400;
}

.plan-free .price-analyses,
.plan-start .price-analyses { color: var(--gray-600); }
.plan-pro .price-analyses   { color: rgba(255,255,255,0.5); }



.plan-free .price-note  { color: var(--tertiary); font-weight: 500; }
.plan-pro .price-note,
.plan-ent .price-note   { color: rgba(255,255,255,0.35); }

/* ─── PLAN FEATURE SECTIONS ─── */
.plan-feat-section {
  padding: 20px 28px;
  border-top: 1px solid var(--gray-100);
}

.plan-pro .plan-feat-section,
.plan-ent .plan-feat-section { border-top-color: rgba(255,255,255,0.08); }

/* ─── CTA NOTE ─── */
.cta-note {
  text-align: center;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.feat-group-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.plan-free .feat-group-label,
.plan-start .feat-group-label { color: var(--gray-400, #9ca3af); border-color: transparent; }
.plan-pro .feat-group-label,
.plan-ent .feat-group-label   { color: rgba(255,255,255,0.25); border-color: transparent; }

.feat-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 4px 0;
}

.feat-icon {
  width: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.75rem;
  text-align: center;
}

.icon-ok  { color: var(--tertiary); }
.icon-no  { color: var(--gray-300); }
.icon-star { color: #f0a500; }

.feat-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--gray-700);
}

.plan-pro .feat-text,
.plan-ent .feat-text { color: rgba(255,255,255,0.72); }

.feat-text strong {
  font-weight: 600;
  color: var(--primary);
}

.plan-pro .feat-text strong,
.plan-ent .feat-text strong { color: var(--white); }

.feat-text .muted {
  color: var(--gray-500);
  font-size: 0.78rem;
}

.plan-pro .feat-text .muted,
.plan-ent .feat-text .muted { color: rgba(255,255,255,0.3); }





/* ─── CTA ─── */
.plan-cta {
  padding: 20px 28px 28px;
}

.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  letter-spacing: 0.01em;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-50);
}

.btn-tertiary {
  background: transparent;
  border: 1.5px solid var(--tertiary-20);
  color: var(--tertiary);
}
.btn-tertiary:hover {
  background: var(--tertiary-10);
  border-color: var(--tertiary);
}

.btn-solid {
  background: var(--tertiary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(76,151,131,0.35);
}
.btn-solid:hover {
  background: #3d8570;
  box-shadow: 0 6px 20px rgba(76,151,131,0.45);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

/* ─── NOTE SOUS LES PLANS ─── */
.plans-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.plans-note a {
  color: var(--tertiary);
  text-decoration: none;
  font-weight: 500;
}
.plans-note a:hover { text-decoration: underline; }

/* ─── REVEAL ANIMATION ─── */
/* Sans JS : contenu visible. Avec JS : body.js-reveal ajouté, alors .reveal démarre caché puis .visible l’affiche. */
.reveal {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.visible,
body.js-reveal .reveal.visible {
  opacity: 1;
  transform: none;
}

.plan.reveal {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
body.js-reveal .plan.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.plan.reveal.visible,
body.js-reveal .plan.reveal.visible {
  opacity: 1;
  transform: none;
}
.plan:nth-child(1).reveal { transition-delay: 0s; }
.plan:nth-child(2).reveal { transition-delay: 0.08s; }
.plan:nth-child(3).reveal { transition-delay: 0.16s; }
.plan:nth-child(4).reveal { transition-delay: 0.24s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border-radius: 16px;
  }
  .plan { border-right: none !important; }
  .plan:nth-child(3),
  .plan:nth-child(4) { border-top: none; }
}

/* ─── LEXIQUE ─── */
.lexique-section {
  background: #f4f6f8;
  padding: 80px 32px;
}

.lexique-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Titres de section */
.lexique-section-header {
  margin-bottom: 28px;
}

.lexique-section-header-2 {
  margin-top: 48px;
  margin-bottom: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Même largeur que la carte « Analyse » au-dessus ; grille 50/50 en dessous */
.lexique-section-header-2 .lexique-section-label {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.lexique-section-header-2 .lexique-grid {
  width: 100%;
  grid-template-columns: 1fr 1fr;
}

.lexique-main-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.lexique-main-sub {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

.section-kicker,
.lexique-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-kicker::before,
.lexique-section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tertiary);
  border-radius: 2px;
}

/* Card commune */
.surface-card,
.lexique-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(23,35,60,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Carte Analyse — horizontale + ligne pleine largeur sous les 2 colonnes */
.lexique-card-analyse {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(23,35,60,0.05);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  justify-items: stretch;
}

.lexique-analyse-left,
.lexique-analyse-right {
  min-width: 0;
}

/* Sans ça, le 3e bloc se place en « colonne 1 seule » → ~50 % de largeur */
.lexique-card-analyse > .lexique-section-header.lexique-section-header-2 {
  grid-column: 1 / span 2;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
}

.lexique-card-analyse > .lexique-section-header.lexique-section-header-2 .lexique-grid {
  width: 100%;
  max-width: none;
  min-width: 0;
}

@media (max-width: 700px) {
  .lexique-card-analyse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lexique-card-analyse > .lexique-section-header.lexique-section-header-2 {
    grid-column: 1 / -1;
  }

  .lexique-section { padding: 64px 20px; }
}

.lexique-analyse-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lexique-analyse-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Titres carte */
.lexique-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lexique-term {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* Texte */
.lexique-def {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* Exemple */
.lexique-example {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lexique-example-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tertiary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Schéma Analyse horizontal */
.lexique-schema-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.lexique-schema-h {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.schema-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 120px;
}

.schema-node-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}

.node-projet { background: rgba(76,151,131,0.10); border: 1px solid rgba(76,151,131,0.25); }
.node-dash   { background: rgba(76,151,131,0.10); border: 1px solid rgba(76,151,131,0.25); }

.schema-node-label { font-size: 0.8rem; font-weight: 700; color: #17233c; }
.schema-node-sub   { font-size: 0.68rem; color: #9ca3af; text-align: center; line-height: 1.4; }

.schema-flux {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.flux-track {
  width: 100%; height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.flux-fill {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, #4c9783, transparent);
  animation: flux 1.8s ease-in-out infinite;
}
.flux-fill-2 { animation-delay: 0.6s; }

@keyframes flux {
  0%   { left: -100%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.flux-label { font-size: 0.62rem; color: #9ca3af; white-space: nowrap; }

/* IA pulsante */
.ai-pulse {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #17233c;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.ai-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid rgba(76,151,131,0.45);
  animation: aipulse 2s ease-in-out infinite;
}

@keyframes aipulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

.ai-dots { display: flex; gap: 3px; align-items: center; }
.ai-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #4c9783;
  animation: aidot 1.2s ease-in-out infinite;
}
.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aidot {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40%            { transform: scale(1.4); opacity: 1; }
}

/* Badge analyse */
.schema-badge-wrap {
  display: flex; justify-content: center; margin-top: 20px;
}
.schema-badge-pill {
  background: rgba(76,151,131,0.10);
  border: 1px solid rgba(76,151,131,0.30);
  border-radius: 9999px;
  padding: 7px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tertiary);
}

/* Grid 2 colonnes */
.lexique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 680px) {
  .lexique-grid { grid-template-columns: 1fr; }
}

/* Runs */
.lexique-runs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.run-level {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
}

.run-level-highlight {
  background: rgba(76,151,131,0.07);
  border: 1px solid rgba(76,151,131,0.20);
}

.run-wifi {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.run-bar-h {
  width: 6px;
  border-radius: 2px;
  background: #e5e7eb;
}
.run-bar-h:nth-child(1) { height: 8px; }
.run-bar-h:nth-child(2) { height: 13px; }
.run-bar-h:nth-child(3) { height: 18px; }
.run-bar-h.on { background: var(--tertiary); }

.run-level-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.run-level-desc {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.5;
}

.run-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(76,151,131,0.12);
  color: var(--tertiary);
  border-radius: 9999px;
  padding: 2px 8px;
}

.run-badge-ent {
  background: rgba(23,35,60,0.07);
  color: var(--secondary);
}


@media (max-width: 600px) {
  .page-section,
  .pricing-section { padding: 64px 20px; }
}

/* ─── TOOLTIPS ─── */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

.tooltip-icon {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
  cursor: help;
  line-height: 1;
  transition: color 0.15s;
}

.tooltip-wrap:hover .tooltip-icon {
  color: var(--tertiary);
}

.tooltip-box {
  white-space: pre-line;
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #17233c;
  color: rgba(255,255,255,0.90);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: 8px;
  width: 220px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  pointer-events: none;
}

.tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #17233c;
}

.tooltip-wrap:hover .tooltip-box {
  white-space: pre-line;
  display: block;
}


/* ===== CTA FINAL ===== */
.cta-final-section {
  background: #17233c;
  padding: 120px 32px;
  text-align: center;
}
.cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
}
.cta-final-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.cta-final-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 40px;
}
.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-btn-demo {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 9999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.cta-btn-demo:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.40);
  color: #ffffff;
}
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #17233c;
  background: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 12px 20px 12px 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: gap 0.2s, padding-right 0.2s;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}
.cta-btn-primary:hover {
  gap: 8px;
  padding-right: 20px;
}
.cta-btn-primary .btn-arrow {
  width: 18px; height: 18px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.cta-btn-primary:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ===== FAQ ===== */
.faq-section {
  background: #ffffff;
  padding: 96px 32px;
}

.faq-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-header {
  margin-bottom: 56px;
}

.faq-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.faq-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tertiary);
  border-radius: 2px;
}

.faq-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.15;
  margin: 0;
}

.faq-list {
  border-top: 1px solid #e5e7eb;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  transition: color 0.15s;
  user-select: none;
}

.faq-question:hover {
  color: var(--tertiary);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gray-400, #9ca3af);
  transition: transform 0.25s ease, color 0.15s;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--tertiary);
}

details[open] .faq-question {
  color: var(--tertiary);
}

.faq-answer {
  padding: 0 32px 24px 0;
  font-size: 0.925rem;
  color: #4b5563;
  line-height: 1.75;
  max-width: 760px;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer ul {
  margin: 10px 0 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  list-style: disc;
}

.faq-answer ul li {
  padding-left: 2px;
}

.faq-answer strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== PAGE CONTENU AVEC SIDEBAR (FAQ longue, documentation, etc.) ===== */
.layout-with-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 96px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
  background: #ffffff;
}

.layout-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;  /* requis pour sticky dans un grid */
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(23, 35, 60, 0.55);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.4;
  display: block;
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.sidebar-link.active {
  color: var(--tertiary);
  background: var(--tertiary-10);
  border-left-color: var(--tertiary);
  font-weight: 600;
}

.layout-main {
  min-width: 0;
}

.content-block {
  margin-bottom: 72px;
  scroll-margin-top: 96px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.layout-main .content-block .section-kicker,
.layout-main .content-block .lexique-section-label {
  margin-bottom: 12px;
}

.layout-main .content-block .section-title {
  margin-bottom: 32px;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 64px;
  }

  .layout-sidebar {
    position: static;
    display: none;
  }

  .faq-answer {
    padding-right: 0;
  }
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 1px solid rgba(23,35,60,0.22);
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, gap 0.2s;
}

.faq-cta-btn:hover {
  background: rgba(23,35,60,0.04);
  border-color: rgba(23,35,60,0.40);
  gap: 12px;
}

.faq-cta-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.faq-cta-btn:hover svg {
  transform: translateX(2px);
}

.faq-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tertiary);
  text-decoration: none;
  transition: gap 0.2s;
}

.faq-cta:hover {
  gap: 12px;
}

.faq-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.faq-cta:hover svg {
  transform: translateX(2px);
}

/* ===== FOOTER PAGE TARIFS ===== */
.pricing-footer {
  background: #17233c;
  padding: 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.pricing-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing-footer-copy {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.pricing-footer-tagline {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.pricing-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pricing-footer-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pricing-footer-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.pricing-footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}

.pricing-footer-linkedin:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pricing-footer-linkedin svg {
  fill: rgba(255, 255, 255, 0.75);
}

.pricing-footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-footer-legal {
  padding: 18px 0;
  text-align: center;
}

.pricing-footer-legal-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.pricing-footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ----- Formulaires contact (démo + équipe), maquette ----- */
.llm-contact-card {
  --llm-contact-cta: #549a84;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px 32px 32px;
  box-shadow: 0 4px 24px rgba(23, 35, 60, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.llm-contact-card .hidden {
  display: none !important;
}

.llm-contact-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.llm-contact-card-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.llm-contact-card-title-row .llm-contact-card-title {
  flex: 1;
  min-width: 0;
}

.llm-contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.llm-contact-card-title-row .llm-contact-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Emoji maquette 📅 💬 — cadre léger type planche */
.llm-contact-card-icon--emoji {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  box-sizing: border-box;
}

.llm-contact-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 400;
  color: #111827;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.llm-contact-card-desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

.llm-contact-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0;
  width: 100%;
}

.llm-contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.llm-contact-row {
  display: grid;
  gap: 16px;
}

.llm-contact-row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .llm-contact-row--2 {
    grid-template-columns: 1fr;
  }
}

/* Label au-dessus du champ (maquette 📅💬) */
.llm-contact-field--stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.llm-contact-control {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.llm-contact-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

.llm-contact-optional {
  font-weight: 400;
  color: #9ca3af;
}

.llm-contact-req {
  color: #dc2626;
  font-weight: 700;
}

.llm-contact-input,
.llm-contact-textarea {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 8px;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  /* Fond blanc + priorité sur les styles inline (extensions navigateur) */
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e5e7eb !important;
  -webkit-appearance: none;
  appearance: none;
}

.llm-contact-textarea {
  min-height: 100px;
  resize: vertical;
  display: block;
}

.llm-contact-input::placeholder,
.llm-contact-textarea::placeholder {
  color: #9ca3af;
}

.llm-contact-input:focus,
.llm-contact-textarea:focus {
  outline: none;
  background-color: #fff !important;
  background-image: none !important;
  border-color: rgba(81, 145, 124, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(81, 145, 124, 0.12) !important;
}

.llm-contact-field-error {
  border-color: #dc2626 !important;
}

/* Boutons injectés par les extensions (ex. Proton Pass) : ne pas casser la grille */
.llm-contact-control > button[type="button"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.llm-contact-error {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: #dc2626;
  margin: 0;
}

.llm-contact-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  border-radius: 30px !important;
  border-color: var(--llm-contact-cta) !important;
  background: var(--llm-contact-cta) !important;
  color: #fff !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.llm-contact-submit:hover:not(:disabled) {
  opacity: 0.92;
}

.llm-contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.llm-contact-submit-spinner {
  flex-shrink: 0;
  animation: llm-contact-spin 1s linear infinite;
}

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

.llm-contact-success {
  padding: 8px 0 0;
}

.llm-contact-success-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.page-section .llm-contact-card .llm-contact-submit.btn-solid,
.pricing-section .llm-contact-card .llm-contact-submit.btn-solid {
  background: var(--llm-contact-cta) !important;
  border-color: var(--llm-contact-cta) !important;
  border-radius: 30px !important;
  padding: 1rem 1.25rem;
}

/* =====================================================================
   ARTICLE BLOG
   Grille : surcharge layout-with-sidebar pour mettre la sidebar à droite
   ===================================================================== */
.article-layout.layout-with-sidebar {
  grid-template-columns: 1fr 280px;
  max-width: 1100px;
  padding: 0 24px 80px;
}

/* Barre de progression de lecture */
.article-reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
  z-index: 49;
  transition: width 0.1s linear;
}

/* Conteneur hero article — aligné sur la grille (1100px) */
.article-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

/* Variante avec image mise en avant en background */
.article-hero--with-bg {
  max-width: none;
  padding: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}

.article-hero--with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 60%, rgba(0,0,0,0.15) 100%);
}

.article-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  position: relative;
  z-index: 1;
}

.article-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-bottom: 16px;
}

.article-hero-back:hover {
  color: rgba(255,255,255,0.95);
}

/* Sur fond image : forcer le texte du hero en blanc sans changer le contenu */
.article-hero--with-bg h1 {
  color: #fff !important;
}

.article-hero--with-bg .article-hero-excerpt {
  color: rgba(255,255,255,0.82);
  border-left-color: rgba(255,255,255,0.55);
}

.article-hero--with-bg .article-hero-excerpt p {
  color: rgba(255,255,255,0.82);
}

.article-hero--with-bg .text-primary\/50 {
  color: rgba(255,255,255,0.55) !important;
}

.article-hero--with-bg .border-gray-200 {
  border-color: rgba(255,255,255,0.16) !important;
}

/* Badge catégorie : fond lisible sur image mise en avant */
.article-hero--with-bg .article-hero-kicker {
  background: rgba(255, 255, 255, 0.3) !important;
  color: var(--tertiary) !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Chapô hero (Lora italic + bordure verte) */
.article-hero-excerpt {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--secondary);
  line-height: 1.75;
  border-left: 3px solid var(--tertiary);
  padding-left: 18px;
  margin-bottom: 24px;
}

/* Les <p> injectés par wpautop héritent du style Lora italic */
.article-hero-excerpt p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--secondary);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ---- Typographie prose dans .layout-main ---- */
.layout-main p {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #2a3347;
  margin-bottom: 1.5rem;
}

.layout-main h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  margin: 2.75rem 0 1rem;
  line-height: 1.25;
  scroll-margin-top: 96px;
}

.layout-main h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 96px;
}

.layout-main ul,
.layout-main ol {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2a3347;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.layout-main ul li,
.layout-main ol li {
  padding: 5px 0 5px 22px;
  position: relative;
}

.layout-main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--tertiary);
  border-radius: 50%;
}

.layout-main ol {
  counter-reset: ol-c;
}

.layout-main ol li::before {
  content: counter(ol-c) '.';
  counter-increment: ol-c;
  position: absolute;
  left: 0;
  top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tertiary);
}

.layout-main code {
  background: #f0f4f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  color: var(--secondary);
}

.layout-main pre {
  background: #f0f4f7;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.layout-main pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
}

.layout-main strong {
  font-weight: 700;
  color: var(--primary);
}

.layout-main a:not([class]) {
  color: var(--tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.layout-main a:not([class]):hover {
  opacity: 0.8;
}

.layout-main figure,
.layout-main .article-visual {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.layout-main figcaption,
.layout-main .visual-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: rgba(23, 35, 60, 0.4);
  text-align: center;
  padding: 10px 16px 14px;
  background: #fafbfc;
  border-top: 1px solid var(--gray-200);
}

/* ---- Shortcode : CTA inline [llm_article_cta] ---- */
.article-cta-inline {
  background: var(--tertiary-10);
  border: 1px solid var(--tertiary-20);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-inline-text strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
}

.article-cta-inline-text span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: var(--secondary);
  opacity: 0.7;
}

.article-cta-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.article-cta-inline-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.article-cta-inline-btn svg {
  width: 13px;
  height: 13px;
}

/* ---- Shortcode : Conclusion [llm_article_conclusion] ---- */
.article-conclusion {
  background: var(--primary);
  border-radius: 12px;
  padding: 32px 36px;
  margin-top: 2.5rem;
}

.article-conclusion-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.article-conclusion h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
  scroll-margin-top: 0;
}

.article-conclusion p {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.article-conclusion p.conclusion-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}

/* ---- CTA bas de page (carte borderée) ---- */
.article-bottom-cta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.article-bottom-cta-inner {
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #fff;
}

.article-bottom-cta-text strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.article-bottom-cta-text span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--secondary);
  opacity: 0.7;
}

.article-bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.article-bottom-cta-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.article-bottom-cta-btn svg {
  width: 14px;
  height: 14px;
}

/* ---- Sidebar article : cartes encadrées ---- */
.sidebar-block {
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.sidebar-block-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-block-title svg {
  width: 13px;
  height: 13px;
  color: var(--tertiary);
}

/* TOC numérotée dans la sidebar */
.sidebar-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-toc ol li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f1f3;
}

.sidebar-toc ol li:last-child {
  border-bottom: none;
}

.sidebar-toc ol li a {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-toc ol li a:hover {
  color: var(--tertiary);
}

.sidebar-toc .toc-num {
  font-weight: 700;
  color: var(--tertiary);
}

/* CTA sidebar (fond sombre centré) */
.sidebar-cta {
  background: var(--primary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.sidebar-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: 14px;
}

.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 18px;
  background: var(--tertiary);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-cta-btn:hover {
  background: #3d8570;
  color: white;
}

.sidebar-cta-btn svg {
  width: 14px;
  height: 14px;
}

/* Boutons partage circulaires */
.share-list {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.share-btn svg {
  width: 15px;
  height: 15px;
}

/* Liens IA (cartes avec icône brand) */
.ai-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.ai-link:hover {
  border-color: var(--tertiary);
  background: var(--tertiary-10);
}

.ai-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* TOC mobile (accordéon visible sous 900px uniquement) */
.article-mobile-toc {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: none;
}

@media (max-width: 900px) {
  .article-mobile-toc {
    display: block;
  }

  .article-layout.layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .article-cta-inline {
    flex-direction: column;
  }

  .article-cta-inline-btn {
    width: 100%;
    justify-content: center;
  }

  .article-bottom-cta-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
