
/* =========================================================
   TRAFFIQ — MOTS-CLÉS À EXCLURE GOOGLE ADS
   Styles dédiés au guide SEO.
   Réutilise le design des articles existants.
========================================================= */

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


/* VARIABLES LOCALES */

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

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

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

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

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

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

.me-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #007b70;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}


/* MOT CLÉ POSITIF VS NÉGATIF */

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

.me-contrast article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--me-border);
  border-radius: 17px;
  background: var(--me-white);
}

.me-contrast h3 {
  margin: 0 0 11px;
  color: var(--me-deep);
  font-size: 18px;
  line-height: 1.45;
}

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

.me-query {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(0, 78, 100, 0.08);
  border-radius: 12px;
  background: var(--me-soft);
  color: var(--me-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}


/* OBSERVER, COMPRENDRE, VÉRIFIER, DÉCIDER */

.me-process {
  margin: 24px 0;
  border: 1px solid var(--me-border);
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
}

.me-process article {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 21px 24px;
}

.me-process article + article {
  border-top: 1px solid var(--me-border);
}

.me-process article > span {
  color: #008577;
  font-size: 12px;
  font-weight: 700;
  padding-top: 4px;
}

.me-process h3 {
  margin: 0 0 6px;
  color: var(--me-deep);
  font-size: 17px;
}

.me-process p {
  margin: 0;
  color: var(--me-muted);
  font-size: 13px;
  line-height: 1.7;
}


/* LES TYPES DE CORRESPONDANCE */

.me-match-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0;
}

.me-match-cards article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--me-border);
  border-radius: 15px;
  background: #fff;
}

.me-match-cards h3 {
  margin: 0 0 12px;
  color: var(--me-deep);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.me-match-cards p {
  margin: 0 0 15px;
  color: var(--me-muted);
  font-size: 12px;
  line-height: 1.75;
}

.me-match-cards small {
  display: block;
  margin-top: auto;
  color: #00766d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}


/* SIMULATEUR — CONTENEUR */

.me-simulator {
  overflow: hidden;
  margin: 26px 0 30px;
  border: 1px solid var(--me-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 55, 71, 0.055);
}

.me-simulator__head {
  padding: 27px 29px;
  border-bottom: 1px solid var(--me-border);
  background: var(--me-soft);
}

.me-simulator__head h3 {
  margin: 0 0 10px;
  color: var(--me-deep);
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.me-simulator__head p {
  margin: 0;
  color: var(--me-muted);
  font-size: 13px;
  line-height: 1.7;
}

.me-simulator__head p strong {
  color: var(--me-deep);
}

.me-simulator__controls {
  padding: 22px 26px;
}

.me-simulator__controls > p {
  margin: 0 0 13px;
  color: var(--me-deep);
  font-size: 13px;
  font-weight: 700;
}

.me-simulator__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.me-simulator__buttons button {
  padding: 11px 14px;
  border: 1px solid #cedeDA;
  border-radius: 10px;
  background: #fff;
  color: var(--me-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease;
}

.me-simulator__buttons button:hover {
  border-color: #008c77;
  background: #f0faf5;
}

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

.me-simulator__buttons button:focus-visible {
  outline: 3px solid #15b888;
  outline-offset: 3px;
}

.me-simulator__syntax {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 19px;
  padding: 15px 17px;
  border: 1px solid var(--me-border);
  border-radius: 11px;
  background: var(--me-soft);
}

.me-simulator__syntax span {
  color: var(--me-muted);
  font-size: 12px;
}

.me-simulator__syntax code {
  padding: 6px 9px;
  border-radius: 7px;
  background: #fff;
  color: var(--me-deep);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}


/* SIMULATEUR — TABLEAU */

.me-simulator__table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.me-simulator__table {
  width: 100%;
  min-width: 450px;
  border-collapse: collapse;
  font-size: 13px;
}

.me-simulator__table thead {
  background: #edf7f3;
}

.me-simulator__table th {
  padding: 15px 22px;
  color: var(--me-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.me-simulator__table th:last-child,
.me-simulator__table td:last-child {
  text-align: right;
}

.me-simulator__table td {
  padding: 16px 22px;
  border-top: 1px solid var(--me-border);
  color: var(--me-muted);
  line-height: 1.6;
}

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

.me-simulator__table tbody tr:hover {
  background: #fafcfb;
}

.me-result {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f9e9e6;
  color: #923e35;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.me-result--allowed {
  background: #e8f8ef;
  color: #176149;
}


/* SIMULATEUR — EXPLICATION */

.me-simulator__insight {
  padding: 24px 27px;
  background: var(--me-deep);
  color: #fff;
}

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

.me-simulator__insight strong {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
}

.me-simulator__insight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.75;
}

.me-simulator__note {
  margin: 0;
  padding: 17px 25px;
  background: #fafcfb;
  color: var(--me-muted);
  font-size: 11px;
  line-height: 1.75;
}


/* EXEMPLES MÉTIERS */

.me-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

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

.me-example h3 {
  margin: 0 0 11px;
  color: var(--me-deep);
  font-size: 17px;
  line-height: 1.45;
}

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

.me-example p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.me-example ul {
  margin: 0 0 17px;
  padding-left: 18px;
}

.me-example li {
  margin-bottom: 9px;
  color: var(--me-deep);
  font-size: 12px;
  line-height: 1.6;
}


/* PROCÉDURE GOOGLE ADS */

.me-instructions {
  margin: 24px 0;
  border: 1px solid var(--me-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.me-instruction {
  display: flex;
  gap: 18px;
  padding: 23px;
}

.me-instruction + .me-instruction {
  border-top: 1px solid var(--me-border);
}

.me-instruction > span {
  color: #007d71;
  font-size: 13px;
  font-weight: 700;
  padding-top: 3px;
}

.me-instruction h3 {
  margin: 0 0 9px;
  color: var(--me-deep);
  font-size: 17px;
}

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


/* PORTÉE DES EXCLUSIONS */

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

.me-scope-grid article {
  padding: 22px;
  border: 1px solid var(--me-border);
  border-radius: 16px;
  background: #fff;
}

.me-scope-grid h3 {
  margin: 0 0 11px;
  color: var(--me-deep);
  font-size: 17px;
}

.me-scope-grid p {
  margin: 0;
  color: var(--me-muted);
  font-size: 13px;
  line-height: 1.7;
}


/* ERREURS */

.me-mistakes {
  margin: 24px 0 28px;
}

.me-mistakes article {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--me-border);
}

.me-mistakes article:first-child {
  border-top: 1px solid var(--me-border);
}

.me-mistakes article > span {
  color: #007e72;
  font-size: 12px;
  font-weight: 700;
  padding-top: 4px;
}

.me-mistakes h3 {
  margin: 0 0 8px;
  color: var(--me-deep);
  font-size: 17px;
  line-height: 1.4;
}

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


/* CHECKLIST */

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

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

.me-checklist ul {
  margin: 0;
  padding-left: 19px;
}

.me-checklist li {
  margin-bottom: 12px;
  color: var(--me-muted);
  font-size: 14px;
  line-height: 1.75;
}

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

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


/* ROUTINE */

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

.me-routine > div {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--me-border);
  border-radius: 15px;
  background: #fff;
}

.me-routine span {
  display: block;
  margin-bottom: 10px;
  color: #007a72;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.me-routine strong {
  display: block;
  margin-bottom: 9px;
  color: var(--me-deep);
  font-size: 16px;
}

.me-routine p {
  margin: 0;
  color: var(--me-muted);
  font-size: 12px;
  line-height: 1.7;
}


/* CTA ET SOURCES */

.me-cta {
  margin: 28px 0 35px;
}

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

.me-sources {
  margin-top: 40px;
}

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


/* RESPONSIVE — TABLETTE */

@media (max-width: 1024px) {

  .me-match-cards,
  .me-examples,
  .me-scope-grid {
    grid-template-columns: 1fr;
  }

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

}


/* RESPONSIVE — MOBILE */

@media (max-width: 650px) {

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

  .me-contrast,
  .me-routine {
    grid-template-columns: 1fr;
  }

  .me-contrast article,
  .me-example,
  .me-scope-grid article {
    padding: 20px;
  }

  .me-match-cards article {
    padding: 20px;
  }

  .me-process article,
  .me-instruction {
    padding: 20px;
    gap: 13px;
  }

  .me-simulator {
    border-radius: 16px;
  }

  .me-simulator__head,
  .me-simulator__controls {
    padding: 20px;
  }

  .me-simulator__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .me-simulator__buttons button {
    width: 100%;
  }

  .me-simulator__insight {
    padding: 21px;
  }

  .me-simulator__insight strong {
    font-size: 18px;
  }

  .me-simulator__note {
    padding: 16px 20px;
  }

  .me-checklist {
    padding: 20px;
  }

}


/* ACCESSIBILITÉ */

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

  .me-simulator__buttons button {
    transition: none;
  }

}
