/* /solutions/rapports-perception-mediatique
   Its own layout, distinct from /solutions/veille-presse (entreprises.css) and the
   retombées page (retombees.css): the page reads like the report it sells.
   A cover, the contents as a sommaire grid,
   the comparison as a decision table, the findings as big numbers, the
   method as a vertical timeline. Tokens only, namespaced `pc-`.
   Red budget (1 of 3): the hero phrase. */

.pc-page {
    overflow-x: clip;
    color: var(--color-text);
}

.pc-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 72px);
}

.pc-section {
    padding: clamp(52px, 8.5vh, 100px) 0;
}

.pc-band {
    background: var(--color-surface);
}

.pc-page h1,
.pc-page h2,
.pc-page h3 {
    font-family: var(--font-display);
    color: var(--color-ink);
    letter-spacing: var(--track-display);
    margin: 0;
    overflow-wrap: anywhere;
}

.pc-page h2 {
    font-size: var(--fs-display-2);
    font-weight: normal;
    line-height: 1.12;
}

.pc-page p {
    margin: 0;
}

.pc-accent {
    /* deep red, the same as the emphasised title line on the other hero pages */
    color: var(--color-accent-dark);
}

.pc-page a:focus-visible,
.pc-page summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ---- Buttons ---------------------------------------------------------- */

.pc-btn {
    display: inline-block;
    background: var(--color-ink);
    color: var(--color-surface);
    border: 2px solid var(--color-ink);
    border-radius: var(--radius);
    padding: 15px 30px;
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.pc-btn:hover {
    background: var(--color-surface);
    color: var(--color-ink);
}

/* ---- Cover ------------------------------------------------------------ */

.pc-cover {
    padding: clamp(48px, 10vh, 120px) 0 clamp(40px, 6vh, 72px);
}

/* The cover fills the first screen (100px = the fixed navbar), so the off-white
   band after it never shows above the fold. Phones: the content is tall enough. */
@media (min-width: 621px) {
    .pc-cover {
        min-height: calc(100vh - 100px);
    }
}

.pc-cover h1 {
    font-size: var(--fs-display-1); /* same title size as the other solution pages (Julien, 2026-10-01) */
    font-weight: bold;
    line-height: 1;
    max-width: 14em;
}

.pc-cover-foot {
    /* Lede, then the actions under it, left-aligned as on the other solution pages. */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    justify-items: start;
    margin-top: clamp(32px, 5vh, 56px);
}

.pc-cover-foot > * {
    min-width: 0;
}

.pc-lede {
    font-size: var(--fs-lede);
    color: var(--color-text-strong);
    line-height: 1.6;
    max-width: 52ch;
}

.pc-cover-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 32px;
}

.pc-link {
    font-size: var(--fs-small);
    color: var(--color-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}

.pc-link:hover {
    color: var(--color-ink);
    border-bottom-color: var(--color-ink);
}

/* ---- Section heads: stacked, left ---------------------------------------- */

.pc-head {
    max-width: 62ch;
    margin-bottom: clamp(36px, 6vh, 56px);
}

.pc-head h2 {
    margin-bottom: 16px;
}

.pc-head p {
    font-size: var(--fs-body);
    line-height: 1.7;
}

/* ---- Contents: a sommaire grid ------------------------------------------- */

.pc-contents {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pc-chapter {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 28px;
    transition: background-color 0.25s ease;
}

.pc-chapter:hover {
    background: var(--color-surface-2);
}

.pc-chapter h3 {
    font-size: var(--fs-body);
    font-weight: bold;
    margin-bottom: 12px;
}

.pc-chapter p {
    font-size: var(--fs-small);
    line-height: 1.65;
}

/* The last chapter closes the contents: full width, set apart by an ink rule. */
.pc-chapter-synthesis {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 16px clamp(32px, 5vw, 72px);
    background: var(--color-surface-2);
    border-top: 2px solid var(--color-ink);
    border-radius: 0 0 var(--radius) var(--radius);
}

.pc-chapter-synthesis h3 {
    font-size: var(--fs-display-3);
    margin: 0;
}

.pc-chapter-synthesis p {
    font-size: var(--fs-body);
}

/* ---- Report plates: tabs over one chart ------------------------------------ */

.pc-plates {
    margin-top: clamp(40px, 7vh, 72px);
}

.pc-plates-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px 24px;
    margin-bottom: 20px;
}

.pc-plates-head h3 {
    font-size: var(--fs-display-3);
    font-weight: normal;
}

.pc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pc-tab {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-text-strong);
    background: var(--color-bg);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pc-tab:hover {
    background: var(--color-surface-2);
}

.pc-tab[aria-selected="true"] {
    background: var(--color-ink);
    color: var(--color-surface);
}

.pc-tab:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.pc-plate {
    margin: 0;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: clamp(16px, 3vw, 32px);
}

.pc-plate[hidden] {
    display: none;
}

.pc-plate img {
    display: block;
    width: 100%;
    height: auto;
}

.pc-plates-hint {
    display: none;
}

.pc-plate-scroll:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.pc-plate figcaption {
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    line-height: 1.6;
    margin-top: 16px;
    max-width: 62ch;
}

/* ---- Decision table ------------------------------------------------------ */

.pc-table {
    width: 100%;
    border-collapse: collapse;
}

.pc-table thead th {
    font-size: var(--fs-caption);
    font-weight: normal;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: var(--track-caps);
    text-align: left;
    padding: 0 20px 14px;
    border-bottom: 2px solid var(--color-ink);
}

.pc-table tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.pc-table tbody tr:last-child {
    border-bottom: 0;
}

.pc-table tbody tr:nth-child(odd) {
    background: var(--color-surface);
}

.pc-table tbody th,
.pc-table tbody td {
    padding: 24px 20px;
    vertical-align: top;
    text-align: left;
    font-size: var(--fs-body);
    line-height: 1.65;
}

.pc-table tbody th {
    width: 18%;
    font-family: var(--font-display);
    font-weight: bold;
    color: var(--color-ink);
}

.pc-table tbody td:nth-child(2) {
    width: 36%;
    color: var(--color-text-soft);
}

.pc-table-note {
    font-size: var(--fs-small);
    color: var(--color-text-soft);
    margin-top: 16px;
}

/* ---- Findings: big numbers ----------------------------------------------- */

.pc-findings-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px 32px;
    margin-bottom: clamp(36px, 6vh, 56px);
}

.pc-flag {
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
}

.pc-findings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 clamp(24px, 3vw, 40px);
    margin: 0;
}

.pc-finding {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 44px 0;
    border-top: 1px solid var(--color-border);
}

.pc-finding dt {
    font-family: var(--font-display);
    font-size: var(--fs-display-3);
    font-weight: bold;
    color: var(--color-ink);
    letter-spacing: var(--track-display);
    line-height: 1.1;
    white-space: nowrap;
}

.pc-finding dd {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.6;
    max-width: 30ch;
}

/* ---- Method: vertical timeline ----------------------------------------- */

.pc-method {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
}

.pc-method > * {
    min-width: 0;
}

.pc-method .pc-head {
    margin-bottom: 0;
}

.pc-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.pc-timeline::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--color-border);
}

.pc-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 36px;
}

.pc-step:last-child {
    padding-bottom: 0;
}

.pc-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-ink);
    font-size: var(--fs-emph);
    position: relative;
}

.pc-step h3 {
    font-size: var(--fs-body);
    font-weight: bold;
    margin: 10px 0 8px;
}

.pc-step p {
    font-size: var(--fs-body);
    line-height: 1.65;
}

/* ---- Audiences ---------------------------------------------------------- */

.pc-audiences {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pc-audience {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 28px;
}

.pc-audience h3 {
    font-size: var(--fs-body);
    font-weight: bold;
    margin-bottom: 12px;
}

.pc-audience p {
    font-size: var(--fs-small);
    line-height: 1.65;
}

/* ---- Contact form: last on the page, opened by an ink rule ------------ */

.pc-contact {
    scroll-margin-top: 90px;
}

.pc-contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px clamp(32px, 5vw, 72px);
    padding-top: clamp(32px, 5vw, 56px);
    border-top: 2px solid var(--color-ink);
}

.pc-contact-grid > * {
    min-width: 0;
}

.pc-contact-intro h2 {
    margin-bottom: 16px;
}

.pc-contact-intro p {
    font-size: var(--fs-body);
    line-height: 1.7;
    max-width: 40ch;
}

.pc-field {
    margin-bottom: 20px;
}

.pc-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-bottom: 24px;
}

.pc-field-row .pc-field {
    margin-bottom: 0;
}

.pc-field label {
    display: block;
    font-size: var(--fs-small);
    color: var(--color-ink);
    margin-bottom: 8px;
}

.pc-field .required {
    color: var(--color-text-soft);
}

.pc-field input,
.pc-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pc-field input:focus,
.pc-field textarea:focus {
    outline: none;
    border-color: var(--color-ink);
    background: var(--color-surface-2);
}

.pc-field input::placeholder,
.pc-field textarea::placeholder {
    color: var(--color-text-soft);
}

.pc-field textarea {
    resize: vertical;
    min-height: 120px;
}

.pc-field-error {
    color: var(--color-danger);
    font-size: var(--fs-caption);
    margin-top: 6px;
}

.pc-form-alert {
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    border-left: 3px solid var(--color-danger);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: var(--fs-small);
    color: var(--color-text-strong);
}

.pc-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.pc-form-submit {
    cursor: pointer;
}

.pc-form-note {
    font-size: var(--fs-caption);
    color: var(--color-text-soft);
    max-width: 36ch;
}

.pc-form-success h3 {
    font-size: var(--fs-display-3);
    font-weight: bold;
    margin-bottom: 12px;
}

.pc-form-success p {
    font-size: var(--fs-body);
    line-height: 1.7;
}

/* ---- Partners ----------------------------------------------------------- */

.pc-page .pc-trust-label {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    letter-spacing: 0;
    color: var(--color-text-soft);
    text-align: center;
    margin-bottom: 32px;
}

.pc-trust-logos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 32px 40px;
}

.pc-trust-logos img {
    height: auto;
    max-height: 40px;
    width: auto;
    max-width: 100%;
    filter: grayscale(1);
    opacity: 0.8;
}

/* ---- FAQ: reuses faq.css, left-set column ------------------------------- */

.pc-faq {
    max-width: 820px;
}

.pc-faq h2 {
    margin-bottom: 32px;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .pc-contents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 950px) {
    .pc-cover-foot,
    .pc-method,
    .pc-contact-grid,
    .pc-chapter-synthesis {
        grid-template-columns: 1fr;
    }

    .pc-cover-cta {
        justify-content: flex-start;
    }

    .pc-audiences {
        grid-template-columns: 1fr;
    }

    .pc-trust-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    /* The poster step cannot hold "L'interprétation" on one line at 390px:
       the page-title step does, so the word never breaks mid-letter. */
    .pc-cover h1 {
        font-size: calc(var(--fs-display-1) * 0.9);
        line-height: 1.06;
    }

    .pc-contents,
    .pc-findings,
    .pc-field-row {
        grid-template-columns: 1fr;
    }

    /* The charts are unreadable squeezed to 330px: they keep a legible
       width and scroll sideways inside their plate. */
    .pc-plate-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pc-plate-scroll img {
        width: 760px;
        max-width: none;
    }

    .pc-plates-hint {
        display: block;
        font-size: var(--fs-caption);
        color: var(--color-text-soft);
        margin: 0 0 12px;
    }

    /* Table reflows into stacked records, zebra off, each cell labelled. */
    .pc-table thead {
        display: none;
    }

    .pc-table,
    .pc-table tbody,
    .pc-table tr,
    .pc-table th,
    .pc-table td {
        display: block;
        width: 100% !important;
    }

    .pc-table tbody tr:nth-child(odd) {
        background: none;
    }

    .pc-table tbody th {
        padding: 20px 0 8px;
    }

    .pc-table tbody td {
        padding: 0 0 14px;
    }

    .pc-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: var(--fs-caption);
        color: var(--color-text-soft);
        margin-bottom: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-page *,
    .pc-page *::before,
    .pc-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
