/* Fiche partenaire · document sponsor premium (écran + impression A4) */

.psheet {
    --ps-pad: clamp(1.25rem, 4vw, 2rem);
    --ps-max: 42rem;
    max-width: var(--ps-max);
    margin: 0 auto;
    padding: 0 var(--ps-pad) clamp(3rem, 8vw, 4.5rem);
}

/* Barre d'actions (hors impression, défile avec la page) */
.ps-toolbar {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 44px;
    max-width: var(--ps-max);
    margin: 20px auto 0;
    padding: 0 20px;
    padding-top: max(0px, env(safe-area-inset-top));
    box-sizing: content-box;
}

.ps-toolbar__back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
}

.ps-toolbar__back:hover,
.ps-toolbar__back:focus-visible {
    color: var(--gold-2);
    outline: none;
}

.ps-toolbar__pdf.ps-btn {
    flex-shrink: 1;
    min-width: 0;
    padding: 0.5rem 0.85rem;
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
    white-space: nowrap;
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 1.05rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.ps-btn i { color: var(--gold-2); font-size: 0.9rem; }

.ps-btn:hover,
.ps-btn:focus-visible {
    border-color: var(--gold);
    color: var(--gold-2);
    outline: none;
}

.ps-btn--gold {
    border-color: rgba(201, 162, 39, 0.45);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.08));
}

.ps-btn--gold i { color: var(--gold); }

/* En-tête */
.ps-hero {
    text-align: center;
    padding: clamp(1.5rem, 5vw, 2.5rem) 0 clamp(2rem, 5vw, 2.75rem);
    border-bottom: 1px solid var(--line);
}

.ps-hero__logo {
    width: min(168px, 52vw);
    height: auto;
    margin: 0 auto 1.25rem;
    opacity: 0.96;
}

.ps-hero__year {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.ps-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.ps-hero__tagline {
    font-size: clamp(1rem, 2.8vw, 1.12rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--muted);
    max-width: 34ch;
    margin: 0 auto;
}

.ps-hero__tagline strong { color: var(--text); font-weight: 600; }

/* Sections */
.ps-section {
    padding: clamp(1.75rem, 4vw, 2.25rem) 0;
    border-bottom: 1px solid var(--line);
}

.ps-section:last-of-type { border-bottom: none; }

.ps-section__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.ps-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 3vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Cartes chiffres clés */
.ps-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 520px) {
    .ps-stats { grid-template-columns: 1fr 1fr; }
}

.ps-stat {
    padding: 1.15rem 1.2rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, var(--surface), rgba(255, 255, 255, 0.01));
    break-inside: avoid;
    page-break-inside: avoid;
}

.ps-stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 700;
    color: var(--gold-2);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.ps-stat__value sup { font-size: 0.55em; vertical-align: super; }

.ps-stat__desc {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
}

/* Histoire */
.ps-story {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ps-story li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text);
    break-inside: avoid;
    page-break-inside: avoid;
}

.ps-story li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Offre partenaire */
.ps-offers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 480px) {
    .ps-offers { grid-template-columns: 1fr 1fr; }
}

.ps-offer {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    break-inside: avoid;
    page-break-inside: avoid;
}

.ps-offer__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 1rem;
}

.ps-offer h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.ps-offer p {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
}

/* Presse */
.ps-press {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ps-quote {
    margin: 0;
    padding: 1rem 1.1rem;
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: var(--surface);
    break-inside: avoid;
    page-break-inside: avoid;
}

.ps-quote p {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

.ps-quote cite {
    display: block;
    margin-top: 0.55rem;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--dim);
}

.ps-quote cite a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Référence X9 */
.ps-ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.25rem 1rem;
    border-radius: var(--r);
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(201, 162, 39, 0.06), var(--surface));
    break-inside: avoid;
    page-break-inside: avoid;
}

.ps-ref__k {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.ps-ref img {
    width: min(200px, 70vw);
    height: auto;
    object-fit: contain;
    opacity: 0.92;
}

.ps-ref p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    max-width: 28ch;
}

/* CTA */
.ps-cta {
    text-align: center;
    padding: clamp(2rem, 5vw, 2.75rem) 0 0;
    break-inside: avoid;
    page-break-inside: avoid;
}

.ps-cta__lead {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.ps-cta__actions {
    max-width: 20rem;
    margin: 0 auto 1rem;
}

.ps-cta__actions .btn {
    width: 100%;
}

.ps-cta__link {
    display: block;
    margin-top: 0;
    font-size: 0.82rem;
    color: var(--dim);
    line-height: 1.5;
}

.ps-cta__link a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ps-foot {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.72rem;
    color: var(--dim);
    letter-spacing: 0.04em;
}

/* ===== Impression A4 ================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 9mm 11mm;
    }

    html, body {
        background: #fff !important;
        color: #1a1814 !important;
        overflow: visible !important;
        font-size: 9.5pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print,
    .ps-toolbar {
        display: none !important;
    }

    .psheet {
        max-width: none;
        padding: 0;
    }

    .ps-hero {
        padding: 0 0 0.65rem;
        border-bottom-color: rgba(0, 0, 0, 0.12);
    }

    .ps-hero__logo { width: 108px; margin-bottom: 0.5rem; }

    .ps-hero__year { margin-bottom: 0.35rem; font-size: 0.6rem; }

    .ps-hero__title { font-size: 1.05rem; margin-bottom: 0.45rem; }

    .ps-hero__tagline { font-size: 0.88rem; max-width: none; }

    .ps-hero__year { color: #8b7019; }

    .ps-hero__title { color: #1a1814; }

    .ps-hero__tagline { color: #4a4540; }

    .ps-hero__tagline strong { color: #1a1814; }

    .ps-section {
        border-bottom-color: rgba(0, 0, 0, 0.1);
        padding: 0.55rem 0;
    }

    .ps-section__label { margin-bottom: 0.45rem; font-size: 0.58rem; }

    .ps-section__title { font-size: 0.92rem; margin-bottom: 0.45rem; }

    .ps-stats { gap: 0.4rem; }

    .ps-stat { padding: 0.55rem 0.65rem; }

    .ps-stat__value { font-size: 0.95rem; margin-bottom: 0.2rem; }

    .ps-stat__desc { font-size: 0.78rem; line-height: 1.35; }

    .ps-story { gap: 0.45rem; }

    .ps-story li { font-size: 0.82rem; padding-left: 1rem; line-height: 1.4; }

    .ps-offers { gap: 0.4rem; }

    .ps-offer { padding: 0.5rem 0.55rem; gap: 0.55rem; }

    .ps-offer__icon { width: 1.65rem; height: 1.65rem; font-size: 0.8rem; border-radius: 7px; }

    .ps-offer h3 { font-size: 0.78rem; }

    .ps-offer p { font-size: 0.72rem; line-height: 1.35; }

    .ps-press { gap: 0.45rem; }

    .ps-quote { padding: 0.55rem 0.65rem; }

    .ps-quote p { font-size: 0.82rem; line-height: 1.4; }

    .ps-quote cite { font-size: 0.68rem; margin-top: 0.35rem; }

    .ps-ref { padding: 0.55rem 0.65rem; gap: 0.45rem; }

    .ps-ref img { width: 120px; }

    .ps-ref p { font-size: 0.72rem; }

    .ps-section__label { color: #8b7019; }

    .ps-section__title { color: #1a1814; }

    .ps-stat {
        border-color: rgba(0, 0, 0, 0.12);
        background: #f7f5f0;
    }

    .ps-stat__value { color: #8b7019; }

    .ps-stat__desc { color: #4a4540; }

    .ps-story li { color: #1a1814; }

    .ps-story li::before {
        background: #c9a227;
        box-shadow: none;
    }

    .ps-offer {
        border-color: rgba(0, 0, 0, 0.1);
        background: #faf9f6;
    }

    .ps-offer__icon {
        background: rgba(201, 162, 39, 0.15);
        color: #8b7019;
    }

    .ps-offer h3 { color: #1a1814; }

    .ps-offer p { color: #4a4540; }

    .ps-quote {
        border-left-color: #c9a227;
        background: #f7f5f0;
    }

    .ps-quote p { color: #1a1814; }

    .ps-quote cite { color: #6a6560; }

    .ps-quote cite a { color: #8b7019; }

    .ps-ref {
        border-color: rgba(201, 162, 39, 0.35);
        background: #0a0908 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ps-ref__k { color: #9a9590; }

    .ps-ref p { color: #f8f6f0 !important; }

    .ps-cta {
        padding-top: 0.45rem;
    }

    .ps-cta__lead { color: #4a4540; font-size: 0.82rem; margin-bottom: 0.45rem; }

    .ps-cta__actions { display: none; }

    .ps-cta__link { color: #4a4540; font-size: 0.8rem; margin-top: 0.35rem; }

    .ps-cta__link a { color: #1a1814; text-decoration: none; }

    .ps-foot { color: #6a6560; border-top-color: rgba(0, 0, 0, 0.1); margin-top: 0.65rem; padding-top: 0.45rem; font-size: 0.65rem; }

    .ps-section--stats,
    .ps-section--story,
    .ps-section--offer {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
