/* =============================================================================
   anti-cliche-v11.css  —  ElectroCAD landing premium typographic pass
   ----------------------------------------------------------------------------
   Mission : retirer le style "AI-template-2023" (eyebrows en pilule rouge,
   ghost buttons aux bordures rouges, titres au remplissage transparent gradient)
   et le remplacer par une typographie premium type Linear / Stripe / Vercel 2025.

   Scope : landing (index.html) + SEO shell (_seo-shell.html).
   Hors scope : nav v9, footer v10, admin email v10, hero logo (animation),
                CTA primaire "Essayer 30 jours gratuits".

   Charge APRES style.css / v7-unified.css / preview-* mais AVANT nav/footer/v10
   pour pouvoir surcharger les patterns cliche sans casser les composants
   proteges.
   ========================================================================== */

/* =============================================================================
   1. EYEBROWS / CHAPTER LABELS - kill the pill
   ----------------------------------------------------------------------------
   Cibles : .land-eyebrow (hero) + .sec-num (Pourquoi/Pour qui/Comparatif/etc.)
   Cible aussi le polish preview (preview-sections-polish.css:119, 999px).
   ========================================================================== */
.land-eyebrow,
.sec-num,
[data-theme="light"] .land-eyebrow,
[data-theme="light"] .sec-num {
  /* Texte mono pur, sans contenant */
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #DC2626 !important;
  font-weight: 500 !important;

  /* Reset complet du contenant cliche */
  display: inline-flex !important;
  align-items: center !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: var(--sp-4, 16px);
}

/* Light mode : meme rouge plein, lecture nette sur cream */
[data-theme="light"] .land-eyebrow,
[data-theme="light"] .sec-num {
  color: #B91C1C !important;
}

/* Hairline decorative 24px avant le texte (separateur typographique) */
.land-eyebrow::before,
.sec-num::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Tick legacy : on l'avait masque, on garde */
.land-eyebrow-tick { display: none !important; }

/* =============================================================================
   2. GHOST / OUTLINED BUTTONS - convert secondary CTAs to text-link with chevron
   ----------------------------------------------------------------------------
   Cibles visibles : .land-cta .btn-outline + .btn-outline.btn-lg dans le DOM
   landing ("Voir comment ca marche", "Voir les tarifs" en CTA final).
   On exclut explicitement les boutons cookie consent (.cc-* / data-cc-action)
   qui ont un autre contexte legal et un look ghost neutre.
   ========================================================================== */

/* Reset hard du ghost cliche sur le landing - supprime border rouge + tint */
.land-cta .btn-outline.btn-lg,
.land-cta-fin .btn-outline.btn-lg,
a.btn.btn-outline.btn-lg,
a.btn-outline.btn-lg {
  /* Suppression du contenant ghost */
  border: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 12px 4px !important;

  /* Typo lien-action premium */
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  letter-spacing: -0.005em !important;
  color: #F1F5F9 !important;
  text-decoration: none !important;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: color 200ms ease, gap 200ms ease;
}

[data-theme="light"] .land-cta .btn-outline.btn-lg,
[data-theme="light"] .land-cta-fin .btn-outline.btn-lg,
[data-theme="light"] a.btn.btn-outline.btn-lg,
[data-theme="light"] a.btn-outline.btn-lg {
  color: #0A0A0B !important;
}

/* Chevron suffixe inject typographiquement */
.land-cta .btn-outline.btn-lg::after,
.land-cta-fin .btn-outline.btn-lg::after,
a.btn.btn-outline.btn-lg::after,
a.btn-outline.btn-lg::after {
  content: "->";
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.05em;
  line-height: 1;
  margin-left: 4px;
  transition: transform 240ms cubic-bezier(0.32, 0, 0.16, 1);
  color: inherit;
  will-change: transform;
}

/* Hover : rouge accent + chevron qui se decale + hairline underline */
.land-cta .btn-outline.btn-lg:hover,
.land-cta .btn-outline.btn-lg:focus-visible,
.land-cta-fin .btn-outline.btn-lg:hover,
.land-cta-fin .btn-outline.btn-lg:focus-visible,
a.btn.btn-outline.btn-lg:hover,
a.btn.btn-outline.btn-lg:focus-visible,
a.btn-outline.btn-lg:hover,
a.btn-outline.btn-lg:focus-visible {
  color: #DC2626 !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

[data-theme="light"] .land-cta .btn-outline.btn-lg:hover,
[data-theme="light"] .land-cta-fin .btn-outline.btn-lg:hover,
[data-theme="light"] a.btn.btn-outline.btn-lg:hover,
[data-theme="light"] a.btn-outline.btn-lg:hover {
  color: #B91C1C !important;
}

.land-cta .btn-outline.btn-lg:hover::after,
.land-cta .btn-outline.btn-lg:focus-visible::after,
.land-cta-fin .btn-outline.btn-lg:hover::after,
.land-cta-fin .btn-outline.btn-lg:focus-visible::after,
a.btn.btn-outline.btn-lg:hover::after,
a.btn.btn-outline.btn-lg:focus-visible::after,
a.btn-outline.btn-lg:hover::after,
a.btn-outline.btn-lg:focus-visible::after {
  transform: translateX(4px);
}

/* Focus visible : 2px outline accent (WCAG 2.4.11) sans redonner du contenant */
.land-cta .btn-outline.btn-lg:focus-visible,
.land-cta-fin .btn-outline.btn-lg:focus-visible,
a.btn.btn-outline.btn-lg:focus-visible,
a.btn-outline.btn-lg:focus-visible {
  outline: 2px solid #DC2626 !important;
  outline-offset: 4px;
  border-radius: 2px !important;
}

/* =============================================================================
   3. TOOL TAGS - utility chip premium (mono uppercase, hairline neutre)
   ----------------------------------------------------------------------------
   Cibles : .tools-tag (Inserer bornier, Identifier composant, etc.)
   Reste un contenant (rythme visuel demande) mais perd le rouge + la pilule.
   ========================================================================== */
.tools-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  padding: 5px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--text2, #94A3B8) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="light"] .tools-tag {
  border-color: rgba(10, 10, 11, 0.10) !important;
  color: var(--text2, #475569) !important;
}

/* La variante is-accent (rare) reste discrete : pas de fond, accent texte */
.tools-tag.is-accent {
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
  background: transparent !important;
}
[data-theme="light"] .tools-tag.is-accent {
  color: #B91C1C !important;
  border-color: rgba(185, 28, 28, 0.25) !important;
}

/* =============================================================================
   4. STROKE / GRADIENT TITLES - solid text, accent on a single keyword
   ----------------------------------------------------------------------------
   Cibles :
   - .text-stroke utilitaire (style.css:509)
   - .hero-title .text-gradient / .text-stroke (style.css:1262)
   - .text-gradient-purple-inline (style.css:2979)
   - #problem .metric:first-child .metric-val (preview-modernize-v2.css:95)
   PROTEGE : .hero-logo-word (v7-unified.css:834) - animation hero, leave alone.
   ========================================================================== */

/* Generic utility classes : remove transparent fill */
.text-stroke,
.text-gradient,
.text-gradient-accent,
.text-gradient-warm,
.text-gradient-success,
.text-gradient-purple-inline {
  -webkit-text-stroke: 0 !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--text, #F1F5F9) !important;
}

.text-gradient-accent,
.text-gradient-purple-inline {
  color: #DC2626 !important;
}

[data-theme="light"] .text-gradient-accent,
[data-theme="light"] .text-gradient-purple-inline {
  color: #B91C1C !important;
}

/* Hero h1 : on neutralise le gradient sur span.text-stroke / .text-gradient
   tout en preservant le span.kw rouge si present. */
.hero-title .text-stroke,
.hero-title .text-gradient {
  background-image: none !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text, #F1F5F9) !important;
}

/* #problem .metric numerique : solid accent au lieu de gradient transparent */
#problem .metric:first-child .metric-val {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #DC2626 !important;
  color: #DC2626 !important;
}

[data-theme="light"] #problem .metric:first-child .metric-val {
  -webkit-text-fill-color: #B91C1C !important;
  color: #B91C1C !important;
}

/* =============================================================================
   5. EXCESS RADIUS ON HEADINGS - ensure titles never have radius
   ========================================================================== */
.land-h1,
.land-h2,
.sec-title,
.section-title,
h1, h2, h3,
h1.land-h1,
h2.sec-title {
  border-radius: 0 !important;
}

/* =============================================================================
   6. .ec-link-arrow - utility class for new secondary CTA pattern (HTML usage)
   ----------------------------------------------------------------------------
   Pour les nouveaux CTA secondaires ecrits directement avec cette classe
   (et non via .btn.btn-outline.btn-lg). Pattern preferred.
   ========================================================================== */
.ec-link-arrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: #F1F5F9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  transition: color 200ms ease;
  position: relative;
}

[data-theme="light"] .ec-link-arrow { color: #0A0A0B; }

.ec-link-arrow > [aria-hidden],
.ec-link-arrow::after {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: transform 240ms cubic-bezier(0.32, 0, 0.16, 1);
  will-change: transform;
}

.ec-link-arrow:hover,
.ec-link-arrow:focus-visible {
  color: #DC2626;
  outline: none;
}

[data-theme="light"] .ec-link-arrow:hover,
[data-theme="light"] .ec-link-arrow:focus-visible {
  color: #B91C1C;
}

.ec-link-arrow:hover > [aria-hidden],
.ec-link-arrow:focus-visible > [aria-hidden],
.ec-link-arrow:hover::after,
.ec-link-arrow:focus-visible::after {
  transform: translateX(4px);
}

.ec-link-arrow:focus-visible {
  outline: 2px solid #DC2626;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Hairline underline subtile au hover */
.ec-link-arrow::before {
  content: "";
  position: absolute;
  left: 0; right: 24px; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 200ms ease;
}
.ec-link-arrow:hover::before,
.ec-link-arrow:focus-visible::before { opacity: 0.6; }

/* =============================================================================
   FIN anti-cliche-v11.css
   ========================================================================== */
