
/* =========================================================
   TRAFFIQ — TAUX DE CONVERSION GOOGLE ADS
   Feuille de style dédiée au nouveau guide.

   Dépendances :
   - variables.css
   - base.css
   - components.css
   - guides.css
   - articles.css

   Tous les nouveaux composants sont préfixés tc-.
========================================================= */


/* =========================================================
   VARIABLES LOCALES
========================================================= */

.tc-layout {
  --tc-deep: #003747;
  --tc-teal: #004e64;
  --tc-mint: #50ffb1;
  --tc-text: #47646e;
  --tc-border: rgba(0, 78, 100, 0.13);
  --tc-soft: #f4faf8;
  --tc-white: #ffffff;
}

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

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

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

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


/* =========================================================
   HERO
========================================================= */

.tc-hero .article-hero__description {
  max-width: 820px;
}

.tc-hero .article-hero__description strong {
  color: inherit;
}

.tc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}


/* =========================================================
   RÉPONSE RAPIDE
========================================================= */

.tc-summary {
  margin-bottom: 27px;
}

.tc-summary p {
  margin: 0 0 12px;
  line-height: 1.8;
}

.tc-summary p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   DIFFÉRENCIER CLICS / CONVERSIONS / CLIENTS
========================================================= */

.tc-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 23px 0 26px;
}

.tc-definition-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--tc-border);
  border-radius: 15px;
  background: var(--tc-white);
}

.tc-definition-card > span {
  display: block;
  margin-bottom: 12px;
  color: #007772;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tc-definition-card > strong {
  display: block;
  color: var(--tc-deep);
  font-size: 14px;
  line-height: 1.5;
}

.tc-definition-card p {
  margin: 10px 0 0;
  color: var(--tc-text);
  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   FORMULE
========================================================= */

.tc-formula {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
  padding: 25px;
  border: 1px solid var(--tc-border);
  border-radius: 17px;
  background: var(--tc-soft);
}

.tc-formula__label {
  flex: 0 0 100%;
  color: #007772;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tc-formula > strong {
  color: var(--tc-deep);
  font-size: 16px;
  line-height: 1.5;
}

.tc-formula__fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 190px;
  color: var(--tc-deep);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.tc-formula__fraction span {
  padding: 7px 10px;
}

.tc-formula__fraction span:first-child {
  border-bottom: 2px solid var(--tc-deep);
}

.tc-formula .tc-formula__multiply {
  color: #007772;
  font-size: 19px;
}


/* =========================================================
   CALCULATEUR — CONTENEUR
========================================================= */

.tc-calculator {
  overflow: hidden;
  margin: 25px 0 30px;
  border: 1px solid var(--tc-border);
  border-radius: 22px;
  background: var(--tc-white);
  box-shadow: 0 14px 38px rgba(0, 55, 71, 0.055);
}

.tc-calculator__head {
  padding: 28px 30px;
  border-bottom: 1px solid var(--tc-border);
  background: #f4faf8;
}

.tc-calculator__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #007772;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.tc-calculator__head h3 {
  margin: 0 0 10px;
  color: var(--tc-deep);
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.03em;
}

.tc-calculator__head p {
  margin: 0;
  max-width: 650px;
  color: var(--tc-text);
  font-size: 13px;
  line-height: 1.75;
}

.tc-calculator__body {
  padding: 30px;
}

.tc-calculator__footer {
  padding: 18px 30px;
  border-top: 1px solid var(--tc-border);
  background: #fafcfb;
}

.tc-calculator__footer p {
  margin: 0;
  color: var(--tc-text);
  font-size: 12px;
  line-height: 1.75;
}


/* =========================================================
   FORMULAIRE
========================================================= */

.tc-form {
  margin: 0;
}

.tc-form fieldset {
  min-width: 0;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.tc-form fieldset:last-of-type {
  margin-bottom: 27px;
}

.tc-form legend {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  color: var(--tc-deep);
  font-size: 16px;
  font-weight: 700;
}

.tc-form legend span {
  color: #6d8387;
  font-size: 12px;
  font-weight: 400;
}

.tc-fieldset-help {
  margin: -4px 0 17px;
  color: var(--tc-text);
  font-size: 13px;
  line-height: 1.7;
}

.tc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tc-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tc-field--full {
  grid-column: 1 / -1;
}

.tc-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--tc-deep);
  font-size: 13px;
  font-weight: 700;
}

.tc-field input {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #cbdedb;
  border-radius: 10px;
  background: #fff;
  color: var(--tc-deep);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  appearance: auto;
}

.tc-field input:hover {
  border-color: #7aaba5;
}

.tc-field input:focus-visible {
  outline: 3px solid rgba(20, 191, 144, 0.22);
  outline-offset: 1px;
  border-color: #0a987d;
}

.tc-field small {
  display: block;
  margin-top: 8px;
  color: #627b80;
  font-size: 11px;
  line-height: 1.6;
}

.tc-error {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff1ee;
  color: #882e21;
  font-size: 13px;
  line-height: 1.6;
}

.tc-error[hidden] {
  display: none;
}


/* =========================================================
   CALCULATEUR — RÉSULTATS
========================================================= */

.tc-results {
  margin-top: 6px;
  border: 1px solid var(--tc-border);
  border-radius: 17px;
  overflow: hidden;
}

.tc-results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 20px;
  background: #eaf7f2;
  color: var(--tc-deep);
  font-size: 13px;
  font-weight: 700;
}

.tc-results__header span:last-child {
  color: #4c7872;
  font-size: 11px;
  font-weight: 500;
}

.tc-results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.tc-result {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border-top: 1px solid var(--tc-border);
}

.tc-result:nth-child(even) {
  border-left: 1px solid var(--tc-border);
}

.tc-result > span {
  display: block;
  margin-bottom: 9px;
  color: #4a6e73;
  font-size: 12px;
  font-weight: 600;
}

.tc-result > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tc-deep);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.tc-result small {
  display: block;
  color: #6a8387;
  font-size: 11px;
  line-height: 1.6;
}

.tc-result--primary {
  background: #f3fcf8;
}

.tc-result--primary > strong {
  color: #006d61;
}


/* =========================================================
   LECTURE DU RÉSULTAT
========================================================= */

.tc-results__insight {
  padding: 23px;
  border-top: 1px solid rgba(80, 255, 177, 0.25);
  background: var(--tc-deep);
}

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

.tc-results__insight p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.8;
}

.tc-results__insight p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   NOTE ÉDITORIALE
========================================================= */

.tc-editorial-note {
  margin: 12px 0 23px;
  color: #60787d;
  font-size: 12px;
  line-height: 1.75;
}


/* =========================================================
   CAS COMPARATIFS
========================================================= */

.tc-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 23px 0 26px;
}

.tc-scenario {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--tc-border);
  border-radius: 17px;
  background: #fff;
}

.tc-scenario__label {
  display: block;
  margin-bottom: 12px;
  color: #00766e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}

.tc-scenario h3 {
  margin: 0 0 14px;
  color: var(--tc-deep);
  font-size: 18px;
  line-height: 1.4;
}

.tc-scenario ul {
  margin: 0 0 18px;
  padding-left: 19px;
}

.tc-scenario li {
  margin-bottom: 6px;
  color: var(--tc-text);
  font-size: 13px;
  line-height: 1.6;
}

.tc-scenario__result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 11px;
  background: #eaf8f1;
}

.tc-scenario__result span {
  color: var(--tc-deep);
  font-size: 12px;
  font-weight: 600;
}

.tc-scenario__result strong {
  color: var(--tc-deep);
  font-size: 23px;
  white-space: nowrap;
}

.tc-scenario > p {
  margin: 17px 0 0;
  color: var(--tc-text);
  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   CHECKLIST ÉDITORIALE
========================================================= */

.tc-checklist {
  margin: 25px 0;
  padding: 25px;
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  background: var(--tc-soft);
}

.tc-checklist h3 {
  margin: 0 0 16px;
  color: var(--tc-deep);
  font-size: 19px;
}

.tc-checklist ol {
  margin: 0;
  padding-left: 22px;
}

.tc-checklist li {
  margin-bottom: 12px;
  color: var(--tc-text);
  line-height: 1.75;
}

.tc-checklist li:last-child {
  margin-bottom: 0;
}

.tc-checklist strong {
  color: var(--tc-deep);
}


/* =========================================================
   CARTES D'ORIENTATION
========================================================= */

.tc-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 24px 0;
}

.tc-action {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  background: #fff;
}

.tc-action > span {
  display: block;
  margin-bottom: 14px;
  color: #00766f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.tc-action h3 {
  margin: 0 0 12px;
  color: var(--tc-deep);
  font-size: 16px;
  line-height: 1.45;
}

.tc-action p {
  margin: 0 0 20px;
  color: var(--tc-text);
  font-size: 12px;
  line-height: 1.75;
}

.tc-action a {
  margin-top: auto;
  color: #006e6a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   CTA ET FAQ
========================================================= */

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

.tc-cta p {
  max-width: 750px;
}

.tc-faq {
  margin-top: 22px;
}

.tc-sources {
  margin-top: 42px;
}

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


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1000px) {

  .tc-actions {
    grid-template-columns: 1fr;
  }

  .tc-action {
    padding: 21px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

  .tc-hero__actions .button {
    width: 100%;
    justify-content: center;
  }

  .tc-definition-grid,
  .tc-scenarios,
  .tc-fields {
    grid-template-columns: 1fr;
  }

  .tc-field--full {
    grid-column: auto;
  }

  .tc-definition-card {
    padding: 20px;
  }

  .tc-formula {
    padding: 20px;
    gap: 12px;
  }

  .tc-formula__label {
    flex-basis: 100%;
  }

  .tc-calculator {
    border-radius: 17px;
  }

  .tc-calculator__head,
  .tc-calculator__body {
    padding: 21px;
  }

  .tc-calculator__footer {
    padding: 16px 21px;
  }

  .tc-results__grid {
    grid-template-columns: 1fr;
  }

  .tc-result:nth-child(even) {
    border-left: 0;
  }

  .tc-result {
    padding: 19px;
  }

  .tc-result > strong {
    font-size: 27px;
  }

  .tc-results__header {
    padding: 14px 17px;
  }

  .tc-results__insight {
    padding: 19px;
  }

  .tc-scenario {
    padding: 22px;
  }

  .tc-checklist {
    padding: 20px;
  }

}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

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

  .tc-layout *,
  .tc-layout *::before,
  .tc-layout *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
