
/* =========================================================
   TRAFFIQ — CAMPAGNE GOOGLE ADS NE DÉMARRE PAS
   Styles propres au guide.

   Le design des pages existantes n'est pas modifié.
   Tous les composants sont préfixés nd-.
========================================================= */

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


/* VARIABLES LOCALES */

.nd-layout {
  --nd-deep: #003747;
  --nd-blue: #004e64;
  --nd-mint: #50ffb1;
  --nd-muted: #536e77;
  --nd-line: rgba(0, 78, 100, .14);
  --nd-soft: #f4faf8;
}

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

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

.nd-content [id] {
  scroll-margin-top: 110px;
}

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

.nd-eyebrow {
  display: block;
  margin-bottom: 11px;
  color: #007d70;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.nd-hero-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}


/* =========================================================
   TROIS SITUATIONS
========================================================= */

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

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

.nd-situation__number {
  display: block;
  margin-bottom: 14px;
  color: #008777;
  font-size: 12px;
  font-weight: 700;
}

.nd-situation h3 {
  margin: 0 0 12px;
  color: var(--nd-deep);
  font-size: 17px;
  line-height: 1.4;
}

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

.nd-situation > strong {
  display: block;
  margin-top: auto;
  color: #00756d;
  font-size: 12px;
  line-height: 1.6;
}


/* =========================================================
   TABLEAU DE LECTURE
========================================================= */

.nd-read-table {
  overflow-x: auto;
  max-width: 100%;
  margin: 24px 0 28px;
  border: 1px solid var(--nd-line);
  border-radius: 16px;
}

.nd-read-table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
}

.nd-read-table thead {
  background: var(--nd-soft);
}

.nd-read-table th,
.nd-read-table td {
  padding: 17px 19px;
  text-align: left;
  line-height: 1.65;
}

.nd-read-table th {
  color: var(--nd-deep);
  font-size: 12px;
  font-weight: 700;
}

.nd-read-table td {
  border-top: 1px solid var(--nd-line);
  color: var(--nd-muted);
  font-size: 13px;
  vertical-align: top;
}

.nd-read-table td:first-child {
  color: var(--nd-deep);
}


/* =========================================================
   DIAGNOSTIC INTERACTIF
========================================================= */

.nd-diagnostic {
  overflow: hidden;
  margin: 28px 0 32px;
  border: 1px solid var(--nd-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 55, 71, .06);
}

.nd-diagnostic__intro {
  padding: 27px 28px;
  background: var(--nd-soft);
  border-bottom: 1px solid var(--nd-line);
}

.nd-diagnostic__intro h3 {
  margin: 0 0 10px;
  color: var(--nd-deep);
  font-size: clamp(21px, 2.5vw, 25px);
  line-height: 1.4;
  letter-spacing: -.025em;
}

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


/* CHOIX DU PROBLÈME */

.nd-diagnostic__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 23px;
  border-bottom: 1px solid var(--nd-line);
}

.nd-diagnostic__choices button {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid #d3e2dd;
  border-radius: 12px;
  background: #fff;
  color: var(--nd-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease;
}

.nd-diagnostic__choices button > span {
  color: #007b71;
  font-size: 11px;
  font-weight: 700;
  padding-top: 2px;
}

.nd-diagnostic__choices button:hover {
  border-color: #008f79;
  background: #f5faf8;
}

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

.nd-diagnostic__choices button[aria-pressed="true"] > span {
  color: var(--nd-mint);
}

.nd-diagnostic__choices button:focus-visible {
  outline: 3px solid #13b78b;
  outline-offset: 3px;
}


/* RÉSULTAT */

.nd-diagnostic__result {
  padding: 27px 29px;
}

.nd-diagnostic__panel[hidden] {
  display: none !important;
}

.nd-diagnostic__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #e4f9f0;
  color: #126249;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.nd-diagnostic__panel h4 {
  margin: 0 0 13px;
  color: var(--nd-deep);
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.4;
  letter-spacing: -.02em;
}

.nd-diagnostic__panel > p {
  margin: 0 0 15px;
  color: var(--nd-muted);
  font-size: 13px;
  line-height: 1.75;
}

.nd-diagnostic__panel ol {
  margin: 19px 0 18px;
  padding-left: 23px;
}

.nd-diagnostic__panel li {
  margin-bottom: 12px;
  padding-left: 4px;
  color: var(--nd-deep);
  font-size: 13px;
  line-height: 1.75;
}

.nd-diagnostic__panel li::marker {
  color: #008275;
  font-weight: 700;
}

.nd-diagnostic__panel p.nd-diagnostic__note {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #20c293;
  border-radius: 0 9px 9px 0;
  background: var(--nd-soft);
  color: var(--nd-muted);
  font-size: 12px;
  line-height: 1.8;
}

.nd-diagnostic__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 19px 27px;
  border-top: 1px solid var(--nd-line);
  background: #fafcfb;
}

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

.nd-diagnostic__footer a {
  align-self: flex-start;
  color: var(--nd-blue);
  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   NEUF VÉRIFICATIONS
========================================================= */

.nd-checks {
  display: grid;
  gap: 15px;
  margin: 26px 0 32px;
}

.nd-check {
  padding: 26px;
  border: 1px solid var(--nd-line);
  border-radius: 16px;
  background: #fff;
}

.nd-check__number {
  display: block;
  margin-bottom: 12px;
  color: #007e73;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nd-check h3 {
  margin: 0 0 14px;
  color: var(--nd-deep);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
}

.nd-check p {
  margin: 0 0 13px;
  color: var(--nd-muted);
  font-size: 14px;
  line-height: 1.8;
}

.nd-check p:last-child {
  margin-bottom: 0;
}

.nd-check__action {
  margin: 17px 0;
  padding: 14px 16px;
  border: 1px solid var(--nd-line);
  border-radius: 10px;
  background: var(--nd-soft);
  color: var(--nd-muted);
  font-size: 13px;
  line-height: 1.75;
}

.nd-check__action strong {
  color: var(--nd-deep);
}


/* =========================================================
   OUTILS OFFICIELS
========================================================= */

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

.nd-tools article {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--nd-line);
  border-radius: 15px;
  background: #fff;
}

.nd-tools h3 {
  margin: 0 0 11px;
  color: var(--nd-deep);
  font-size: 17px;
  line-height: 1.4;
}

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


/* =========================================================
   EXEMPLE FICTIF
========================================================= */

.nd-example {
  margin: 25px 0;
  padding: 25px;
  border: 1px solid var(--nd-line);
  border-radius: 17px;
  background: var(--nd-soft);
}

.nd-example h3 {
  margin: 0 0 17px;
  color: var(--nd-deep);
  font-size: 19px;
  line-height: 1.4;
}

.nd-example__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 19px;
  border: 1px solid var(--nd-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.nd-example__stats > div {
  padding: 16px;
  border-right: 1px solid var(--nd-line);
}

.nd-example__stats > div:last-child {
  border-right: 0;
}

.nd-example__stats span {
  display: block;
  margin-bottom: 7px;
  color: var(--nd-muted);
  font-size: 11px;
}

.nd-example__stats strong {
  display: block;
  color: var(--nd-deep);
  font-size: 19px;
}

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

.nd-example p:last-child {
  margin-bottom: 0;
}


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

.nd-errors {
  margin: 23px 0 30px;
}

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

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

.nd-errors span {
  color: #007f73;
  font-size: 12px;
  font-weight: 700;
  padding-top: 4px;
}

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

.nd-errors strong {
  color: var(--nd-deep);
}


/* =========================================================
   CTA & SOURCES
========================================================= */

.nd-cta {
  margin: 30px 0 36px;
}

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

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

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


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

@media (max-width: 1100px) {

  .nd-situation-grid,
  .nd-tools {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {

  .nd-diagnostic__choices {
    grid-template-columns: 1fr;
  }

  .nd-diagnostic__choices button {
    min-height: 56px;
  }

}

@media (max-width: 600px) {

  .nd-hero-action .button {
    width: 100%;
    justify-content: center;
  }

  .nd-diagnostic {
    border-radius: 16px;
  }

  .nd-diagnostic__intro,
  .nd-diagnostic__result {
    padding: 22px;
  }

  .nd-diagnostic__choices {
    padding: 17px;
    gap: 9px;
  }

  .nd-diagnostic__choices button {
    padding: 13px 15px;
  }

  .nd-diagnostic__footer {
    padding: 18px 22px;
  }

  .nd-check {
    padding: 21px;
  }

  .nd-example {
    padding: 20px;
  }

  .nd-example__stats {
    grid-template-columns: 1fr;
  }

  .nd-example__stats > div {
    border-right: 0;
    border-bottom: 1px solid var(--nd-line);
  }

  .nd-example__stats > div:last-child {
    border-bottom: 0;
  }

}

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

  .nd-diagnostic__choices button {
    transition: none;
  }

}
