
/* =========================================================
   TRAFFIQ — AUDIT GOOGLE ADS
   Guide éditorial + outil de diagnostic
   Styles isolés : préfixe ag-
========================================================= */

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

.ag-layout {
  --ag-dark: #003747;
  --ag-blue: #004e64;
  --ag-mint: #50ffb1;
  --ag-soft: #f5faf8;
  --ag-muted: #536e77;
  --ag-border: rgba(0, 78, 100, .15);
  --ag-warning: #ae6515;
  --ag-danger: #ad3d39;
}

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

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

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

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

.ag-hero-action {
  margin-top: 24px;
}

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

/* =========================================================
   OUTIL PRINCIPAL
========================================================= */

.ag-tool {
  overflow: hidden;
  margin: 0 0 40px;
  border: 1px solid var(--ag-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 55, 71, .06);
}

.ag-tool__header {
  padding: 30px;
  background: var(--ag-soft);
  border-bottom: 1px solid var(--ag-border);
}

.ag-tool__header h2 {
  margin: 0 0 14px;
  color: var(--ag-dark);
  font-size: clamp(22px, 2.8vw, 29px);
  letter-spacing: -.035em;
  line-height: 1.3;
}

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

.ag-tool__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ag-tool__trust span {
  padding: 8px 11px;
  border: 1px solid #cde6dd;
  border-radius: 7px;
  background: #fff;
  color: #146454;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

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

.ag-form {
  display: block;
}

.ag-form__step {
  min-width: 0;
  margin: 0;
  padding: 28px 30px 32px;
  border: 0;
  border-bottom: 1px solid var(--ag-border);
}

.ag-form__step legend {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ag-dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.ag-step-number {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--ag-dark);
  color: var(--ag-mint);
  font-size: 11px;
  font-weight: 700;
}

.ag-form__help {
  margin: 16px 0 23px;
  color: var(--ag-muted);
  font-size: 13px;
  line-height: 1.75;
}

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

.ag-field,
.ag-question {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--ag-border);
  border-radius: 12px;
  background: #fff;
}

.ag-field label,
.ag-question label {
  display: block;
  margin-bottom: 9px;
  color: var(--ag-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.ag-field label small {
  display: inline;
  color: var(--ag-muted);
  font-size: 11px;
  font-weight: 400;
}

.ag-field input,
.ag-field select,
.ag-question select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #cadbdc;
  border-radius: 9px;
  background: #fff;
  color: var(--ag-dark);
  font-family: inherit;
  font-size: 13px;
  line-height: normal;
  box-shadow: none;
}

.ag-field input::placeholder {
  color: #82969a;
  opacity: 1;
}

.ag-field input:focus,
.ag-field select:focus,
.ag-question select:focus {
  border-color: #008b74;
  outline: 2px solid rgba(0, 139, 116, .14);
  outline-offset: 1px;
}

.ag-field > span {
  display: block;
  margin-top: 9px;
  color: var(--ag-muted);
  font-size: 11px;
  line-height: 1.55;
}

.ag-question p {
  margin: 9px 0 0;
  color: var(--ag-muted);
  font-size: 11px;
  line-height: 1.65;
}

.ag-form__hint {
  margin: 19px 0 0;
  padding: 13px 15px;
  border-left: 3px solid #26bd99;
  border-radius: 0 8px 8px 0;
  background: var(--ag-soft);
  color: var(--ag-muted);
  font-size: 12px;
  line-height: 1.75;
}

.ag-form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px;
  background: #fcfdfc;
}

.ag-form__submit strong {
  color: var(--ag-dark);
  font-size: 15px;
  line-height: 1.5;
}

.ag-form__submit p {
  max-width: 380px;
  margin: 7px 0 0;
  color: var(--ag-muted);
  font-size: 12px;
  line-height: 1.7;
}

.ag-form__submit .button {
  flex: none;
  cursor: pointer;
}

.ag-form__error {
  margin: 0 30px 25px;
  padding: 12px 15px;
  border: 1px solid #efc9c6;
  border-radius: 9px;
  background: #fff5f4;
  color: #96332e;
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================================
   RÉSULTATS INTERACTIFS
========================================================= */

.ag-results[hidden] {
  display: none !important;
}

.ag-results {
  border-top: 1px solid var(--ag-border);
}

.ag-results__head {
  padding: 29px 30px 24px;
  background: var(--ag-soft);
}

.ag-results__head h3 {
  margin: 0 0 10px;
  color: var(--ag-dark);
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.35;
}

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

.ag-coverage {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #cee5dd;
  border-radius: 7px;
  background: #fff;
  color: #126454;
  font-size: 11px;
  font-weight: 700;
}

.ag-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 23px 25px 12px;
}

.ag-metric {
  min-width: 0;
  padding: 17px 13px;
  border: 1px solid var(--ag-border);
  border-radius: 12px;
  background: #fff;
}

.ag-metric > span,
.ag-metric small {
  display: block;
  color: var(--ag-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ag-metric strong {
  display: block;
  margin: 8px 0;
  color: var(--ag-dark);
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 700;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.ag-metrics-note {
  margin: 0 !important;
  padding: 0 30px 16px;
  color: var(--ag-muted);
  font-size: 11px;
  line-height: 1.7;
}

.ag-result-section {
  padding: 23px 30px 7px;
  border-top: 1px solid var(--ag-border);
}

.ag-result-section h4 {
  margin: 0 0 17px;
  color: var(--ag-dark);
  font-size: 18px;
  line-height: 1.4;
}

.ag-priorities,
.ag-other {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.ag-finding {
  padding: 19px;
  border: 1px solid var(--ag-border);
  border-radius: 12px;
  background: #fff;
}

.ag-finding--critical {
  border-left: 3px solid var(--ag-danger);
}

.ag-finding--important {
  border-left: 3px solid var(--ag-warning);
}

.ag-finding--review {
  border-left: 3px solid #168a78;
}

.ag-finding__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ag-finding__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--ag-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.ag-finding__severity {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ag-muted);
}

.ag-finding--critical .ag-finding__severity {
  color: var(--ag-danger);
}

.ag-finding--important .ag-finding__severity {
  color: var(--ag-warning);
}

.ag-finding h5 {
  margin: 0 0 9px;
  color: var(--ag-dark);
  font-size: 15px;
  line-height: 1.5;
}

.ag-finding p {
  margin: 0;
  color: var(--ag-muted);
  font-size: 12px;
  line-height: 1.8;
}

.ag-finding__action {
  margin-top: 11px !important;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--ag-soft);
  color: var(--ag-dark) !important;
}

.ag-finding__action strong {
  color: var(--ag-dark);
}

.ag-finding a {
  display: inline-block;
  margin-top: 11px;
  color: var(--ag-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.ag-unknowns {
  display: grid;
  gap: 8px;
  margin-bottom: 21px;
}

.ag-unknown {
  padding: 12px 14px;
  border: 1px solid var(--ag-border);
  border-radius: 8px;
  background: #fafcfc;
  color: var(--ag-muted);
  font-size: 12px;
  line-height: 1.65;
}

.ag-empty {
  margin: 0 0 20px;
  padding: 15px;
  border-radius: 9px;
  background: var(--ag-soft);
  color: var(--ag-muted);
  font-size: 12px;
  line-height: 1.75;
}

.ag-results__footer {
  padding: 23px 30px;
  background: var(--ag-soft);
  border-top: 1px solid var(--ag-border);
}

.ag-results__footer > p {
  margin: 0 0 15px;
  color: var(--ag-muted);
  font-size: 12px;
  line-height: 1.8;
}

.ag-results__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ag-secondary-button {
  padding: 11px 15px;
  border: 1px solid var(--ag-dark);
  border-radius: 9px;
  background: #fff;
  color: var(--ag-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.ag-secondary-button:hover {
  background: #ebf5f1;
}

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

.ag-copy-status {
  margin: 11px 0 0 !important;
  color: #126454 !important;
  font-size: 12px;
}

.ag-noscript {
  margin: 15px;
  color: var(--ag-danger);
}

/* =========================================================
   CONTENU ÉDITORIAL
========================================================= */

.ag-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 24px 0 29px;
}

.ag-pillar {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--ag-border);
  border-radius: 14px;
  background: #fff;
}

.ag-pillar > span {
  display: block;
  margin-bottom: 12px;
  color: #007c70;
  font-size: 11px;
  font-weight: 700;
}

.ag-pillar h3 {
  margin: 0 0 10px;
  color: var(--ag-dark);
  font-size: 17px;
  line-height: 1.4;
}

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

.ag-checklist {
  margin: 24px 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--ag-border);
  border-radius: 14px;
  background: var(--ag-soft);
}

.ag-checklist > strong {
  display: block;
  margin-bottom: 13px;
  color: var(--ag-dark);
  font-size: 14px;
}

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

.ag-checklist li {
  margin-bottom: 9px;
  color: var(--ag-muted);
  font-size: 13px;
  line-height: 1.75;
}

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

.ag-checklist li::marker {
  color: #008473;
}

.ag-example {
  margin: 24px 0 28px;
  padding: 23px;
  border: 1px solid var(--ag-border);
  border-radius: 15px;
  background: var(--ag-soft);
}

.ag-example h3 {
  margin: 0 0 13px;
  color: var(--ag-dark);
  font-size: 18px;
  line-height: 1.4;
}

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

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

.ag-formulas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 25px 0 28px;
}

.ag-formulas > div {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--ag-border);
  border-radius: 12px;
  background: #fff;
}

.ag-formulas span {
  display: block;
  margin-bottom: 11px;
  color: var(--ag-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ag-formulas strong {
  color: var(--ag-dark);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ag-plan {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
}

.ag-plan__item {
  padding: 21px 23px;
  border: 1px solid var(--ag-border);
  border-radius: 13px;
  background: #fff;
}

.ag-plan__item > span {
  display: block;
  margin-bottom: 9px;
  color: #007e71;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ag-plan__item h3 {
  margin: 0 0 9px;
  color: var(--ag-dark);
  font-size: 17px;
  line-height: 1.5;
}

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

.ag-frequency {
  display: grid;
  gap: 11px;
  margin: 24px 0 28px;
}

.ag-frequency > div {
  padding: 18px 21px;
  border-left: 3px solid #1ebd97;
  border-radius: 0 11px 11px 0;
  background: var(--ag-soft);
}

.ag-frequency strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ag-dark);
  font-size: 14px;
}

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

.ag-cta {
  margin: 31px 0 38px;
}

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

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

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

@media (max-width: 1050px) {
  .ag-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-formulas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ag-fields,
  .ag-questions {
    grid-template-columns: 1fr;
  }

  .ag-pillars {
    grid-template-columns: 1fr;
  }

  .ag-form__submit {
    flex-direction: column;
    align-items: stretch;
  }

  .ag-form__submit .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .ag-hero-action .button {
    width: 100%;
    justify-content: center;
  }

  .ag-tool {
    border-radius: 15px;
  }

  .ag-tool__header,
  .ag-form__step,
  .ag-results__head,
  .ag-results__footer {
    padding: 22px 20px;
  }

  .ag-form__submit {
    padding: 23px 20px;
  }

  .ag-form__error {
    margin: 0 20px 20px;
  }

  .ag-tool__header h2 {
    font-size: 22px;
  }

  .ag-form__step legend {
    font-size: 16px;
  }

  .ag-metrics {
    padding: 17px 17px 11px;
    gap: 8px;
  }

  .ag-metric {
    padding: 14px 11px;
  }

  .ag-metrics-note {
    padding: 0 20px 17px;
  }

  .ag-result-section {
    padding: 21px 20px 6px;
  }

  .ag-results__actions {
    flex-direction: column;
  }

  .ag-secondary-button {
    width: 100%;
  }

  .ag-formulas > div,
  .ag-pillars > div,
  .ag-plan__item {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-secondary-button {
    transition: none;
  }
}


/* =========================================================
   CORRECTION — ESPACEMENT DES TITRES DE L'AUDIT
========================================================= */

/* Espace entre deux étapes de l'audit */
.ag-form__step + .ag-form__step {
  margin-top: 16px;
}

/* Espace au-dessus des titres des étapes */
.ag-form__step legend {
  padding-top: 24px;
}

/* Conserver un espacement cohérent sous les titres */
.ag-form__step .ag-form__help {
  margin-top: 18px;
}

