:root {
    --it-ink: #151922;
    --it-ink-soft: #2b313d;
    --it-paper: #f6f2ea;
    --it-surface: #ffffff;
    --it-line: #dcd6ca;
    --it-signal: #d83a42;
    --it-signal-dark: #b92730;
    --it-muted: #667085;
    --it-layout-width: var(--container-width, 1320px);
}

body {
    background: var(--it-paper);
    color: var(--it-ink);
}

a { color: var(--it-signal-dark); }

.site-header.nav-layout-split {
    background: var(--it-surface);
    border-bottom: 3px solid var(--it-signal);
    box-shadow: 0 6px 24px rgba(21, 25, 34, .04);
}

/* Site-only proportions, inspired by 1001-impressions. Nested containers
   retain their full available width instead of accumulating percentage gutters. */
.site-content .container,
.site-footer .container {
    width: 100%;
    max-width: var(--it-layout-width);
    padding-inline: clamp(20px, 3vw, 40px);
}

.site-content .container .container { max-width: 100%; padding-inline: 0; }
.site-content .block-html-container--narrow900 { max-width: 900px; }

.site-header .header-split-container {
    min-height: 109px;
    max-width: var(--it-layout-width);
    padding: 12px 24px;
    border-bottom: 0;
    gap: 24px;
}

.site-header .logo-split a {
    display: block;
    width: 220px;
    overflow: hidden;
}
.site-header .logo-split img {
    /* The existing SVG has a large empty right margin. Crop that space in
       its link box, without changing or stretching the brand artwork. */
    width: 330px;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
}

.site-header .nav-split.left,
.site-header .nav-split.right { padding: 0; }
.site-header .nav-split ul { gap: clamp(16px, 1.6vw, 24px); }
.site-header .nav-split a {
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .025em;
    line-height: 1.5;
    white-space: nowrap;
}
.site-header .nav-split a:hover { color: var(--it-signal-dark); }
.site-header .search-icon-btn { min-width: 44px; min-height: 44px; }

.hero .hero-buttons .btn,
.hero-section .hero-buttons .btn,
.block-hero .hero-buttons .btn,
.product-feed-card-cta,
.btn {
    border-radius: 7px !important;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 800;
}

.section-header h2 { letter-spacing: -.025em; }

.article-card,
.card,
.product-feed-card {
    border-radius: 10px !important;
    border-color: rgba(21, 25, 34, .12) !important;
}

.it-home-intro {
    max-width: 860px;
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
    line-height: 1.68;
    color: var(--it-ink-soft);
}

.it-route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    border-top: 1px solid var(--it-line);
}

.it-route {
    min-width: 0;
    padding: 28px 0 32px;
    border-bottom: 1px solid var(--it-line);
    color: var(--it-ink);
}

.it-route .it-index {
    display: block;
    margin-bottom: 14px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--it-signal-dark);
}

.it-route h3 { margin: 0 0 14px; color: inherit; font-size: clamp(1.25rem, 1.6vw, 1.55rem); line-height: 1.25; }
.it-route p { margin: 0 0 24px; line-height: 1.58; opacity: .82; }
.it-route a { color: var(--it-signal-dark); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Keep the existing full-bleed illustration and content, with a shorter lead-in. */
.hero-section.it-home-hero {
    min-height: 560px !important;
    padding-block: 80px !important;
}
.it-home-hero .hero-content-wrapper { max-width: 800px !important; }
.it-home-hero .hero-buttons .btn { min-height: 50px; padding: 14px 24px; }
.it-home-hero .hero-buttons .btn:first-child { background: var(--it-signal-dark); color: #fff; }
.it-home-hero .hero-buttons .btn:last-child { background: #fff; color: var(--it-ink) !important; }
.it-home-hero .hero-buttons .btn:hover { transform: translateY(-2px); }
.block-html:has(.it-home-intro) { padding-block: 56px 32px !important; }
.block-html:has(.it-route-grid) { padding-bottom: 56px !important; }

.it-method {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.it-method-copy p { font-size: 1.08rem; line-height: 1.72; color: var(--it-ink-soft); }

.it-checks { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--it-line); }
.it-checks li { padding: 18px 0; border-bottom: 1px solid var(--it-line); font-weight: 750; }
.it-checks li::before { content: "✓"; margin-right: 12px; color: var(--it-signal); }

.it-proof-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.it-proof-band strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.it-proof-band span { color: var(--it-muted); line-height: 1.55; }

.legal-content h2 { font-size: clamp(1.15rem, 1vw + .9rem, 1.45rem); font-weight: 700; }

.category-hero {
    background: linear-gradient(135deg, #151922 0%, #2b313d 100%) !important;
    color: #fff;
}

.category-hero h1,
.category-hero .hero-description,
.category-hero .breadcrumb,
.category-hero .breadcrumb a { color: #fff !important; }

.pillar-category-page .pillar-category-intro { column-gap: 56px; row-gap: 16px; }
.pillar-category-intro .pillar-category-kicker { grid-column: 1; }
.pillar-category-intro h2 { grid-column: 1; margin-bottom: 0; }
.pillar-category-copy { grid-column: 2; grid-row: 1 / span 2; }
.pillar-category-page .pillar-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pillar-category-page .pillar-route-media { aspect-ratio: 16 / 9; }
.pillar-category-page .pillar-route-card { border-radius: 10px; }

/* Reading measure already matches the reference: 860px text, 1020px media. */
.site-content .article-hero {
    height: auto;
    min-height: 400px;
    padding-block: 64px;
    align-items: center;
}
.site-content .article-hero .hero-content { width: 100%; max-width: 1060px; padding-inline: 24px; }
.site-content .article-hero h1 { margin: 16px auto 24px; }
/* Editorial diagrams remain legible beside the title, not under a dark overlay. */
.site-content .article-hero--illustration {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    padding-inline: max(24px, calc((100% - 1240px) / 2));
    background: var(--it-ink, #151922);
}
.site-content .article-hero--illustration .hero-image {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transform: none;
    filter: none;
    border-radius: 10px;
}
.site-content .article-hero--illustration .hero-overlay { display: none; }
.site-content .article-hero--illustration .hero-content {
    grid-column: 1;
    grid-row: 1;
    padding-inline: 0;
}
@media (max-width: 760px) {
    .site-content .article-hero--illustration { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .site-content .article-hero--illustration .hero-image { grid-column: 1; grid-row: 2; max-width: 480px; margin-inline: auto; }
}
.site-content .article-intro-box,
.site-content .table-of-contents {
    background: #fff;
    border: 1px solid var(--it-line);
    border-radius: 10px;
    box-shadow: none;
}
.site-content .article-intro-box { border-left: 3px solid var(--it-signal); }

/* Override the generic product template without touching its data or widgets. */
.product-page-wrapper .product-hero { background: var(--it-paper); }
.product-page-wrapper .product-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 36px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--it-line);
    border-radius: 10px;
    box-shadow: none;
}
.product-page-wrapper .product-hero-title { font-family: var(--font-heading); color: var(--it-ink); }
.product-page-wrapper .product-decision-box,
.product-page-wrapper .product-hero-audience,
.product-page-wrapper .product-main-image-frame {
    background: #faf9f6;
    border-color: var(--it-line);
    border-radius: 10px;
    box-shadow: none;
}
.product-page-wrapper .product-decision-box { padding: 20px; }
.product-page-wrapper .product-hero-badge { border-radius: 5px; box-shadow: none; margin-bottom: 12px; }
.product-page-wrapper .product-hero-primary-cta,
.product-page-wrapper .product-verdict-primary-cta {
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 7px;
    letter-spacing: 0;
    line-height: 1.4;
    background: var(--it-signal-dark);
    box-shadow: none;
}
.product-page-wrapper .product-hero-highlight { border-radius: 7px; box-shadow: none; }
.product-page-wrapper .product-affilizz-hero affilizz-rendering-component { min-height: 280px; }
.product-page-wrapper .product-verdict-merchants--affilizz,
.product-page-wrapper .product-affilizz-card { background: #fff; border-radius: 10px; box-shadow: none; }

.site-header :is(a, button):focus-visible,
.site-content :is(a, button, summary):focus-visible,
.site-footer a:focus-visible { outline: 3px solid var(--it-signal-dark); outline-offset: 4px; }
.it-home-hero :is(a, button):focus-visible { outline-color: #fff; }

@media (max-width: 1280px) {
    .nav-split { display: none !important; }
    .site-header .header-split-container { justify-content: center; min-height: 77px; padding: 10px 64px; }
    .site-header .logo-split a { width: 200px; }
    .site-header .logo-split img { width: 300px; }
    .nav-split.left,
    .nav-split.right { padding: 0; }
    .mobile-toggle-split {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        border: 0;
        background: none;
        transform: translateY(-50%);
    }
    .mobile-toggle-split .bar { width: 25px; height: 2px; background: var(--it-ink); }
    .site-header .mobile-toggle-split { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; right: 12px; }
    .site-header #mobile-menu-split { top: 80px; height: calc(100dvh - 80px); padding: 24px; background: #fff; }
    .site-header #mobile-menu-split > nav > ul { align-items: stretch; gap: 0; max-width: 600px; margin: 0 auto; }
    .site-header #mobile-menu-split > nav > ul > li { border-bottom: 1px solid var(--it-line); }
    .site-header #mobile-menu-split a { display: block; padding: 16px 0; font-size: 1rem; letter-spacing: 0; text-transform: none; text-align: left; }
    body.mobile-menu-open { overflow: hidden; }
}

@media (min-width: 1281px) {
    .site-header #mobile-menu-split { display: none; }
}

@media (max-width: 1024px) {
    .product-page-wrapper .product-hero-shell { grid-template-columns: 1fr; }
    .product-page-wrapper .product-hero-copy-column { order: 1; }
    .product-page-wrapper .product-hero-media-column { order: 2; }
}

@media (max-width: 980px) {
    .it-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .it-method { grid-template-columns: 1fr; }
    .pillar-category-page .pillar-category-intro { grid-template-columns: 1fr; }
    .pillar-category-page .pillar-priority-grid { grid-template-columns: 1fr; }
    .pillar-category-copy { grid-column: auto; grid-row: auto; }
}

@media (max-width: 640px) {
    .it-route-grid,
    .it-proof-band,
    .pillar-category-page .pillar-priority-grid { grid-template-columns: 1fr; }
    .hero-section.it-home-hero { min-height: 500px !important; padding-block: 52px !important; }
    .it-home-hero .hero-subtitle { font-size: 1.05rem; line-height: 1.65; }
    .it-home-hero .hero-buttons { flex-direction: column; align-items: stretch; }
    .site-content .article-hero { min-height: 360px; padding-block: 40px; }
    .product-page-wrapper .product-hero-shell { padding: 18px; gap: 24px; }
    .product-page-wrapper .product-decision-box { padding: 16px; }
    .product-page-wrapper .product-hero-primary-cta { padding-inline: 12px; font-size: .94rem; }
    .product-page-wrapper .product-affilizz-offer { grid-template-columns: minmax(0, 1fr) auto; }
    .product-page-wrapper .product-affilizz-merchant { grid-column: 1 / -1; }
    .product-page-wrapper .product-affilizz-price { grid-column: 1; justify-self: start; }
    .product-page-wrapper .product-affilizz-cta { grid-column: 2; width: auto; min-width: 0; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .site-header *, .it-home-hero *, .pillar-route-card { animation: none !important; transition: none !important; }
    .it-home-hero .hero-buttons .btn:hover, .pillar-route-card:hover { transform: none; }
}
/* Guides de choix : illustrations d’usage, modèles documentés, liens éditoriaux. */
.article-content .it-usage-table-wrap { max-width: var(--article-media, 1020px); margin: 2rem auto; overflow-x: auto; border: 1px solid #dce0e5; border-radius: 10px; }
.article-content table.it-usage-table { display: table; table-layout: fixed; width: 100%; min-width: 660px; margin: 0; border: 0; box-shadow: none; border-radius: 0; white-space: normal; }
.article-content .it-usage-table caption { padding: 16px; text-align: left; font-weight: 600; background: #fff; color: #242936; }
.article-content .it-usage-table th, .article-content .it-usage-table td { white-space: normal; overflow-wrap: break-word; vertical-align: top; padding: 16px; }
.article-content .it-usage-table th:first-child { width: 24%; }
.article-content .it-usage-table tbody th { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.article-content h2[id], .it-guide-anchor { scroll-margin-top: 132px; }
@media (max-width: 700px) {
  .article-content h2[id], .it-guide-anchor { scroll-margin-top: 96px; }
}
.it-buying-guides h2 { max-width: 850px; margin: 0 0 30px; }
.it-buying-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.it-buying-guide { min-width: 0; border-bottom: 1px solid #dce0e5; padding-bottom: 26px; }
.it-buying-visual { display: block; overflow: hidden; border-radius: 10px; }
.it-buying-visual img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 7; object-fit: cover; }
.it-buying-copy { padding-top: 24px; }
.it-buying-copy h3 { margin: 8px 0 12px; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.25; }
.it-buying-copy h3 a { color: #151922; text-decoration: none; }
.it-buying-copy h3 a:hover { color: #b92730; }
.it-buying-copy p { max-width: 58ch; }
.it-buying-copy .it-model-examples { font-size: .9rem; line-height: 1.6; color: #596270; }
.it-guide-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 650; color: #b92730; text-underline-offset: 4px; }
.it-home-products { padding: 48px 0; background: #fff; }
.it-home-products h2 { margin: 8px 0 16px; }
.it-selection-intro { max-width: 72ch; }
.it-partner-notice { font-size: .85rem; line-height: 1.6; color: #596270; margin: 16px 0 28px; }
.it-product-selection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.it-selection-product { min-width: 0; border-top: 2px solid var(--it-line); padding-top: 20px; }
.it-selection-product[hidden], .it-product-tabs[hidden] { display: none; }
.it-product-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.it-product-tabs button { flex: 1; min-width: 0; min-height: 48px; padding: 10px 8px; border: 1px solid var(--it-line); border-radius: 7px; background: #fff; color: var(--it-ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.it-product-tabs button[aria-selected=true] { background: var(--it-ink); border-color: var(--it-ink); color: #fff; }
.it-selection-product h3 { font-size: 1.3rem; margin: 10px 0 14px; }
.it-selection-product h3 a { color: var(--it-ink); text-decoration: none; }
.it-selection-summary { line-height: 1.6; font-size: .95rem; }
.it-selection-media { margin-top: 12px; min-width: 0; }
.it-selection-media affilizz-rendering-component { display: block; max-width: 100%; }
.it-widget-fallback { color: #596270; font-size: .9rem; }
.it-home-products .it-catalog-link { display: inline-flex; margin-top: 28px; min-height: 48px; align-items: center; }
.it-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.it-home-editorial { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 900px; }
.it-home-editorial img { border-radius: 50%; width: 80px; height: 80px; }
.it-home-editorial h2 { font-size: 1.5rem; margin: 0 0 12px; overflow-wrap: anywhere; }
.it-home-editorial p { line-height: 1.65; }
.it-home-final { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--it-line); }
.it-home-final h2 { font-size: 1.6rem; margin: 0; }
.it-home-final .btn { flex-shrink: 0; min-height: 48px; display: inline-flex; align-items: center; }
@media (max-width: 980px) {
  .it-product-selection { grid-template-columns: 1fr; gap: 28px; }
  .it-selection-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .it-selection-product > :not(.it-selection-media) { grid-column: 1; }
  .it-selection-media { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .it-home-products { padding: 28px 0; }
  .it-product-selection { gap: 24px; }
  .it-selection-product { display: block; }
  .it-home-hero .hero-overlay { background: #151922 !important; opacity: .72 !important; }
  .hero-section.it-home-hero { min-height: 430px !important; padding-block: 32px !important; }
  .block-html:has(:is(.it-buying-guides, .it-first-guides, .it-method, .it-home-editorial, .it-home-final)) { padding-block: 28px !important; }
  .block-html:has(.it-home-intro) { padding-block: 24px 12px !important; }
  .block-html:has(.it-route-grid) { padding-bottom: 24px !important; }
  .it-route { padding: 18px 0; }
  .it-route .it-index { margin-bottom: 8px; }
  .it-route h3 { margin-bottom: 8px; }
  .it-route p { margin-bottom: 10px; }
  .it-method { gap: 20px; }
  .it-checks li { padding: 12px 0; }
  .it-home-editorial { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .it-home-editorial img { width: 52px; height: 52px; }
  .it-home-final { display: block; padding: 20px 0 0; }
  .it-home-final .btn { margin-top: 20px; }
}
@media (max-width: 700px) {
  .it-buying-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .it-buying-copy { padding-top: 18px; }
  .it-buying-guide { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 16px; padding-bottom: 20px; }
  .it-buying-copy { padding-top: 0; }
  .it-buying-visual { margin-top: 6px; }
  .it-buying-visual img { aspect-ratio: 1; object-fit: contain; }
  .it-buying-copy h3 { font-size: 1.15rem; }
  .it-buying-copy .it-model-examples { font-size: .8rem; }
}
