
/* =========================================================
   TRAFFIQ — TERMES DE RECHERCHE GOOGLE ADS
   Guide SEO + rapport interactif.

   Le design éditorial commun est conservé.
   Styles spécifiques préfixés tr-.
========================================================= */

@import url("/assets/css/articles.css?v=1");


/* =========================================================
   BASE
========================================================= */

.tr-layout {
  --tr-deep: #003747;
  --tr-teal: #004e64;
  --tr-mint: #50ffb1;
  --tr-muted: #526f78;
  --tr-border: rgba(0, 78, 100, 0.12);
  --tr-soft: #f4faf8;
}

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

.tr-content {
  min-width: 0;
}

.tr-content h2[id],
.tr-content section[id] {
  scroll-margin-top: 110px;
}

.tr-content a {
  text-underline-offset: 3px;
}

.tr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}


/* =========================================================
   COMPARAISON : MOT CLÉ / TERME DE RECHERCHE
========================================================= */

.tr-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0 26px;
}

.tr-concept-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--tr-border);
  border-radius: 17px;
  background: #fff;
}

.tr-concept-card__tag {
  display: block;
  margin-bottom: 13px;
  color: #007c76;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.tr-concept-card h3 {
  margin: 0 0 11px;
  color: var(--tr-deep);
  font-size: 19px;
  line-height: 1.4;
}

.tr-concept-card p {
  margin: 0 0 19px;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.75;
}

.tr-concept-card__example {
  margin-top: auto;
  padding: 17px;
  border: 1px solid rgba(0, 78, 100, 0.08);
  border-radius: 12px;
  background: var(--tr-soft);
}

.tr-concept-card__example span {
  display: block;
  margin-bottom: 7px;
  color: #688188;
  font-size: 11px;
}

.tr-concept-card__example strong {
  display: block;
  color: var(--tr-deep);
  font-size: 14px;
  line-height: 1.5;
}


/* =========================================================
   ÉTAPES POUR TROUVER LE RAPPORT
========================================================= */

.tr-steps {
  display: grid;
  gap: 0;
  margin: 23px 0 26px;
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.tr-step {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  padding: 23px;
}

.tr-step + .tr-step {
  border-top: 1px solid var(--tr-border);
}

.tr-step__number {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(0, 78, 100, 0.14);
  border-radius: 11px;
  background: #e8f9f1;
  color: var(--tr-deep);
  font-size: 12px;
  font-weight: 700;
}

.tr-step h3 {
  margin: 0 0 7px;
  color: var(--tr-deep);
  font-size: 17px;
  line-height: 1.4;
}

.tr-step p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.75;
}


/* =========================================================
   MODULE INTERACTIF — ENVELOPPE
========================================================= */

.tr-demo {
  overflow: hidden;
  margin: 27px 0 31px;
  border: 1px solid var(--tr-border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 55, 71, 0.055);
}

.tr-demo__head {
  padding: 28px 29px 24px;
  border-bottom: 1px solid var(--tr-border);
  background: var(--tr-soft);
}

.tr-demo__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #007c76;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.tr-demo__head h3 {
  margin: 0 0 9px;
  color: var(--tr-deep);
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.tr-demo__head p {
  max-width: 650px;
  margin: 0;
  color: var(--tr-muted);
  font-size: 13px;
  line-height: 1.75;
}


/* =========================================================
   FILTRES
========================================================= */

.tr-demo__toolbar {
  padding: 21px 25px;
  border-bottom: 1px solid var(--tr-border);
}

.tr-demo__toolbar-title {
  display: block;
  margin-bottom: 12px;
  color: var(--tr-deep);
  font-size: 13px;
  font-weight: 700;
}

.tr-demo__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tr-demo__filters button {
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid #cfe1dc;
  border-radius: 9px;
  background: #fff;
  color: var(--tr-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.tr-demo__filters button:hover {
  border-color: #008f78;
  background: #f0faf5;
}

.tr-demo__filters button[aria-pressed="true"] {
  border-color: var(--tr-deep);
  background: var(--tr-deep);
  color: #fff;
}

.tr-demo__filters button:focus-visible {
  outline: 3px solid #17bd8d;
  outline-offset: 3px;
}


/* =========================================================
   RAPPORT FICTIF — TABLEAU
========================================================= */

.tr-demo__table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.tr-demo__table {
  width: 100%;
  min-width: 675px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 12px;
}

.tr-demo__table thead {
  background: #f5faf8;
}

.tr-demo__table th {
  padding: 15px 14px;
  color: var(--tr-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.tr-demo__table th:not(:first-child),
.tr-demo__table td:not(:first-child) {
  text-align: center;
}

.tr-demo__table th:first-child,
.tr-demo__table td:first-child {
  min-width: 260px;
  text-align: left;
}

.tr-demo__table td {
  padding: 16px 13px;
  border-top: 1px solid var(--tr-border);
  color: var(--tr-muted);
  line-height: 1.55;
  vertical-align: middle;
}

.tr-demo__table td:first-child {
  color: var(--tr-deep);
  font-weight: 600;
}

.tr-demo__table tbody tr:hover {
  background: #f8fbfa;
}

.tr-demo__table tbody tr[hidden] {
  display: none !important;
}


/* =========================================================
   STATUTS DES RECHERCHES
========================================================= */

.tr-status {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.tr-status--relevant {
  background: #e2f8ed;
  color: #14624b;
}

.tr-status--review {
  background: #fff3dd;
  color: #826019;
}

.tr-status--outside {
  background: #f9e9e6;
  color: #93483b;
}


/* =========================================================
   RÉSULTATS DU FILTRAGE
========================================================= */

.tr-demo__summary {
  border-top: 1px solid var(--tr-border);
}

.tr-demo__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f5faf8;
}

.tr-demo__stats > div {
  min-width: 0;
  padding: 19px 15px;
  border-right: 1px solid var(--tr-border);
}

.tr-demo__stats > div:last-child {
  border-right: 0;
}

.tr-demo__stats span {
  display: block;
  margin-bottom: 8px;
  color: #55747b;
  font-size: 11px;
  line-height: 1.5;
}

.tr-demo__stats strong {
  display: block;
  color: var(--tr-deep);
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.tr-demo__insight {
  padding: 23px 26px;
  background: var(--tr-deep);
}

.tr-demo__insight > span {
  display: block;
  margin-bottom: 11px;
  color: var(--tr-mint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.tr-demo__insight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.8;
}

.tr-demo__footer {
  padding: 15px 25px;
  background: #fafcfb;
}

.tr-demo__footer p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 12px;
  line-height: 1.75;
}

.tr-demo__noscript {
  padding: 13px 25px;
  color: var(--tr-muted);
  font-size: 12px;
}


/* =========================================================
   TROIS TYPES DE DÉCISION
========================================================= */

.tr-decision-list {
  margin: 25px 0;
  border: 1px solid var(--tr-border);
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
}

.tr-decision-item {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
}

.tr-decision-item + .tr-decision-item {
  border-top: 1px solid var(--tr-border);
}

.tr-decision-item__number {
  display: block;
  padding-top: 4px;
  color: #008578;
  font-size: 13px;
  font-weight: 700;
}

.tr-decision-item h3 {
  margin: 0 0 12px;
  color: var(--tr-deep);
  font-size: 18px;
  line-height: 1.4;
}

.tr-decision-item p {
  margin: 0 0 11px;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.8;
}

.tr-decision-item p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   ENCART MÉTHODE D'EXCLUSION
========================================================= */

.tr-rule-box {
  margin: 24px 0;
  padding: 27px;
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  background: var(--tr-soft);
}

.tr-rule-box__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #007d73;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tr-rule-box h3 {
  margin: 0 0 15px;
  color: var(--tr-deep);
  font-size: 19px;
}

.tr-rule-box ol {
  margin: 0;
  padding-left: 22px;
}

.tr-rule-box li {
  margin-bottom: 12px;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tr-rule-box li:last-child {
  margin-bottom: 0;
}


/* =========================================================
   ROUTINE D'ANALYSE
========================================================= */

.tr-routine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}

.tr-routine article {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  background: #fff;
}

.tr-routine article > span {
  display: block;
  margin-bottom: 13px;
  color: #007d73;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.tr-routine h3 {
  margin: 0 0 10px;
  color: var(--tr-deep);
  font-size: 17px;
  line-height: 1.4;
}

.tr-routine p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 13px;
  line-height: 1.75;
}


/* =========================================================
   ERREURS FRÉQUENTES
========================================================= */

.tr-errors {
  margin: 23px 0 27px;
}

.tr-errors > div {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--tr-border);
}

.tr-errors > div:first-child {
  border-top: 1px solid var(--tr-border);
}

.tr-errors strong {
  color: #007e76;
  font-size: 12px;
  font-weight: 700;
  padding-top: 4px;
}

.tr-errors p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.75;
}

.tr-errors b {
  color: var(--tr-deep);
}


/* =========================================================
   CTA TRAFFIQ
========================================================= */

.tr-cta {
  margin: 29px 0 36px;
}

.tr-cta__eyebrow {
  display: block;
  margin-bottom: 11px;
  color: #007e76;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.tr-cta h3 {
  margin-top: 0;
}

.tr-cta p {
  max-width: 740px;
}

.tr-sources {
  margin-top: 38px;
}

.tr-sources li {
  margin-bottom: 8px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

  .tr-demo__table th,
  .tr-demo__table td {
    padding-left: 11px;
    padding-right: 11px;
  }

}

@media (max-width: 760px) {

  .tr-concept-grid,
  .tr-routine {
    grid-template-columns: 1fr;
  }

  .tr-demo__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-demo__stats > div:nth-child(2) {
    border-right: 0;
  }

  .tr-demo__stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--tr-border);
  }

}

@media (max-width: 600px) {

  .tr-hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .tr-concept-card {
    padding: 21px;
  }

  .tr-step {
    padding: 19px;
    gap: 13px;
  }

  .tr-step__number {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .tr-demo {
    border-radius: 16px;
  }

  .tr-demo__head,
  .tr-demo__toolbar {
    padding: 20px;
  }

  .tr-demo__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tr-demo__filters button {
    padding: 10px 8px;
    font-size: 11px;
  }

  .tr-demo__stats > div {
    padding: 16px;
  }

  .tr-demo__stats strong {
    font-size: 23px;
  }

  .tr-demo__insight {
    padding: 20px;
  }

  .tr-demo__footer {
    padding: 16px 20px;
  }

  .tr-decision-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
    padding: 20px;
  }

  .tr-decision-item h3 {
    font-size: 17px;
  }

  .tr-rule-box {
    padding: 21px;
  }

  .tr-routine article {
    padding: 21px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .tr-demo__filters button {
    transition: none;
  }

}
