
/* =========================================================
   TRAFFIQ — GOOGLE ADS POUR TPE ET PME

   Alignement graphique avec /pour-qui/artisans/

   On réutilise les mêmes composants, espacements,
   cartes, tableaux et panneau Comprendre / Décider / Agir.

   Seuls les modules propres à TPE / PME sont ajoutés ici.
========================================================= */

@import url("/assets/css/artisans.css?v=2");


/* =========================================================
   RYTHME ET TYPOGRAPHIE PARTAGÉS
========================================================= */

.tp-hero .resource-hero__description strong {
  color: #fff;
}

.tp-section--soft {
  background: rgba(0, 78, 100, 0.022);
}

.tp-intro {
  padding-top: 48px;
  padding-bottom: 52px;
}

.tp-reading {
  max-width: 850px;
}

.tp-reading > p {
  max-width: 850px;
  margin: 18px 0 0;
  line-height: 1.8;
}

.tp-reading > p + p {
  margin-top: 12px;
}

.tp-short-answer {
  margin: 0 0 22px;
}

.tp-short-answer h2 {
  margin: 9px 0 12px;
  color: var(--traffiq-deep-teal);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.38;
}

.tp-short-answer p {
  margin: 0;
  line-height: 1.75;
}

.tp-section-heading .tp-kicker {
  display: block;
}

.tp-section-heading {
  margin-bottom: 26px;
}

.tp-footnote {
  max-width: 850px;
  margin: 15px 0 0;
  color: var(--traffiq-text-muted);
  font-size: 12px;
  line-height: 1.75;
}

.tp-section a:not(.button) {
  text-underline-offset: 3px;
}

.tp-section[id] {
  scroll-margin-top: 100px;
}


/* =========================================================
   CARTES « EST-CE ADAPTÉ ? »
========================================================= */

.tp-compare {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-decision-card {
  display: flex;
  flex-direction: column;
}

.tp-decision-card .tp-decision-card__top {
  display: block;
}

.tp-decision-card .tp-decision-card__takeaway {
  margin-top: auto;
  padding-top: 14px;
  color: var(--traffiq-deep-teal);
}


/* =========================================================
   EXEMPLE FIL ROUGE
========================================================= */

.tp-split {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.tp-split__lead h2 {
  max-width: 620px;
  margin: 0 0 14px;
  color: var(--traffiq-deep-teal);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.tp-split__lead > p {
  margin: 0;
  line-height: 1.8;
  color: var(--traffiq-text-muted);
}

.tp-context {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 78, 100, 0.09);
  border-radius: 14px;
  background: rgba(0, 78, 100, 0.04);
}

.tp-context strong {
  color: var(--traffiq-deep-teal);
}

.tp-context p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.tp-split__detail {
  padding: 25px 27px;
  border: 1px solid rgba(0, 78, 100, 0.12);
  border-radius: 18px;
  background: var(--traffiq-white);
  box-shadow: var(--shadow-sm);
}

.tp-split__detail h3 {
  margin: 0 0 19px;
  color: var(--traffiq-deep-teal);
  font-size: 19px;
}

.tp-step-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.tp-step-list li {
  display: flex;
  align-items: start;
  gap: 15px;
}

.tp-step-list li > span {
  color: var(--traffiq-teal);
  font-weight: 700;
  font-size: 12px;
  padding-top: 3px;
}

.tp-step-list strong {
  display: block;
  font-size: 14px;
  color: var(--traffiq-deep-teal);
}

.tp-step-list p {
  margin: 5px 0 0;
  color: var(--traffiq-text-muted);
  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   BILAN CHIFFRÉ

   Présentation alignée sur la page éditoriale.
========================================================= */

.tp-example-metrics {
  margin-top: 25px;
  padding: 28px 30px;
  border: 1px solid rgba(0, 78, 100, 0.12);
  border-radius: 20px;
  background: #f5faf8;
}

.tp-example-metrics h3 {
  margin: 0 0 9px;
  color: var(--traffiq-deep-teal);
  font-size: 21px;
}

.tp-example-metrics > p {
  margin: 0 0 18px;
  color: var(--traffiq-text-muted);
  font-size: 14px;
}

.tp-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.tp-metric-grid > div {
  padding: 16px;
  border: 1px solid rgba(0, 78, 100, 0.1);
  border-radius: 13px;
  background: #fff;
}

.tp-metric-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--traffiq-text-muted);
  font-size: 12px;
}

.tp-metric-grid strong {
  display: block;
  font-size: clamp(19px, 2.6vw, 25px);
  color: var(--traffiq-deep-teal);
}

.tp-example-takeaway {
  margin: 18px 0 0;
  background: #e8f9f1;
}

.tp-example-takeaway p {
  margin: 7px 0 0;
  line-height: 1.75;
}

.tp-text-link {
  display: inline-block;
  margin-top: 17px;
  font-size: 14px;
  font-weight: 700;
  color: var(--traffiq-teal);
}


/* =========================================================
   TABLEAU

   Réutilise article-table.
========================================================= */

.tp-table-wrap {
  overflow-x: auto;
}

.tp-table {
  min-width: 620px;
}

.tp-table td:first-child {
  font-weight: 700;
  color: var(--traffiq-deep-teal);
}

.tp-tip {
  margin-top: 22px;
}

.tp-tip p {
  margin: 5px 0 0;
}


/* =========================================================
   MÉTHODE DE LANCEMENT
========================================================= */

.tp-how-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-how-grid article {
  padding: 23px 21px;
  border: 1px solid rgba(0, 78, 100, 0.12);
  border-radius: 16px;
  background: #fff;
}

.tp-how-grid .tp-how-number {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--traffiq-teal);
  font-size: 12px;
  font-weight: 700;
}

.tp-how-grid h3 {
  margin: 0 0 9px;
  color: var(--traffiq-deep-teal);
  font-size: 17px;
  line-height: 1.42;
}

.tp-how-grid p {
  margin: 0;
  color: var(--traffiq-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.tp-deep-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 24px 0 0;
}

.tp-deep-link strong {
  display: block;
  margin-bottom: 7px;
}

.tp-deep-link p {
  margin: 0;
  line-height: 1.7;
}

.tp-deep-link .button {
  flex-shrink: 0;
}


/* =========================================================
   OUTIL DE DIAGNOSTIC

   Même panneau sobre que les autres modules.
========================================================= */

.tp-section--tool {
  background: rgba(0, 78, 100, 0.03);
}

.tp-tool-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
}

.tp-tool-intro h2 {
  margin: 0 0 14px;
  color: var(--traffiq-deep-teal);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.28;
}

.tp-tool-intro > p {
  margin: 0 0 13px;
  line-height: 1.75;
  color: var(--traffiq-text-muted);
}

.tp-tool {
  padding: 24px;
  border: 1px solid rgba(0, 78, 100, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tp-tool__label {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--traffiq-deep-teal);
}

.tp-tool__choices {
  display: grid;
  gap: 9px;
}

.tp-tool__choices button {
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  color: var(--traffiq-deep-teal);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  background: #f7fbfa;
  border: 1px solid rgba(0, 78, 100, 0.13);
  border-radius: 11px;
  cursor: pointer;
}

.tp-tool__choices button:hover {
  border-color: var(--traffiq-teal);
}

.tp-tool__choices button[aria-pressed="true"] {
  border-color: #168f77;
  background: #ebfaf2;
  box-shadow: inset 4px 0 0 #18be89;
  font-weight: 700;
}

.tp-tool__answer {
  margin-top: 18px;
  padding: 24px;
  border-radius: 15px;
  background: var(--traffiq-deep-teal);
  color: #fff;
}

.tp-tool__answer > span {
  color: var(--traffiq-mint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tp-tool__answer h3 {
  margin: 10px 0;
  color: #fff;
  font-size: 18px;
}

.tp-tool__answer p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.7;
}

.tp-tool__answer a {
  color: var(--traffiq-mint) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tp-tool__choices button:focus-visible {
  outline: 3px solid #14bd8e;
  outline-offset: 2px;
}


/* =========================================================
   MODES DE GESTION
========================================================= */

.tp-management {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tp-management article {
  padding: 25px;
  border: 1px solid rgba(0, 78, 100, 0.12);
  border-radius: 16px;
  background: #fff;
}

.tp-management h3 {
  margin: 0 0 12px;
  color: var(--traffiq-deep-teal);
  font-size: 18px;
}

.tp-management p {
  margin: 0 0 16px;
  color: var(--traffiq-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tp-management strong {
  color: var(--traffiq-deep-teal);
  font-size: 13px;
}

.tp-management strong + p {
  margin: 7px 0 0;
}


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

.tp-brand-action {
  display: flex;
  margin-top: 20px;
}


/* =========================================================
   RESSOURCES INTERNES
========================================================= */

.tp-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-resource-grid article {
  display: flex;
  flex-direction: column;
}

.tp-resource-grid article > span {
  margin-bottom: 14px;
  color: var(--traffiq-teal);
  font-size: 11px;
  font-weight: 700;
}

.tp-resource-grid article > a {
  margin-top: auto;
  padding-top: 9px;
  color: var(--traffiq-teal);
  font-weight: 700;
  font-size: 14px;
}

.tp-resource-sibling {
  max-width: 100% !important;
}


/* =========================================================
   FAQ
========================================================= */

.tp-faq {
  margin-top: 20px;
}


/* =========================================================
   SOURCES
========================================================= */

.tp-sources {
  padding-top: 45px;
  padding-bottom: 47px;
  background: rgba(0, 78, 100, 0.018);
}

.tp-sources h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.tp-sources p,
.tp-sources li {
  color: var(--traffiq-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.tp-sources ul {
  margin: 12px 0;
  padding-left: 21px;
}

.tp-sources li {
  margin-bottom: 7px;
}

.tp-sources a {
  color: var(--traffiq-teal);
  text-underline-offset: 3px;
}


/* =========================================================
   RESPONSIVE — ÉCRANS INTERMÉDIAIRES
========================================================= */

@media (max-width: 1000px) {

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

  .tp-split,
  .tp-tool-layout {
    gap: 25px;
  }

}


/* =========================================================
   RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 900px) {

  .tp-compare,
  .tp-resource-grid,
  .tp-management {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-split,
  .tp-tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-deep-link {
    flex-direction: column;
    align-items: flex-start;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

  .tp-intro {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .tp-short-answer h2 {
    font-size: 21px;
  }

  .tp-compare,
  .tp-resource-grid,
  .tp-management,
  .tp-how-grid {
    grid-template-columns: 1fr;
  }

  .tp-split__detail,
  .tp-tool {
    padding: 20px;
  }

  .tp-example-metrics {
    padding: 20px;
    border-radius: 16px;
  }

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

  .tp-metric-grid > div {
    padding: 13px;
  }

  .tp-tool__answer {
    padding: 20px;
  }

  .tp-deep-link .button,
  .tp-brand-action .button {
    width: 100%;
    justify-content: center;
  }

}


/* =========================================================
   ACCESSIBILITÉ — MOUVEMENTS RÉDUITS
========================================================= */

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

  .tp-tool__choices button {
    transition: none;
  }

}
