/* Repères communs aux pages publiques, indépendants du thème choisi. */
@media screen and (min-width: 761px) {
  body:not(.page-admin) {
    --site-content-max-width: 1280px;
    --site-content-gutter: 16px;
    --site-hero-inset: 24px;
  }

  body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap),
  body:not(.page-admin) > footer.site-legal-footer {
    box-sizing: border-box;
    width: min(var(--site-content-max-width), calc(100% - 2 * var(--site-content-gutter)));
    max-width: var(--site-content-max-width);
    margin-inline: auto;
    padding-inline: 0;
  }

  body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap)
    > :is(.hero, .hero-card, .hero-panel, .mini-hero, .reviews-hero) {
    padding-inline: var(--site-hero-inset);
  }
}


/* Le footer reprend le cadre des pages et le retrait de leurs titres. */
@media screen and (min-width: 761px) {
  html body:not(.page-admin) > footer.site-legal-footer > :is(.site-footer-shell, .site-footer-bottom) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--site-hero-inset);
  }
}

/* Les sections de l'accueil partagent un seul niveau de largeur. */
@media screen {
  body.page-home > main.wrap > :is(.hero, .decision-panel, .home-mini-tools, .home-trust-panel, .home-reviews-panel, .home-guide, .home-faq) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
  }

  body.page-home > main.wrap > :is(.decision-panel, .home-mini-tools, .home-trust-panel, .home-reviews-panel, .home-guide) {
    margin-block: 18px 0;
    padding-inline: 24px;
  }

  body.page-home > main.wrap > .hero > .brand-row {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 900px) {
  body:not(.page-admin) {
    --site-hero-inset: 16px;
  }

  body.page-home > main.wrap > :is(.decision-panel, .home-mini-tools, .home-trust-panel, .home-reviews-panel, .home-guide) {
    padding-inline: 16px;
  }
}


/* Une étiquette de page commune, sans traitement de bouton ni de badge. */
@media screen {
  html:is([data-seo-style="style4"], [data-seo-style="style5"]) {
    --site-page-label-color: #d6efff;
  }

  /* Le Style 5 conserve aussi des panneaux sombres : adapter seulement ses héros clairs. */
  html[data-seo-style="style5"] body.page-home > main > .hero,
  html[data-seo-style="style5"] body:is(.pricing-page, .page-tools, .page-contact, .page-profile, .page-reports) > main > .hero-card,
  html[data-seo-style="style5"] body:is(.mini-tool-page, .compare-tool-page, .app-crawl, .app-one-page) > main > :is(.hero-card, .mini-hero, .hero-panel) {
    --site-page-label-color: #075985;
  }

  html body[class] > main[class] :is(
    .page-hero-label,
    .hero .eyebrow,
    .hero-copy > :is(.badge-soft, .audit-intro, .tool-label, .blog-kicker, .blog-pill, .eyebrow),
    .agency-hero-copy > .badge-soft,
    .mini-title-row > div > .badge-soft,
    .mini-hero > .badge-soft,
    .tool-review-hero-topline > .tool-review-hero-label,
    .reviews-hero > .tool-label,
    .blog-article > header > .blog-pill
  ) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: start;
    gap: 10px !important;
    box-sizing: border-box;
    width: fit-content !important;
    min-width: 0;
    max-width: 100%;
    min-height: 56px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--site-page-label-color, #7dd3fc) !important;
    background: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }

  html body[class] > main[class] :is(
    .page-hero-label,
    .hero .eyebrow,
    .hero-copy > :is(.badge-soft, .audit-intro, .tool-label, .blog-kicker, .blog-pill, .eyebrow),
    .agency-hero-copy > .badge-soft,
    .mini-title-row > div > .badge-soft,
    .mini-hero > .badge-soft,
    .tool-review-hero-topline > .tool-review-hero-label,
    .reviews-hero > .tool-label,
    .blog-article > header > .blog-pill
  ) > :is(.fa-solid, .fa-regular, .fa-brands) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 20px !important;
    line-height: 1;
  }

  html body[class] > main[class] div.tool-review-hero-topline > .tool-review-hero-label {
    margin-bottom: 0 !important;
  }

  html body[class] > main[class] .blog-article > header > .blog-pill {
    margin-bottom: 4px !important;
  }

  html body[class] > main[class] > :is(.hero, .hero-card, .hero-panel, .mini-hero, .reviews-hero, .blog-article) {
    padding-top: 24px;
    padding-inline: 24px;
  }

  html body[class] > main[class] :is(.hero-layout > .hero-copy, .agency-hero > .agency-hero-copy) {
    align-self: start;
    justify-content: flex-start;
  }

  html body[class] > main[class] :is(.hero-copy, .agency-hero-copy, .reviews-hero, .blog-article > header) > h1 {
    margin-top: 0;
  }
}

@media screen and (max-width: 900px) {
  html body[class] > main[class] :is(
    .page-hero-label,
    .hero .eyebrow,
    .hero-copy > :is(.badge-soft, .audit-intro, .tool-label, .blog-kicker, .blog-pill, .eyebrow),
    .agency-hero-copy > .badge-soft,
    .mini-title-row > div > .badge-soft,
    .mini-hero > .badge-soft,
    .tool-review-hero-topline > .tool-review-hero-label,
    .reviews-hero > .tool-label,
    .blog-article > header > .blog-pill
  ) {
    min-height: 24px;
  }

  html body[class] > main[class] > :is(.hero, .hero-card, .hero-panel, .mini-hero, .reviews-hero, .blog-article) {
    padding-top: 16px;
    padding-inline: 16px;
  }
}

/* Raccourcis personnels des outils, sous l'introduction du formulaire. */
@media screen {
  html body[class] .tool-data-actions[data-tool-data-actions] {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
    width: min(100%, 22rem);
    max-width: 100%;
    margin: 16px 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
  }

  html body[class] .tool-data-actions[data-tool-data-actions] > .tool-data-action {
    flex: 1 1 8.5rem;
    box-sizing: border-box;
    width: auto !important;
    max-width: none;
    min-height: 44px !important;
    gap: 8px;
    padding: 10px 12px !important;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: none !important;
    transform: none !important;
  }

  html body[class] .tool-data-actions[data-tool-data-actions] > .tool-data-action > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  html body[class] .tool-data-actions[data-tool-data-actions] > .tool-data-action > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  html body[class] .tool-data-actions[data-tool-data-actions] > .tool-data-action:only-of-type {
    flex: 0 1 10.75rem;
  }

  html body[class] .tool-data-actions[data-tool-data-actions] > .tool-data-feedback {
    flex: 1 0 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
}

/* Fenêtres des rapports et du profil : recherche et actions au premier plan. */
@media screen {
  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog {
    --tool-dialog-height: min(880px, calc(100vh - 32px));
    --tool-dialog-height: min(880px, calc(100dvh - 32px));
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    transform: none !important;
    box-sizing: border-box;
    width: min(1040px, calc(100vw - 32px)) !important;
    max-height: var(--tool-dialog-height) !important;
    padding: 0 !important;
    border-radius: 16px !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-shell {
    max-height: calc(var(--tool-dialog-height) - 2px) !important;
    background: var(--tool-dialog-bg) !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-head {
    gap: 12px;
    padding: 18px 20px;
    background: var(--tool-dialog-panel) !important;
    box-shadow: none;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-title {
    gap: 12px;
    align-items: center;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    color: var(--tool-dialog-cyan) !important;
    background: var(--tool-dialog-panel-strong) !important;
    box-shadow: none;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-head h2 {
    margin: 0 !important;
    font-size: 1.375rem;
    line-height: 1.25;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-head p {
    margin-top: 4px !important;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-body {
    padding: 16px 20px 20px;
    scroll-padding-block: 16px;
    background: var(--tool-dialog-bg) !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.tool-data-dialog-toolbar, .profile-browser-toolbar) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border: 0 !important;
    border-bottom: 1px solid var(--tool-dialog-line) !important;
    border-radius: 0;
    background: var(--tool-dialog-bg) !important;
    box-shadow: none;
    backdrop-filter: none;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.tool-data-dialog-search, .profile-browser-search, .mini-history-filter) {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.tool-data-dialog-toolbar-actions, .profile-browser-toolbar-actions) {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    gap: 8px;
    justify-content: flex-end;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-toolbar-meta {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    min-width: 0;
    margin: 0;
    color: var(--tool-dialog-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  #toolProfileDialog.tool-data-dialog [data-profile-filter-count] {
    color: var(--tool-dialog-text) !important;
    font-weight: 600;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.tool-data-dialog-toolbar-status, .tool-data-dialog-updated) {
    flex: 0 1 auto;
    justify-content: flex-start;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--tool-dialog-muted) !important;
    background: none !important;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: normal;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.tool-data-dialog-refresh, .profile-browser-manage) {
    flex: 0 1 auto;
    width: auto;
    min-height: 44px !important;
    margin: 0;
    padding: 9px 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.4;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-browser {
    gap: 0;
  }

  #toolReportsDialog.tool-data-dialog :is(#historyAuthPanel, #historyPanel, #accountPanel, #reportsPanel, #miniReportsPanel) {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
  }

  #toolReportsDialog.tool-data-dialog :is(.history-title, .reports-title) {
    margin: 0 0 10px;
    color: var(--tool-dialog-muted);
    font-size: 0.8125rem;
    font-weight: 500;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.profile-site-card, .mini-history-row, .tool-report-row) {
    gap: 12px;
    padding: 14px !important;
    border-radius: 12px !important;
    background: var(--tool-dialog-panel) !important;
    box-shadow: none !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.mini-history-row, .tool-report-row).is-latest-report {
    border-color: var(--tool-dialog-cyan) !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.mini-history-latest-badge, .tool-report-latest-badge) {
    min-height: 0;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--tool-dialog-cyan) !important;
    background: none !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  #toolReportsDialog.tool-data-dialog .mini-history-main > strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
  }

  #toolReportsDialog.tool-data-dialog :is(.mini-history-main > span:not(.mini-history-latest-badge), .history-url, .report-url) {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  #toolReportsDialog.tool-data-dialog :is(.mini-history-main > small, .history-date, .report-date) {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
  }

  /* Les fenêtres gardent un fond sombre, y compris dans le thème clair. */
  #toolReportsDialog.tool-data-dialog .mini-history-score > strong {
    color: var(--tool-dialog-text) !important;
  }

  #toolReportsDialog.tool-data-dialog .mini-history-score.score-ok > strong {
    color: #bff7d3 !important;
  }

  #toolReportsDialog.tool-data-dialog .mini-history-score.score-warn > strong {
    color: #fde68a !important;
  }

  #toolReportsDialog.tool-data-dialog .mini-history-score.score-bad > strong {
    color: #fecdd3 !important;
  }

  #toolReportsDialog.tool-data-dialog .history-score-badge > strong {
    color: inherit !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-card-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-avatar {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-counts {
    grid-column: auto;
    width: auto;
    margin: 0;
    gap: 8px;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-badge {
    min-height: 0;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none !important;
    color: var(--tool-dialog-muted) !important;
    font-weight: 500;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.profile-site-use, .mini-history-primary, .tool-report-primary) {
    min-height: 44px !important;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: none !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-use {
    display: inline-flex !important;
    width: auto;
    justify-content: center !important;
    gap: 8px;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-use > span {
    font-weight: 700;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-more {
    width: auto;
    flex: 0 1 auto;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.profile-site-more, .mini-history-actions-more, .tool-report-actions-more) > summary {
    min-height: 44px !important;
    box-sizing: border-box;
    padding: 9px 12px;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-more > summary {
    display: flex;
    flex-wrap: wrap;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-more[open] {
    flex-basis: 100%;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-picker-related {
    padding: 12px 0 0;
    border: 0;
    background: none !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.mini-history-actions-menu, .tool-report-actions-menu) {
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--tool-dialog-line);
    border-radius: 0;
    background: none !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.mini-history-actions-menu, .tool-report-actions-menu) > :is(button, a) {
    min-height: 44px !important;
    font-size: 0.8125rem;
    font-weight: 600;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog [hidden] {
    display: none !important;
  }
}

@media screen and (max-width: 600px) {
  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog {
    --tool-dialog-height: calc(100vh - 16px);
    --tool-dialog-height: calc(100dvh - 16px);
    width: calc(100vw - 16px) !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.tool-data-dialog-head, .tool-data-dialog-body) {
    padding: 14px;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-title {
    align-items: flex-start;
    gap: 8px;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-icon {
    width: 24px;
    min-width: 24px;
    height: 28px;
    background: none !important;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .tool-data-dialog-head h2 {
    font-size: 1.25rem;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-browser-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-browser-toolbar-actions {
    justify-content: flex-start;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-card-head {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog .profile-site-counts {
    grid-column: 2;
  }

  :is(#toolReportsDialog, #toolProfileDialog).tool-data-dialog :is(.profile-site-card, .mini-history-row, .tool-report-row) {
    padding: 12px !important;
  }
}


/* Retraits communs des panneaux éditoriaux et des formulaires publics. */
@media screen {
  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .tools-choice, .tools-primary, .tools-section, .tools-guidance,
    .contact-info-card, .legal-card, .legal-section,
    .mini-panel, .forum-panel, .blog-panel
  ) {
    padding-inline: 24px;
  }
}

@media screen and (max-width: 900px) {
  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .tools-choice, .tools-primary, .tools-section, .tools-guidance,
    .contact-info-card, .legal-card, .legal-section,
    .mini-panel, .forum-panel, .blog-panel
  ) {
    padding-inline: 16px;
  }
}

/* Typographie de l'interface publique, sans modifier les rapports ni les aperçus. */
@media screen {
  body:not(.page-admin) {
    --site-type-title: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
    --site-type-section: clamp(1.5rem, 1.3rem + 0.7vw, 1.75rem);
    --site-type-card: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
    --site-type-intro: clamp(1rem, 0.975rem + 0.125vw, 1.0625rem);
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap)
    > :is(.hero, .hero-card, .hero-panel, .mini-hero, .reviews-hero) h1,
  html body:not(.page-admin) > main:is(.wrap, .suite-shell) > .blog-article > header > h1 {
    font-size: var(--site-type-title);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .hero-copy > h1 + p,
    .hero-copy > .sub,
    .agency-hero-copy > p,
    .hero .subtitle,
    .mini-title-row > div > h1 + p,
    .mini-hero > h1 + p,
    .reviews-hero > h1 + p
  ) {
    margin-top: 12px;
    font-size: var(--site-type-intro);
    font-weight: 400;
    line-height: 1.65;
  }

  html body.page-profile:not(.page-admin) > main.suite-shell .hero-copy > h1 + p {
    max-width: 70ch;
  }

  /* En-têtes des sections et formulaires, distincts du contenu des résultats. */
  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .decision-head h2,
    .home-mini-head h2,
    .home-trust-copy > h2,
    .home-review-request h2,
    .home-guide-main > h2,
    .site-faq-body > h2,
    .tools-section-head > h2,
    .tools-choice > h2,
    .tools-guidance > h2,
    .tools-editor-note > h2,
    .pricing-plans-head h2,
    .pricing-section-head h2,
    .pricing-brand-option > div > h2,
    .contact-info-card > h2,
    .legal-card > h2,
    .legal-section > h2,
    .agency-section-heading > h2,
    .credits-section-heading > h2,
    .profile-panel-head h2,
    .reports-dashboard-intro h2,
    .reports-trust > div > h2,
    .public-audits-trust > div > h2,
    .forum-reader-guide h2,
    .forum-panel > h2,
    .blog-panel > h2,
    .blog-section-title,
    .blog-community-head h2,
    .mini-form-head h2,
    .audit-launch-head h2,
    .compare-guidance h2,
    .compare-method-section > h2,
    .image-rize-section-heading > h2,
    .image-rize-section-intro > h2,
    .og-faq-section > h2
  ) {
    margin-top: 0;
    font-size: var(--site-type-section);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .home-mini-subhead > h3,
    .home-guide-side > h3,
    .home-faq-grid > article > h3,
    .home-review-card > h3,
    .tool-content > h2,
    .tools-card > h3,
    .tools-product-card > h3,
    .pricing-card-head > h3,
    .pricing-standard-intro > h3,
    .pricing-help-grid h3,
    .agency-feature-card > h3,
    .credits-promise-grid > article > h3,
    .credits-earning-card > h3,
    .blog-card > header > h3,
    .blog-form-section-head > h3,
    .compare-method-grid > article > h3
  ) {
    font-size: var(--site-type-card);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .decision-head p,
    .home-mini-head p,
    .home-trust-copy > p,
    .home-review-request p,
    .home-guide-main > p,
    .home-faq-grid > article > p,
    .tools-section-head > p,
    .tools-product-card > p,
    .tools-card > p,
    .pricing-section-head p,
    .contact-info-card > p,
    .legal-card > p,
    .legal-section > p,
    .agency-section-heading > p,
    .credits-section-heading > p,
    .profile-panel-head p,
    .reports-trust > div > p,
    .public-audits-trust > div > p,
    .forum-reader-guide p,
    .blog-panel > p,
    .audit-launch-head .tool-cost-head > p,
    .compare-guidance > div > p
  ) {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
  }

  /* Commandes et libellés : conserver les dimensions et les familles des composants. */
  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .hero-primary, .hero-secondary, .open-tool, .secondary-btn,
    .hero-actions > .primary, .hero-actions > .secondary,
    .tools-hero-primary, .tools-card-cta, .tools-hero-shortcuts > a,
    .tools-filter-button, .tools-filter-button > span,
    .pricing-card button, .pricing-card .primary-btn, .pricing-card .secondary-btn,
    .contact-form button, .profile-form button, .blog-form button,
    .blog-button, .forum-composer button, .forum-reply-composer button,
    .profile-tabs > button, .reports-view-tabs > button, .reports-section-tabs > button,
    .mini-form button, .compare-actions button, .compare-remove-url, .mini-back-link,
    .audit-input-row > button, .crawl-launch-action-row > button,
    .tool-data-actions > .tool-data-action, .tool-share-trigger,
    .tool-review-rating-copy > strong,
    .image-rize-app .mode-tab,
    .image-rize-app .download-button, .image-rize-app .secondary-button,
    .image-rize-app .compact-button, .image-rize-app .global-zip-button,
    .image-rize-app .og-platform-tabs > button
  ) {
    font-weight: 600;
    line-height: 1.4;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .mini-field-label,
    .mini-form label > span,
    .mini-field-grid label:not(:has(pre, code, .code-tester-input, textarea[id^="robots"])),
    .mini-generator-grid label:not(:has(pre, code, .code-tester-input, textarea[id^="robots"])),
    .contact-form label,
    .profile-form label, .profile-billing-form label,
    .profile-avatar-fields label, .profile-public-alias-field,
    .blog-form label,
    .audit-url-field > span,
    .crawl-input-row .control-field > span,
    .crawl-sitemap-toggle > span,
    .audit-tool-info > summary,
    .crawl-tool-details > summary,
    .image-rize-app .form-field > span
  ) {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .contact-form, .profile-form, .profile-billing-form, .profile-avatar-fields,
    .profile-community-identity, .profile-referral-link-field,
    .mini-form, .mini-field-grid, .mini-generator-grid,
    .audit-input-row, .crawl-input-row, .tools-search-control
  ) input:is(:not([type]), [type="text"], [type="search"], [type="email"], [type="url"], [type="tel"], [type="password"], [type="number"], [type="date"], [type="datetime-local"]),
  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .contact-form, .profile-form, .profile-billing-form,
    .mini-form, .mini-field-grid, .mini-generator-grid
  ) select,
  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(.contact-form, .profile-form) textarea {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .mini-form-help, .mini-help-text, .mini-field-help, .mini-warning-note,
    .mini-form-head p, .audit-form-note, .crawl-form-note, .audit-engine-note,
    .contact-form-note, .contact-form label > small, .profile-form-note,
    .mini-field-grid label > small, .mini-generator-grid label > small,
    .crawl-sitemap-toggle > small, .audit-tool-info > summary > small,
    .image-rize-app .mode-description
  ) {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) :is(
    .page-hero-label,
    .hero .eyebrow,
    .hero-copy > :is(.badge-soft, .audit-intro, .tool-label, .blog-kicker, .blog-pill, .eyebrow),
    .agency-hero-copy > .badge-soft,
    .mini-title-row > div > .badge-soft,
    .mini-hero > .badge-soft,
    .tool-review-hero-topline > .tool-review-hero-label,
    .reviews-hero > .tool-label,
    .blog-article > header > .blog-pill
  ) {
    font-weight: 600 !important;
  }

  html body:not(.page-admin) > .site-menu :is(
    .site-menu-links > a,
    .site-auth-button, .site-auth-provider-button, .site-auth-user,
    .site-reports-shortcut, .site-profile-shortcut, .site-admin-shortcut,
    .site-credit-claim
  ) {
    font-weight: 600;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) > .breadcrumb,
  html body:not(.page-admin) > main:is(.wrap, .suite-shell, .mini-shell, .reviews-wrap) > .site-page-info {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
  }

  html body:not(.page-admin) > footer.site-legal-footer :is(.site-footer-column > h2, .site-footer-company-card > h2) {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.03em;
  }

  html body:not(.page-admin) > footer.site-legal-footer :is(.site-footer-column > a, .site-footer-cookie-button) {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
  }

  html body:not(.page-admin) > footer.site-legal-footer .site-footer-company p {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell) .profile-account-kpi > :is(p, small) {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell) .profile-account-kpi > span {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell) .profile-account-kpi > strong {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell) .profile-account-kpi > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell) .profile-account-kpi > i > svg {
    width: 20px;
    height: 20px;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell) .profile-account-kpi-action > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
  }

  html body:not(.page-admin) > main:is(.wrap, .suite-shell) .profile-account-kpi-action > i > svg {
    width: 18px;
    height: 18px;
  }

}

/* Profil mobile : les contenus longs restent dans la largeur disponible. */
@media screen and (max-width: 640px) {
  html body.page-profile:not(.page-admin) > main.suite-shell :is(.profile-account-summary, .profile-account-kpis, .profile-account-grid, .profile-account-kpi) {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }

  html body.page-profile:not(.page-admin) > main.suite-shell :is(.profile-account-summary > *, .profile-account-summary-head > *, .profile-account-kpi > *) {
    min-width: 0;
    max-width: 100%;
  }

  html body.page-profile:not(.page-admin) > main.suite-shell .profile-account-summary-head {
    width: 100%;
    min-width: 0;
  }

  html body.page-profile:not(.page-admin) > main.suite-shell :is(
    .profile-account-summary-head h2,
    .profile-account-summary-head p,
    .profile-account-plan,
    .profile-account-kpi > :is(span, strong, small, p),
    .profile-account-kpi-action,
    .profile-account-kpi-action > span,
    .profile-account-benefits > span
  ) {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 620px) {
  html body.page-profile:not(.page-admin) > main.suite-shell > .profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
  }

  html body.page-profile:not(.page-admin) > main.suite-shell > .profile-tabs > .profile-tab-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    gap: 8px;
    padding: 8px;
    font-size: 0.875rem;
    white-space: normal;
  }

  html body.page-profile:not(.page-admin) > main.suite-shell > .profile-tabs > .profile-tab-button > span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Le choix du thème garde un focus visible autour de sa carte. */
@media screen {
  html body.page-profile:not(.page-admin) > main.suite-shell .profile-style-option:has(input:focus-visible) {
    outline: 2px solid var(--neo-primary, var(--suite-style-accent, var(--style2-focus, #7dd3fc)));
    outline-offset: 3px;
  }
}
