/*
 * PAPATTES — catégorie, préparation V1.
 * Source conservée dans reference/styles.css (original non modifié).
 *
 * Organisation : fondations, palettes, structure, composants, responsive,
 * puis ajustements successifs de la maquette, numérotés ci-dessous.
 * L'ordre des règles est conservé pour préserver la cascade existante.
 * Tous les sélecteurs sont limités au conteneur .papattes-template.
 * Classes, identifiants et variables CSS portent le préfixe papattes-.
 * Direction bleue et police Inter ; réglages actuels dans la section d’intégration.
 * Les styles des autres maquettes et pages ne sont pas chargés.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* 01. Fondations et accessibilité */

.papattes-template {
    font-synthesis: none;
}

:where(.papattes-template) * {
    box-sizing: border-box;
}

.papattes-template {
    scroll-behavior: smooth;
}

.papattes-template {
    margin: 0;
}

:where(.papattes-template) button,
:where(.papattes-template) input,
:where(.papattes-template) select {
    font: inherit;
}

:where(.papattes-template) button {
    cursor: pointer;
}

:where(.papattes-template) a {
    color: inherit;
    text-decoration: none;
}

:where(.papattes-template) button:focus-visible,
:where(.papattes-template) a:focus-visible,
:where(.papattes-template) input:focus-visible,
:where(.papattes-template) select:focus-visible {
    outline: 3px solid var(--papattes-accent);
    outline-offset: 3px;
}

:where(.papattes-template) [hidden] {
    display: none!important;
}

:where(.papattes-template) .papattes-skip {
    position: absolute;
    left: 20px;
    top: -80px;
    padding: 12px;
    background: white;
    z-index: 100;
}

:where(.papattes-template) .papattes-skip:focus {
    top: 10px;
}

/* 02. Palettes */

.papattes-template[data-theme=pop] {
    --papattes-bg: #f5f6fd;
    --papattes-paper: #fff;
    --papattes-ink: #16235b;
    --papattes-muted: #626b91;
    --papattes-accent: #4257f4;
    --papattes-accent-ink: #fff;
    --papattes-accent-soft: #e4e8ff;
    --papattes-secondary: #db5d74;
    --papattes-hero: #e7eaff;
    --papattes-line: #dfe2f1;
    --papattes-shadow: 0 14px 0 rgba(31,45,103,.06);
    --papattes-radius: 6px;
    --papattes-title-font: 'Space Grotesk',Arial,sans-serif;
    --papattes-body-font: 'Outfit',Arial,sans-serif;
    --papattes-art: #c9d0ff;
    --papattes-art-line: #1f3186;
    --papattes-sticker: #f5df65;
}

/* 03. Structure et espacements partagés */

.papattes-template {
    font-family: var(--papattes-body-font);
    background: #202321;
    color: var(--papattes-ink);
    font-size: 15px;
    line-height: 1.5;
}

.papattes-template.papattes-site-frame {
    background: var(--papattes-bg);
    min-height: 100vh;
    overflow: hidden;
}

:where(.papattes-template) .papattes-site-shell {
    width: min(1370px,calc(100% - 80px));
    margin: auto;
}

/* 04. En-tête et navigation */

:where(.papattes-template) .papattes-site-header {
    background: var(--papattes-paper);
    border-bottom: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-nav-inner {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 65px;
}

:where(.papattes-template) .papattes-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.6px;
    white-space: nowrap;
}

:where(.papattes-template) .papattes-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--papattes-accent);
    border-radius: 11px;
}

:where(.papattes-template) .papattes-brand-mark svg {
    width: 28px;
    height: 28px;
    fill: var(--papattes-accent-ink);
}

:where(.papattes-template) .papattes-brand-dot {
    color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
    font-size: 13px;
    font-weight: 700;
}

:where(.papattes-template) .papattes-main-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--papattes-muted);
    border-bottom: 2px solid transparent;
}

:where(.papattes-template) .papattes-main-nav a.papattes-active,
:where(.papattes-template) .papattes-main-nav a:hover {
    color: var(--papattes-ink);
    border-color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-nav-note {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 30px;
    background: var(--papattes-accent-soft);
    color: var(--papattes-secondary);
    white-space: nowrap;
}

:where(.papattes-template) .papattes-menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    color: var(--papattes-ink);
}

/* 05. Composants communs */

:where(.papattes-template) .papattes-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--papattes-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

:where(.papattes-template) .papattes-section-top h1 em {
    font-style: normal;
    color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 11px;
    padding: 14px 19px;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s,background .2s;
    border: 0;
}

:where(.papattes-template) .papattes-btn:hover {
    transform: translateY(-2px);
}

:where(.papattes-template) .papattes-btn.papattes-primary {
    background: var(--papattes-accent);
    color: var(--papattes-accent-ink);
}

:where(.papattes-template) .papattes-btn.papattes-primary:hover {
    filter: brightness(.93);
}

:where(.papattes-template) .papattes-btn span {
    font-size: 17px;
}

/* 06. Catalogue, filtres et cartes */

:where(.papattes-template) .papattes-catalogue-section {
    padding: 70px 0 110px;
}

:where(.papattes-template) .papattes-section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 31px;
}

:where(.papattes-template) .papattes-section-top h1 {
    font-family: var(--papattes-title-font);
    font-size: clamp(36px,3.2vw,48px);
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 10px 0 0;
    font-weight: 600;
}

:where(.papattes-template) .papattes-section-top p {
    color: var(--papattes-muted);
    max-width: 335px;
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.6;
}

:where(.papattes-template) .papattes-catalogue-layout {
    display: grid;
    grid-template-columns: 255px minmax(0,1fr);
    align-items: start;
    gap: 28px;
}

:where(.papattes-template) .papattes-filter-panel {
    background: var(--papattes-paper);
    border: 1px solid var(--papattes-line);
    border-radius: var(--papattes-radius);
    padding: 22px 20px 17px;
    box-shadow: var(--papattes-shadow);
}

:where(.papattes-template) .papattes-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--papattes-line);
    padding-bottom: 15px;
}

:where(.papattes-template) .papattes-filter-heading strong {
    font-size: 16px;
}

:where(.papattes-template) .papattes-filter-heading button {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--papattes-secondary);
    font-size: 11px;
    font-weight: 800;
}

:where(.papattes-template) .papattes-filter-block {
    padding: 19px 0;
    border-bottom: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-filter-block.papattes-last {
    border-bottom: 0;
}

:where(.papattes-template) .papattes-filter-block label,
:where(.papattes-template) .papattes-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 9px;
}

:where(.papattes-template) .papattes-filter-block select,
:where(.papattes-template) .papattes-results-toolbar select {
    appearance: none;
    border: 1px solid var(--papattes-line);
    border-radius: 8px;
    background: var(--papattes-paper);
    color: var(--papattes-ink);
    padding: 10px 28px 10px 11px;
    width: 100%;
    font-size: 12px;
    outline-offset: 2px;
}

:where(.papattes-template) .papattes-filter-block select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%2362736b' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

:where(.papattes-template) .papattes-segment {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3px;
    background: var(--papattes-bg);
    padding: 4px;
    border-radius: 9px;
}

:where(.papattes-template) .papattes-segment button {
    border: 0;
    background: transparent;
    border-radius: 7px;
    padding: 7px 0;
    color: var(--papattes-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

:where(.papattes-template) .papattes-segment button.papattes-selected {
    background: var(--papattes-paper);
    color: var(--papattes-ink);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

:where(.papattes-template) .papattes-range-number {
    display: flex;
    align-items: center;
    gap: 9px;
}

:where(.papattes-template) .papattes-range-number input {
    width: 100%;
    accent-color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-range-number span {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    color: var(--papattes-secondary);
}

:where(.papattes-template) .papattes-filter-aside {
    display: flex;
    gap: 8px;
    background: var(--papattes-accent-soft);
    border-radius: 10px;
    padding: 12px 10px;
    margin-top: 9px;
}

:where(.papattes-template) .papattes-filter-aside span {
    color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-filter-aside p {
    font-size: 10px;
    margin: 0;
    line-height: 1.45;
    color: var(--papattes-muted);
}

:where(.papattes-template) .papattes-results {
    min-width: 0;
}

:where(.papattes-template) .papattes-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

:where(.papattes-template) .papattes-results-toolbar>div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

:where(.papattes-template) .papattes-results-toolbar strong {
    font-family: var(--papattes-title-font);
    font-size: 22px;
    letter-spacing: -.7px;
}

:where(.papattes-template) .papattes-results-toolbar span {
    font-size: 11px;
    color: var(--papattes-muted);
}

:where(.papattes-template) .papattes-results-toolbar label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--papattes-muted);
    font-size: 11px;
}

:where(.papattes-template) .papattes-results-toolbar select {
    width: 155px;
    font-weight: 700;
}

:where(.papattes-template) .papattes-card-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px;
}

:where(.papattes-template) .papattes-formula-card {
    min-width: 0;
    background: var(--papattes-paper);
    border: 1px solid var(--papattes-line);
    border-radius: var(--papattes-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform .2s,box-shadow .2s,border-color .2s;
}

:where(.papattes-template) .papattes-formula-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--papattes-shadow);
    border-color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

:where(.papattes-template) .papattes-insurer {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--papattes-muted);
    font-size: 11px;
    font-weight: 800;
}

:where(.papattes-template) .papattes-insurer-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--papattes-accent-soft);
    color: var(--papattes-secondary);
    border-radius: 8px;
    font-size: 17px;
}

:where(.papattes-template) .papattes-formula-card h2 {
    font-family: var(--papattes-title-font);
    font-size: 25px;
    letter-spacing: -1px;
    line-height: 1.14;
    margin: 19px 0 6px;
    font-weight: 600;
    min-height: 55px;
}

:where(.papattes-template) .papattes-coverage {
    color: var(--papattes-secondary);
    font-size: 11px;
    font-weight: 700;
    min-height: 34px;
}

:where(.papattes-template) .papattes-empty {
    text-align: center;
    background: var(--papattes-paper);
    border: 1px dashed var(--papattes-line);
    border-radius: var(--papattes-radius);
    padding: 55px;
}

:where(.papattes-template) .papattes-empty span {
    font-size: 35px;
    color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-empty h3 {
    margin-bottom: 3px;
}

:where(.papattes-template) .papattes-empty p {
    color: var(--papattes-muted);
    margin: 0;
}

/* 07. Bandeau méthode */

:where(.papattes-template) .papattes-method-strip {
    background: var(--papattes-ink);
    color: var(--papattes-bg);
}

:where(.papattes-template) .papattes-method-inner {
    display: grid;
    grid-template-columns: 56px 1fr 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 54px 0;
}


:where(.papattes-template) .papattes-method-inner .papattes-eyebrow {
    color: var(--papattes-sticker);
}

:where(.papattes-template) .papattes-method-inner h2 {
    font-family: var(--papattes-title-font);
    font-size: 35px;
    letter-spacing: -1.5px;
    line-height: 1.13;
    margin: 9px 0 0;
}

:where(.papattes-template) .papattes-method-inner p {
    color: #d4dfd7;
    max-width: 380px;
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

:where(.papattes-template) .papattes-method-inner a {
    font-size: 12px;
    font-weight: 800;
    color: var(--papattes-sticker);
}

/* 08. Panneaux et pied de page */

:where(.papattes-template) .papattes-site-footer {
    background: var(--papattes-paper);
    border-top: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 38px 0;
    color: var(--papattes-muted);
    font-size: 11px;
}

:where(.papattes-template) .papattes-footer-inner strong {
    color: var(--papattes-ink);
    font-size: 24px;
    letter-spacing: -1px;
}

:where(.papattes-template) .papattes-footer-inner p {
    margin: 3px 0 0;
}

/* 09. Ajustements de la palette */

.papattes-template[data-theme=pop] .papattes-section-top h1 em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: var(--papattes-sticker);
    text-decoration-thickness: 9px;
    text-underline-offset: -3px;
}

.papattes-template[data-theme=pop] .papattes-formula-card:hover {
    box-shadow: 6px 6px 0 var(--papattes-ink);
}

/* 10. Adaptation aux écrans : 1100 px */

@media(max-width:1100px) {
    :where(.papattes-template) .papattes-card-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    :where(.papattes-template) .papattes-method-inner {
        grid-template-columns: 40px 1fr 1fr;
    }

    :where(.papattes-template) .papattes-method-inner a {
        grid-column: 2;
    }

}

/* 11. Adaptation aux écrans : 760 px */

@media(max-width:760px) {
    :where(.papattes-template) .papattes-site-shell {
        width: min(100% - 34px,600px);
    }

    :where(.papattes-template) .papattes-nav-inner {
        height: 68px;
    }

    :where(.papattes-template) .papattes-brand {
        font-size: 24px;
    }

    :where(.papattes-template) .papattes-brand-mark {
        width: 34px;
        height: 34px;
    }

    :where(.papattes-template) .papattes-main-nav,
    :where(.papattes-template) .papattes-nav-note {
        display: none;
    }

    :where(.papattes-template) .papattes-menu-button {
        display: block;
        margin-left: auto;
    }

    :where(.papattes-template) .papattes-catalogue-section {
        padding: 52px 0 70px;
    }

    :where(.papattes-template) .papattes-section-top {
        display: block;
    }

    :where(.papattes-template) .papattes-section-top p {
        margin: 12px 0 0;
    }

    :where(.papattes-template) .papattes-catalogue-layout {
        display: block;
    }

    :where(.papattes-template) .papattes-filter-panel {
        margin-bottom: 25px;
    }

    :where(.papattes-template) .papattes-card-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    :where(.papattes-template) .papattes-method-inner {
        grid-template-columns: 30px 1fr;
        gap: 16px;
        padding: 36px 0;
    }

    :where(.papattes-template) .papattes-method-inner p,
    :where(.papattes-template) .papattes-method-inner a {
        grid-column: 2;
    }

    :where(.papattes-template) .papattes-footer-inner {
        align-items: start;
        gap: 20px;
        flex-direction: column;
    }

}

/* 12. Adaptation aux écrans : 530 px */

@media(max-width:530px) {
    :where(.papattes-template) .papattes-card-grid {
        grid-template-columns: 1fr;
    }

    :where(.papattes-template) .papattes-formula-card h2 {
        min-height: 0;
    }

    :where(.papattes-template) .papattes-results-toolbar {
        align-items: start;
    }

    :where(.papattes-template) .papattes-results-toolbar>div {
        display: block;
    }

    :where(.papattes-template) .papattes-results-toolbar span {
        display: block;
    }

    :where(.papattes-template) .papattes-results-toolbar select {
        width: 130px;
    }

    :where(.papattes-template) .papattes-footer-inner {
        font-size: 10px;
    }

}

/* 13. Catalogue compact, sur fond blanc. La bordure épaisse et le soulèvement restent la signature de la piste bleue. */

.papattes-template[data-theme=pop].papattes-site-frame {
    background: #fff;
}

:where(.papattes-template) .papattes-catalogue-section {
    padding-top: 54px;
}

:where(.papattes-template) .papattes-filter-panel {
    box-shadow: none;
}

:where(.papattes-template) .papattes-card-grid {
    gap: 13px;
}

:where(.papattes-template) .papattes-formula-card {
    border: 2px solid var(--papattes-ink);
    padding: 15px;
    box-shadow: 3px 3px 0 var(--papattes-ink);
    gap: 0;
}

:where(.papattes-template) .papattes-formula-card:hover {
    transform: translate(-2px,-2px);
    border-color: var(--papattes-ink);
    box-shadow: 6px 6px 0 var(--papattes-ink);
}

:where(.papattes-template) .papattes-card-main {
    display: block;
}

:where(.papattes-template) .papattes-card-main:hover .papattes-card-title-line h2 {
    text-decoration: underline;
    text-decoration-color: var(--papattes-sticker);
    text-decoration-thickness: 5px;
    text-underline-offset: 1px;
}

:where(.papattes-template) .papattes-insurer {
    color: var(--papattes-ink);
    font-size: 12px;
}

:where(.papattes-template) .papattes-insurer-mark {
    border: 1.5px solid var(--papattes-ink);
    background: var(--papattes-accent-soft);
    border-radius: 6px;
    flex: none;
}

:where(.papattes-template) .papattes-insurer-mark {
    position: relative;
    overflow: hidden;
}

:where(.papattes-template) .papattes-insurer-mark img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

:where(.papattes-template) .papattes-insurer-mark img[hidden] {
    display: none;
}

:where(.papattes-template) .papattes-card-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

:where(.papattes-template) .papattes-card-title-line h2 {
    margin: 0;
    min-height: 0;
    font-size: 23px;
}

:where(.papattes-template) .papattes-card-title-line>span {
    color: var(--papattes-accent);
    font-weight: 800;
}

:where(.papattes-template) .papattes-coverage {
    display: block;
    min-height: 0;
    margin-top: 3px;
    font-size: 11px;
}

:where(.papattes-template) .papattes-card-caption {
    display: block;
    color: var(--papattes-muted);
    font-size: 10px;
    font-weight: 700;
}

:where(.papattes-template) .papattes-card-advantages {
    padding-top: 10px;
    margin-top: auto;
}

:where(.papattes-template) .papattes-advantage-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

:where(.papattes-template) .papattes-advantage-group {
    position: relative;
}

:where(.papattes-template) .papattes-advantage-group summary {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    border: 1px solid var(--papattes-line);
    background: #fff;
    border-radius: 5px;
    padding: 4px 6px;
    list-style: none;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

:where(.papattes-template) .papattes-advantage-group summary {
    width: 31px;
    height: 31px;
    justify-content: center;
    padding: 3px;
}

:where(.papattes-template) .papattes-card-caption small {
    font-weight: 400;
}

:where(.papattes-template) .papattes-group-icon {
    width: 23px!important;
    height: 23px!important;
    font-size: 15px!important;
}

:where(.papattes-template) .papattes-popover-group {
    display: block;
    color: var(--papattes-accent);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 6px;
}

:where(.papattes-template) .papattes-advantage-group summary::-webkit-details-marker {
    display: none;
}

:where(.papattes-template) .papattes-advantage-group[open] summary {
    border-color: var(--papattes-accent);
    color: var(--papattes-accent);
    background: var(--papattes-accent-soft);
}

:where(.papattes-template) .papattes-group-icon {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    background: var(--papattes-accent-soft);
    color: var(--papattes-accent);
    border-radius: 4px;
    font-size: 12px;
    flex: none;
}

:where(.papattes-template) .papattes-advantage-popover {
    position: absolute;
    z-index: 12;
    top: calc(100% + 5px);
    left: 0;
    width: min(290px,75vw);
    max-height: 250px;
    overflow: auto;
    padding: 11px;
    background: #fff;
    border: 2px solid var(--papattes-ink);
    box-shadow: 4px 4px 0 var(--papattes-ink);
    border-radius: 6px;
}

:where(.papattes-template) .papattes-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
}

:where(.papattes-template) .papattes-card-actions button {
    border-radius: 6px;
    padding: 8px 9px;
    font-size: 11px;
    font-weight: 800;
}

:where(.papattes-template) .papattes-card-preview {
    background: var(--papattes-accent);
    color: #fff;
    border: 1.5px solid var(--papattes-accent);
}

:where(.papattes-template) .papattes-card-compare {
    background: #fff;
    color: var(--papattes-ink);
    border: 1.5px solid var(--papattes-ink);
}

:where(.papattes-template) .papattes-card-compare.papattes-is-selected {
    background: var(--papattes-sticker);
}

:where(.papattes-template) .papattes-card-compare:disabled {
    opacity: .45;
    cursor: not-allowed;
}

:where(.papattes-template) .papattes-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12,20,61,.45);
    z-index: 99;
}

:where(.papattes-template) .papattes-preview-drawer {
    position: fixed;
    z-index: 100;
    right: 0;
    top: 0;
    height: 100dvh;
    width: min(570px,100%);
    background: #fff;
    box-shadow: -12px 0 40px rgba(18,31,88,.15);
    display: flex;
    flex-direction: column;
}

:where(.papattes-template) .papattes-drawer-head,
:where(.papattes-template) .papattes-compare-dialog-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 23px 26px;
    border-bottom: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-drawer-head h2,
:where(.papattes-template) .papattes-compare-dialog-head h2 {
    font-family: var(--papattes-title-font);
    margin: 4px 0 0;
    font-size: 27px;
    line-height: 1.15;
}

:where(.papattes-template) .papattes-drawer-head button,
:where(.papattes-template) .papattes-compare-dialog-head button {
    font-size: 27px;
    background: #fff;
    border: 1px solid var(--papattes-line);
    width: 35px;
    height: 35px;
    border-radius: 5px;
    line-height: 1;
}

:where(.papattes-template) .papattes-drawer-content {
    padding: 22px 26px;
    overflow: auto;
    flex: 1;
}

:where(.papattes-template) .papattes-drawer-content section {
    padding: 19px 0;
    border-top: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-drawer-content section h3 {
    font-family: var(--papattes-title-font);
    font-size: 18px;
    margin: 0 0 12px;
}

:where(.papattes-template) .papattes-drawer-content p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--papattes-muted);
    margin: 5px 0;
}

:where(.papattes-template) .papattes-drawer-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

:where(.papattes-template) .papattes-drawer-tags span {
    font-size: 11px;
    background: var(--papattes-accent-soft);
    color: var(--papattes-ink);
    padding: 5px 8px;
    border-radius: 5px;
}

:where(.papattes-template) .papattes-drawer-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 6px 0;
    font-size: 12px;
}

:where(.papattes-template) .papattes-drawer-line span {
    color: var(--papattes-muted);
    flex: 0 0 37%;
}

:where(.papattes-template) .papattes-drawer-line strong {
    text-align: right;
    white-space: pre-line;
}

:where(.papattes-template) .papattes-drawer-foot {
    padding: 15px 26px;
    border-top: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-drawer-foot .papattes-btn {
    width: 100%;
    justify-content: center;
}

:where(.papattes-template) .papattes-compare-bar {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--papattes-ink);
    color: #fff;
    box-shadow: 0 -8px 25px rgba(10,22,80,.2);
}

:where(.papattes-template) .papattes-compare-bar-inner {
    width: min(1370px,calc(100% - 40px));
    margin: auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 15px;
}

:where(.papattes-template) .papattes-compare-bar-inner>strong {
    white-space: nowrap;
}

:where(.papattes-template) .papattes-compare-chips {
    display: flex;
    gap: 7px;
    flex: 1;
    flex-wrap: wrap;
}

:where(.papattes-template) .papattes-compare-chips button {
    background: #fff;
    border: 0;
    border-radius: 5px;
    color: var(--papattes-ink);
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
}

:where(.papattes-template) .papattes-compare-bar .papattes-btn {
    background: var(--papattes-sticker);
    color: var(--papattes-ink);
    white-space: nowrap;
    padding: 9px 14px;
}

:where(.papattes-template) .papattes-compare-bar .papattes-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

:where(.papattes-template) .papattes-compare-clear {
    background: transparent;
    border: 0;
    color: #fff;
    text-decoration: underline;
    font-size: 11px;
}

:where(.papattes-template) .papattes-compare-overlay {
    z-index: 109;
}

:where(.papattes-template) .papattes-compare-dialog {
    position: fixed;
    z-index: 110;
    inset: 7vh 5vw;
    background: #fff;
    border: 2px solid var(--papattes-ink);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 8px 0 var(--papattes-ink);
}

:where(.papattes-template) .papattes-compare-content {
    overflow: auto;
    padding: 20px 26px;
}

:where(.papattes-template) .papattes-compare-content table {
    border-collapse: collapse;
    width: 100%;
    min-width: 650px;
    font-size: 12px;
}

:where(.papattes-template) .papattes-compare-content th,
:where(.papattes-template) .papattes-compare-content td {
    border-bottom: 1px solid var(--papattes-line);
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
}

:where(.papattes-template) .papattes-compare-content thead th {
    background: var(--papattes-accent-soft);
}

:where(.papattes-template) .papattes-compare-content thead th span {
    display: block;
    font-size: 10px;
    color: var(--papattes-muted);
}

:where(.papattes-template) .papattes-compare-content thead th strong {
    font-size: 16px;
}

:where(.papattes-template) .papattes-compare-content tbody th {
    width: 150px;
    color: var(--papattes-muted);
}

@media(max-width:760px) {
    :where(.papattes-template) .papattes-compare-bar-inner {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    :where(.papattes-template) .papattes-compare-chips {
        order: 3;
        flex: 0 0 100%;
    }

    :where(.papattes-template) .papattes-compare-dialog {
        inset: 3vh 10px;
    }

    :where(.papattes-template) .papattes-compare-content {
        padding: 12px;
    }

    :where(.papattes-template) .papattes-drawer-head,
    :where(.papattes-template) .papattes-drawer-content,
    :where(.papattes-template) .papattes-drawer-foot {
        padding-left: 18px;
        padding-right: 18px;
    }

}

/* 14. Variante horizontale : densité plus calme, avec une adaptation mobile dédiée. */

:where(.papattes-template) .papattes-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

:where(.papattes-template) .papattes-formula-card {
    display: block;
    padding: 0;
    border: 1px solid #dfe3f2;
    border-radius: 9px;
    box-shadow: none;
    background: #fff;
    transition: transform .18s,box-shadow .18s,border-color .18s;
}

:where(.papattes-template) .papattes-formula-card:hover {
    transform: translateY(-2px);
    border-color: #b8c2fb;
    box-shadow: 0 8px 20px rgba(24,38,100,.08);
}

.papattes-template[data-theme=pop] .papattes-formula-card:hover {
    box-shadow: 0 8px 20px rgba(24,38,100,.08);
}

:where(.papattes-template) .papattes-card-row {
    display: grid;
    grid-template-columns: minmax(175px,210px) minmax(0,1fr) 112px;
    align-items: center;
    gap: 0;
    min-height: 97px;
}

:where(.papattes-template) .papattes-card-main {
    padding: 13px 16px;
    min-width: 0;
}

:where(.papattes-template) .papattes-card-top {
    justify-content: flex-start;
    gap: 10px;
}

:where(.papattes-template) .papattes-insurer {
    font-size: 11px;
    gap: 6px;
    white-space: nowrap;
}

:where(.papattes-template) .papattes-insurer-mark {
    width: 23px;
    height: 23px;
    font-size: 12px;
    border: 1px solid var(--papattes-line);
    border-radius: 4px;
}

:where(.papattes-template) .papattes-insurer-mark img {
    padding: 2px;
}

:where(.papattes-template) .papattes-card-title-line {
    margin-top: 5px;
}

:where(.papattes-template) .papattes-card-title-line h2 {
    font-size: 19px;
    line-height: 1.1;
    margin: 0;
    min-height: 0;
}

:where(.papattes-template) .papattes-card-title-line>span {
    font-size: 14px;
}

:where(.papattes-template) .papattes-coverage {
    font-size: 10px;
    color: var(--papattes-muted);
    margin-top: 2px;
    line-height: 1.2;
}

:where(.papattes-template) .papattes-card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 12px 14px 12px 2px;
}

:where(.papattes-template) .papattes-card-actions button {
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 5px;
}

:where(.papattes-template) .papattes-card-preview {
    background: var(--papattes-accent);
    border-color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-card-compare {
    border-color: var(--papattes-line);
    color: var(--papattes-accent);
}

:where(.papattes-template) .papattes-card-advantages {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 6px 15px;
    border-top: 1px solid #eef0f7;
    background: #fbfcff;
    border-radius: 0 0 9px 9px;
}

:where(.papattes-template) .papattes-card-caption {
    font-size: 10px;
    white-space: nowrap;
}

:where(.papattes-template) .papattes-card-caption small {
    display: none;
}

:where(.papattes-template) .papattes-advantage-groups {
    margin: 0;
    gap: 4px;
}

:where(.papattes-template) .papattes-advantage-group summary {
    width: 25px;
    height: 25px;
    padding: 2px;
    border: 1px solid #e4e8f5;
    background: #fff;
    border-radius: 5px;
}

:where(.papattes-template) .papattes-group-icon {
    width: 19px!important;
    height: 19px!important;
    font-size: 12px!important;
}

:where(.papattes-template) .papattes-advantage-group:nth-last-child(-n+3) .papattes-advantage-popover {
    left: auto;
    right: 0;
}

@media(max-width:1180px) {
    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(170px,190px) minmax(0,1fr) 100px;
    }

    :where(.papattes-template) .papattes-card-actions {
        padding-right: 10px;
    }

}

@media(max-width:760px) {
    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(150px,190px) minmax(0,1fr) 100px;
    }

    :where(.papattes-template) .papattes-card-main {
        padding: 12px;
    }

    :where(.papattes-template) .papattes-card-advantages {
        padding: 6px 12px;
    }

}

@media(max-width:620px) {
    :where(.papattes-template) .papattes-formula-card:hover {
        transform: none;
    }

    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(0,1fr) 95px;
        gap: 0;
    }

    :where(.papattes-template) .papattes-card-main {
        grid-column: 1;
        grid-row: 1;
        padding: 11px 12px 6px;
    }

    :where(.papattes-template) .papattes-card-actions {
        grid-column: 2;
        grid-row: 1;
        padding: 10px 10px 4px 0;
    }

    :where(.papattes-template) .papattes-card-advantages {
        display: block;
    }

    :where(.papattes-template) .papattes-card-caption {
        margin-bottom: 5px;
    }

    :where(.papattes-template) .papattes-advantage-popover,
    :where(.papattes-template) .papattes-advantage-group:nth-last-child(-n+3) .papattes-advantage-popover {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        top: auto;
        width: auto;
        max-height: 45vh;
        z-index: 130;
    }

}

/* 15. Variante sans cadre : les lignes sont séparées seulement par un trait discret. */

:where(.papattes-template) .papattes-card-grid {
    gap: 0;
    border-top: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-formula-card {
    border: 0;
    border-bottom: 1px solid var(--papattes-line);
    border-radius: 0;
    box-shadow: none;
}

:where(.papattes-template) .papattes-formula-card:hover,
.papattes-template[data-theme=pop] .papattes-formula-card:hover {
    border-color: var(--papattes-line);
    background: #f9faff;
    box-shadow: none;
    transform: none;
}

:where(.papattes-template) .papattes-card-advantages {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-top: 0;
    padding-bottom: 9px;
}

:where(.papattes-template) .papattes-animal-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--papattes-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
}

:where(.papattes-template) .papattes-animal-label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--papattes-accent);
}

@media(max-width:620px) {
    :where(.papattes-template) .papattes-card-grid {
        border-top: 1px solid var(--papattes-line);
    }

    :where(.papattes-template) .papattes-card-advantages {
        padding-bottom: 10px;
    }

}

/* 16. Détails de chaque chiffre, avec le même déclencheur discret. */

.papattes-template[data-theme=pop] {
    --papattes-sticker: #fff;
}

.papattes-template[data-theme=pop] .papattes-section-top h1 em {
    text-decoration: none;
}

:where(.papattes-template) .papattes-card-compare.papattes-is-selected {
    background: var(--papattes-accent-soft);
}

:where(.papattes-template) .papattes-card-title-line {
    display: block;
    margin-top: 5px;
}

:where(.papattes-template) .papattes-formula-label {
    display: block;
    color: var(--papattes-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}

/* 17. La ligne basse : prévention à gauche, avantages à droite. */

:where(.papattes-template) .papattes-card-row {
    grid-template-columns: minmax(175px,205px) minmax(0,1fr) 112px;
}

:where(.papattes-template) .papattes-coverage b {
    color: var(--papattes-ink);
    font-weight: 700;
}

@media(max-width:1180px) {
    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(165px,185px) minmax(0,1fr) 100px;
    }

}

@media(max-width:760px) {
    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(155px,180px) minmax(0,1fr) 100px;
    }

}

@media(max-width:620px) {
    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(0,1fr) 95px;
    }

    :where(.papattes-template) .papattes-card-main {
        grid-column: 1;
        grid-row: 1;
    }

    :where(.papattes-template) .papattes-card-actions {
        grid-column: 2;
        grid-row: 1;
    }

}

/* 18. Variantes typographiques et chromatiques : la mise en page reste commune. */

/* 19. Même palette bleue pour les quatre essais de polices. */

.papattes-template[data-font=jakarta] {
    --papattes-title-font: 'Plus Jakarta Sans',Arial,sans-serif;
    --papattes-body-font: 'Nunito Sans',Arial,sans-serif;
}

/* 20. Lisibilité des filtres, cartes et panneaux, y compris sur téléphone. */

.papattes-template {
    font-size: 16px;
}

:where(.papattes-template) .papattes-main-nav {
    font-size: 14px;
}

:where(.papattes-template) .papattes-nav-note,
:where(.papattes-template) .papattes-eyebrow {
    font-size: 12px;
}

:where(.papattes-template) .papattes-section-top p {
    font-size: 15px;
}

:where(.papattes-template) .papattes-filter-heading strong {
    font-size: 18px;
}

:where(.papattes-template) .papattes-filter-heading button,
:where(.papattes-template) .papattes-filter-block label,
:where(.papattes-template) .papattes-filter-label {
    font-size: 13px;
}

:where(.papattes-template) .papattes-filter-block select,
:where(.papattes-template) .papattes-results-toolbar select {
    font-size: 14px;
}

:where(.papattes-template) .papattes-segment button,
:where(.papattes-template) .papattes-range-number span,
:where(.papattes-template) .papattes-filter-aside p {
    font-size: 12px;
}

:where(.papattes-template) .papattes-results-toolbar strong {
    font-size: 24px;
}

:where(.papattes-template) .papattes-results-toolbar span,
:where(.papattes-template) .papattes-results-toolbar label {
    font-size: 13px;
}

:where(.papattes-template) .papattes-insurer {
    font-size: 12px;
}

:where(.papattes-template) .papattes-animal-label,
:where(.papattes-template) .papattes-formula-label {
    font-size: 11px;
}

:where(.papattes-template) .papattes-card-title-line h2 {
    font-size: 22px;
    line-height: 1.2;
}

:where(.papattes-template) .papattes-coverage {
    font-size: 12px;
    line-height: 1.35;
}

:where(.papattes-template) .papattes-card-actions button {
    font-size: 12px;
    padding: 8px 7px;
}

:where(.papattes-template) .papattes-drawer-content p,
:where(.papattes-template) .papattes-drawer-line {
    font-size: 14px;
}

:where(.papattes-template) .papattes-drawer-tags span,
:where(.papattes-template) .papattes-compare-content table {
    font-size: 12px;
}

:where(.papattes-template) .papattes-footer-inner {
    font-size: 13px;
}

@media(max-width:760px) {
    :where(.papattes-template) .papattes-section-top p {
        font-size: 15px;
    }

}

/* 21. Variante liste : l'en-tête de la formule reste visible, les données s'ouvrent à la demande. */

:where(.papattes-template) .papattes-card-row {
    grid-template-columns: minmax(0,1fr) 112px;
    min-height: 0;
}

:where(.papattes-template) .papattes-card-main {
    padding: 15px 16px 10px;
}

:where(.papattes-template) .papattes-card-actions {
    grid-column: 2;
    padding: 13px 15px 10px 0;
}

:where(.papattes-template) .papattes-facts-accordion {
    margin: 0 15px 10px;
    border-top: 1px solid var(--papattes-line);
}

:where(.papattes-template) .papattes-facts-accordion>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 39px;
    padding: 7px 2px;
    color: var(--papattes-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

:where(.papattes-template) .papattes-facts-accordion>summary::-webkit-details-marker {
    display: none;
}

:where(.papattes-template) .papattes-facts-accordion>summary:hover {
    color: var(--papattes-ink);
}

:where(.papattes-template) .papattes-facts-accordion>summary:focus-visible,
:where(.papattes-template) .papattes-fact-expand:focus-visible {
    outline: 2px solid var(--papattes-accent);
    outline-offset: 2px;
}

:where(.papattes-template) .papattes-accordion-chevron {
    font-size: 19px;
    line-height: 1;
    transition: transform .2s;
}

:where(.papattes-template) .papattes-facts-accordion[open] .papattes-accordion-chevron {
    transform: rotate(180deg);
}

:where(.papattes-template) .papattes-facts-list {
    padding-bottom: 3px;
}

:where(.papattes-template) .papattes-fact-row {
    display: grid;
    grid-template-columns: minmax(130px,34%) minmax(0,1fr) 24px;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 7px 2px;
    border-top: 1px solid #eef0f7;
}

:where(.papattes-template) .papattes-fact-row-label {
    color: var(--papattes-muted);
    font-size: 13px;
    line-height: 1.3;
}

:where(.papattes-template) .papattes-fact-row-value {
    min-width: 0;
    color: var(--papattes-ink);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

:where(.papattes-template) .papattes-fact-expand {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #c6cce3;
    border-radius: 50%;
    background: #fff;
    color: var(--papattes-accent);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

:where(.papattes-template) .papattes-fact-expand:hover,
:where(.papattes-template) .papattes-fact-expand[aria-expanded=true] {
    border-color: var(--papattes-accent);
    background: var(--papattes-accent-soft);
}

:where(.papattes-template) .papattes-fact-detail {
    margin: 0 0 6px;
    padding: 10px 12px 12px;
    background: #f5f6fb;
    border-radius: 5px;
    color: var(--papattes-muted);
    font-size: 13px;
    line-height: 1.5;
}

:where(.papattes-template) .papattes-fact-detail[hidden] {
    display: none;
}

:where(.papattes-template) .papattes-fact-detail p {
    margin: 3px 0;
}

@media(max-width:760px) {
    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(0,1fr) 100px;
    }

    :where(.papattes-template) .papattes-fact-row {
        grid-template-columns: minmax(120px,34%) minmax(0,1fr) 24px;
    }

}

@media(max-width:620px) {
    :where(.papattes-template) .papattes-card-row {
        grid-template-columns: minmax(0,1fr) 95px;
    }

    :where(.papattes-template) .papattes-card-main {
        grid-column: 1;
        grid-row: 1;
        padding: 12px 12px 9px;
    }

    :where(.papattes-template) .papattes-card-actions {
        grid-column: 2;
        grid-row: 1;
        padding: 11px 10px 8px 0;
    }

    :where(.papattes-template) .papattes-facts-accordion {
        margin: 0 12px 8px;
    }

    :where(.papattes-template) .papattes-fact-row {
        grid-template-columns: minmax(100px,37%) minmax(0,1fr) 22px;
        gap: 8px;
        padding: 8px 0;
    }

    :where(.papattes-template) .papattes-fact-row-label {
        font-size: 12px;
    }

    :where(.papattes-template) .papattes-fact-row-value {
        font-size: 13px;
    }

    :where(.papattes-template) .papattes-fact-detail {
        font-size: 12px;
    }

}

/* 22. Le bandeau d'avantages reste visible quand les autres informations sont repliées. */

:where(.papattes-template) .papattes-formula-card>.papattes-card-advantages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 15px;
    padding: 8px 0 13px;
    border: 0;
    border-top: 1px solid #eef0f7;
    background: transparent;
}

:where(.papattes-template) .papattes-formula-card>.papattes-card-advantages .papattes-card-caption {
    margin: 0;
    color: var(--papattes-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: normal;
}

:where(.papattes-template) .papattes-formula-card>.papattes-card-advantages .papattes-advantage-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

:where(.papattes-template) .papattes-formula-card>.papattes-card-advantages .papattes-advantage-trigger {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 2px;
    border: 1px solid #e4e8f5;
    border-radius: 5px;
    background: #fff;
    color: var(--papattes-accent);
    cursor: pointer;
}

:where(.papattes-template) .papattes-formula-card>.papattes-card-advantages .papattes-advantage-trigger:hover,
:where(.papattes-template) .papattes-formula-card>.papattes-card-advantages .papattes-advantage-trigger[aria-expanded=true] {
    border-color: var(--papattes-accent);
    background: var(--papattes-accent-soft);
}

:where(.papattes-template) .papattes-formula-card>.papattes-card-advantages .papattes-advantage-trigger:focus-visible {
    outline: 2px solid var(--papattes-accent);
    outline-offset: 2px;
}

@media(max-width:620px) {
    :where(.papattes-template) .papattes-formula-card>.papattes-card-advantages {
        margin: 0 12px;
        padding: 8px 0 12px;
    }

}

/* 23. Catalogue épuré : la police et les panneaux sont définis dans la section d’intégration. */

.papattes-template {
    background: var(--papattes-bg);
}

:where(.papattes-template) .papattes-catalogue-section {
    padding-top: 42px;
}

:where(.papattes-template) .papattes-section-top h1 {
    margin-top: 0;
}

@media(max-width:760px) {
    :where(.papattes-template) .papattes-catalogue-section {
        padding-top: 30px;
    }

}

/* Intégration WordPress et composants accessibles du modèle V1. */
.papattes-template {
    --papattes-panel-bg: #fafbfc;
    --papattes-panel-line: #edf0f4;
    --papattes-line: #edf0f4;
    --papattes-panel-ink: #111827;
    --papattes-panel-muted: #4b5563;
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    text-align: left;
}

.papattes-template[data-font=inter] {
    --papattes-body-font: 'Inter', Arial, sans-serif;
    --papattes-title-font: 'Inter', Arial, sans-serif;
}

.papattes-template .papattes-formula-card,
.papattes-template[data-theme=pop] .papattes-formula-card:hover {
    background: #fff;
    box-shadow: none;
    transform: none;
}

.papattes-template :where(h1, h2, h3, p, ul, ol, dl, figure) {
    font-family: inherit;
}

.papattes-template :where(button, input, select) {
    letter-spacing: normal;
    text-transform: none;
}

/* Aucun cadre au clic ; repère typographique réservé au clavier. */
.papattes-template :focus {
    outline: none !important;
    box-shadow: none !important;
}

.papattes-template :is(a, button, summary):focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.papattes-template :is(input, select):focus-visible {
    background-color: #eef2ff;
}

.papattes-template .papattes-catalogue-intro {
    max-width: 335px;
}

/* Introduction de la catégorie : contenu du champ Intro_Liste, sous le H1. */
.papattes-template .papattes-section-top { display: block; }
.papattes-template .papattes-category-intro {
    width: 100%;
    max-width: none;
    margin-top: 14px;
    color: #64748b;
    font-size: .875rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.papattes-template .papattes-category-intro :where(p, ul, ol) {
    max-width: none;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.papattes-template .papattes-category-intro > * + * { margin-top: 8px; }

.papattes-template .papattes-card-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.75rem;
    line-height: 1.5;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.papattes-template .papattes-button-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex: 0 0 auto;
}

.papattes-template .papattes-advantage-trigger {
    list-style: none;
}

.papattes-template .papattes-advantage-trigger::-webkit-details-marker {
    display: none;
}

.papattes-template .papattes-details {
    margin: 6px 0;
}

.papattes-template .papattes-details__label {
    margin: 6px 0 2px;
    color: var(--papattes-panel-ink);
    font-weight: 700;
}

.papattes-template .papattes-details__value {
    margin: 0 0 6px;
    color: var(--papattes-panel-muted);
    overflow-wrap: anywhere;
}

.papattes-template .papattes-details__list {
    margin: 4px 0;
    padding-left: 18px;
}

.papattes-template .papattes-category-content {
    margin-top: 48px;
    max-width: 900px;
    color: var(--papattes-muted);
}

.papattes-template .papattes-preview-note,
.papattes-template .papattes-no-script {
    padding: 12px 16px;
    background: var(--papattes-accent-soft);
    color: var(--papattes-ink);
    border-radius: var(--papattes-radius);
    font-size: 13px;
}

.papattes-template .papattes-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Cartes catégorie — identité, logos lisibles et détails intégrés à la liste. */
.papattes-template .papattes-card-top {
    gap: 12px;
}

.papattes-template .papattes-insurer-mark {
    flex: 0 0 80px;
    width: 80px;
    height: 48px;
    border: 1px solid var(--papattes-line);
    border-radius: 0.375rem;
    background: var(--papattes-paper);
    font-size: 24px;
}

.papattes-template .papattes-insurer-mark img {
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.papattes-template .papattes-animal-label::before {
    content: none;
    display: none;
}

.papattes-template .papattes-card-title-line {
    margin-top: 10px;
}

.papattes-template .papattes-coverage {
    margin-top: 10px;
}

.papattes-template .papattes-offer-type {
    display: block;
    margin-top: 4px;
    color: var(--papattes-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.papattes-template .papattes-offer-type b { color: var(--papattes-ink); }

.papattes-template .papattes-card-title-line h2 {
    font-size: 1.125rem;
    overflow-wrap: anywhere;
}

.papattes-template .papattes-facts-accordion {
    margin-top: 5px;
    margin-bottom: 5px;
}

.papattes-template .papattes-facts-list {
    padding-bottom: 0;
}

.papattes-template .papattes-facts-accordion[open] .papattes-facts-list {
    margin-bottom: 12px;
    padding: 8px 16px;
    border: 0;
    border-radius: 1rem;
    background: var(--papattes-panel-bg);
}

.papattes-template .papattes-facts-list .papattes-fact-row {
    border-color: var(--papattes-panel-line);
}

.papattes-template .papattes-fact-row-toggle { cursor: pointer; }

.papattes-template .papattes-facts-list .papattes-fact-row:first-child {
    border-top: 0;
}

.papattes-template .papattes-fact-row-label {
    color: var(--papattes-panel-muted);
}

.papattes-template .papattes-fact-row-value {
    color: var(--papattes-panel-ink);
    font-weight: 600;
}

.papattes-template .papattes-fact-detail {
    padding: 12px 14px;
    border: 0;
    border-radius: 0.875rem;
    background: var(--papattes-panel-bg);
    color: var(--papattes-panel-muted);
}

.papattes-template .papattes-facts-list .papattes-fact-detail {
    padding: 8px 2px 12px;
    background: transparent;
}

.papattes-template .papattes-fact-detail p {
    color: var(--papattes-panel-muted);
}

.papattes-template .papattes-metric-reveal-title {
    color: var(--papattes-panel-ink);
    font-weight: 600;
}

.papattes-template .papattes-facts-accordion > summary {
    min-height: 36px;
    padding-top: 14px;
    padding-bottom: 10px;
    color: #334155;
    gap: 12px;
}

.papattes-template .papattes-facts-accordion > summary:hover {
    color: #334155;
}

.papattes-template .papattes-accordion-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
    color: #64748b;
    transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
}

.papattes-template .papattes-facts-accordion[data-papattes-expanded=false] .papattes-accordion-chevron {
    transform: rotate(0deg);
}

.papattes-template .papattes-accordion-chevron svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Prévention : un acte par ligne, avec ses forfaits et conditions associés. */
.papattes-template .papattes-detail-row {
    display: grid;
    grid-template-columns: minmax(7rem, 30%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
}

.papattes-template .papattes-detail-row:first-child { padding-top: 0; }
.papattes-template .papattes-detail-row:last-child { padding-bottom: 0; }
.papattes-template .papattes-detail-row + .papattes-detail-row {
    border-top: 1px solid var(--papattes-panel-line);
}

.papattes-template .papattes-detail-row__label,
.papattes-template .papattes-prevention-forfait__title {
    color: var(--papattes-panel-ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.papattes-template .papattes-prevention-forfait__title { display: block; }
.papattes-template .papattes-detail-row__content {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--papattes-panel-muted);
}
.papattes-template .papattes-detail-row__content p { margin: 0; }
.papattes-template .papattes-detail-row__content .papattes-detail-row__precision { margin-top: 6px; }
.papattes-template .papattes-prevention-forfait + .papattes-prevention-forfait {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--papattes-panel-line);
}

.papattes-template .papattes-fact-value-line {
    display: block;
}

.papattes-template .papattes-advantage-detail {
    position: static;
    width: auto;
    margin: 0 15px 12px;
    border: 0;
    box-shadow: none;
}

.papattes-template .papattes-advantage-item__title {
    display: block;
    color: var(--papattes-panel-ink);
    font-weight: 600;
}

.papattes-template .papattes-advantage-item__precision {
    margin: 4px 0 0;
    color: var(--papattes-panel-muted);
}

.papattes-template .papattes-advantage-item + .papattes-advantage-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--papattes-panel-line);
}

/* Carences : les précisions restent associées à leur délai et à leurs soins. */
.papattes-template .papattes-waiting-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    align-items: start;
}

.papattes-template .papattes-waiting-row:first-child {
    padding-top: 0;
}

.papattes-template .papattes-waiting-row + .papattes-waiting-row {
    border-top: 1px solid var(--papattes-panel-line);
}

.papattes-template .papattes-waiting-row:last-child {
    padding-bottom: 0;
}

.papattes-template .papattes-waiting-row__delay {
    color: var(--papattes-panel-ink);
    font-size: inherit;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.papattes-template .papattes-waiting-row__content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.papattes-template .papattes-waiting-row__scope {
    margin: 0;
    color: var(--papattes-panel-ink);
}

.papattes-template .papattes-waiting-row__precision {
    margin: 6px 0 0;
    color: var(--papattes-panel-muted);
}

/* Pastilles de groupes : mêmes contrôles accessibles et mêmes panneaux. */
.papattes-template .papattes-formula-card > .papattes-card-advantages {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 14px;
    border-color: var(--papattes-panel-line);
}

.papattes-template .papattes-card-advantages .papattes-advantage-groups {
    gap: 8px;
}

.papattes-template .papattes-card-advantages .papattes-pill.papattes-advantage-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 30px;
    max-width: 100%;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--papattes-panel-bg);
    color: #334155;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}

.papattes-template .papattes-card-advantages .papattes-pill.papattes-advantage-trigger:hover {
    background: var(--papattes-panel-bg);
}

.papattes-template .papattes-card-advantages .papattes-pill.papattes-advantage-trigger[aria-expanded=true] {
    background: var(--papattes-panel-bg);
    color: #3730a3;
    font-weight: 600;
}

.papattes-template .papattes-compare-content td {
    white-space: pre-line;
}

/* Barre de filtres commune aux écrans ; les champs restent visibles sans JavaScript. */
.papattes-template .papattes-filter-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 16px;
}
.papattes-template .papattes-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: .75rem;
    cursor: pointer;
}
.papattes-template .papattes-filter-reset:hover { color: #334155; background: var(--papattes-panel-bg); }
.papattes-template .papattes-filter-reset svg { width: 15px; height: 15px; flex: 0 0 15px; }
.papattes-template .papattes-filter-reset-top {
    justify-content: flex-start;
    margin: 0 0 12px;
    min-height: 32px;
}
.papattes-template .papattes-age-limits-values {
    grid-column: 2 / -1;
    min-width: 0;
    color: var(--papattes-panel-muted);
    font-size: .75rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.papattes-template .papattes-age-limits-values > span { display: block; }
.papattes-template .papattes-age-limits-values b { color: var(--papattes-panel-ink); font-weight: 600; }
.papattes-template .papattes-match-count {
    margin: 0 0 14px;
    font-size: .8125rem;
    color: #64748b;
}
.papattes-template .papattes-match-count[data-papattes-filtered=false] { display: none; }
.papattes-template .papattes-matches-active {
    color: #15803d;
    font-weight: 600;
}
.papattes-template .papattes-matches-active::before {
    content: '✓';
    margin-right: 6px;
    font-weight: 700;
}
.papattes-template .papattes-results { overflow-anchor: none; }
.papattes-template .papattes-results-toolbar {
    justify-content: flex-end;
    margin-bottom: 16px;
}
.papattes-template .papattes-results-toolbar .papattes-sort-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--papattes-panel-bg);
    color: #64748b;
}
.papattes-template .papattes-sort-control > span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: .75rem;
    white-space: nowrap;
}
.papattes-template .papattes-sort-control .papattes-sort-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.papattes-template .papattes-sort-control .papattes-sort-chevron {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    pointer-events: none;
}
.papattes-template .papattes-results-toolbar .papattes-sort-control select {
    appearance: none;
    -webkit-appearance: none;
    width: 180px;
    min-width: 0;
    min-height: 32px;
    padding: 4px 22px 4px 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
}

.papattes-template .papattes-filter-bar,
.papattes-template .papattes-filter-apply {
    display: none;
}

@media (max-width: 760px) {
    .papattes-template .papattes-filter-reset-top { display: flex; margin-left: auto; justify-content: flex-end; }
    .papattes-template .papattes-filter-body .papattes-match-count { display: none; }
    .papattes-template .papattes-results-toolbar .papattes-sort-control { width: 100%; }
    .papattes-template .papattes-results-toolbar .papattes-sort-control select { flex: 1; width: 0; }
}

/* Un ancêtre avec overflow:hidden empêcherait le suivi du défilement. */
.papattes-template.papattes-site-frame { overflow: visible; }
.papattes-template .papattes-catalogue-layout { display: block; }
.papattes-template .papattes-filter-body .papattes-match-count { display: none; }

.papattes-template[data-papattes-enhanced=true] .papattes-filter-panel {
    position: sticky;
    top: calc(12px + var(--papattes-admin-offset, var(--wp-admin--admin-bar--height, 0px)) + var(--papattes-header-offset, 0px));
    transition: top 260ms cubic-bezier(.22, 1, .36, 1);
    z-index: 30;
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid rgba(226, 232, 240, .7);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.papattes-template[data-papattes-enhanced=true] .papattes-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: .875rem;
    text-align: left;
    cursor: pointer;
}

.papattes-template .papattes-filter-bar-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.papattes-template .papattes-filter-bar-count { margin-left: auto; color: #64748b; font-size: .75rem; }
.papattes-template .papattes-filter-bar-count.papattes-matches-active { color: #15803d; font-size: .6875rem; }
.papattes-template .papattes-filter-bar-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
}
.papattes-template .papattes-filter-bar[aria-expanded=true] .papattes-filter-bar-chevron { transform: rotate(180deg); }
.papattes-template[data-papattes-enhanced=true] .papattes-filter-body {
    padding: 8px 18px 18px;
    max-height: calc(100vh - 160px - var(--papattes-admin-offset, var(--wp-admin--admin-bar--height, 0px)) - var(--papattes-header-offset, 0px));
    max-height: calc(100dvh - 160px - var(--papattes-admin-offset, var(--wp-admin--admin-bar--height, 0px)) - var(--papattes-header-offset, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.papattes-template[data-papattes-enhanced=true] .papattes-filter-apply {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--papattes-accent);
    color: white;
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
}


@media (max-width: 760px) {
    .papattes-template .papattes-nav-inner {
        position: relative;
    }

    .papattes-template .papattes-main-nav.papattes-is-open {
        display: flex;
        position: absolute;
        z-index: 20;
        top: 68px;
        left: 0;
        right: 0;
        height: auto;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--papattes-paper);
        border: 1px solid var(--papattes-line);
    }

    .papattes-template .papattes-catalogue-intro {
        max-width: none;
    }

    .papattes-template .papattes-insurer-mark {
        flex-basis: 72px;
        width: 72px;
        height: 44px;
    }
}

@media (max-width: 620px) {
    .papattes-template .papattes-card-advantages .papattes-pill.papattes-advantage-trigger {
        font-size: 0.6875rem;
        min-height: 28px;
        padding: 5px 10px;
    }

    .papattes-template .papattes-detail-row {
        grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
        gap: 10px;
    }

    .papattes-template .papattes-waiting-row {
        grid-template-columns: 4.25rem minmax(0, 1fr);
        gap: 10px;
    }

    .papattes-template .papattes-card-actions button {
        padding-right: 6px;
        padding-left: 6px;
        gap: 4px;
    }

    .papattes-template .papattes-advantage-detail {
        margin-right: 12px;
        margin-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .papattes-template *,
    .papattes-template *::before,
    .papattes-template *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Les réglages occupent une grille dans le panneau déplié sur ordinateur. */
.papattes-template .papattes-method-symbol { display: none; }
.papattes-template .papattes-method-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 1100px) {
    .papattes-template .papattes-method-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .papattes-template .papattes-method-inner a { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .papattes-template .papattes-method-inner { grid-template-columns: minmax(0, 1fr); }
    .papattes-template .papattes-method-inner p,
    .papattes-template .papattes-method-inner a { grid-column: 1; }
}

@media (min-width: 761px) {
    .papattes-template[data-papattes-enhanced=true] .papattes-filter-body {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 24px;
    }
    .papattes-template .papattes-filter-reset-top,
    .papattes-template .papattes-filter-aside,
    .papattes-template .papattes-filter-actions { grid-column: 1 / -1; }
    .papattes-template .papattes-filter-reset-top { justify-self: end; margin: 0 0 4px; }
    .papattes-template .papattes-filter-block { padding: 12px 0; margin: 0; border: 0; min-width: 0; }
    .papattes-template .papattes-filter-block select { width: 100%; max-width: none; min-width: 0; }
    .papattes-template .papattes-filter-actions { flex-direction: row; justify-content: flex-end; align-items: center; }
    .papattes-template[data-papattes-enhanced=true] .papattes-filter-apply { width: auto; min-width: 220px; }
    .papattes-template .papattes-filter-actions .papattes-filter-reset { padding-left: 14px; padding-right: 14px; }
    .papattes-template .papattes-filter-bar-count.papattes-matches-active { font-size: .75rem; }
}


/* En-tête partagé : styles indépendants du conteneur des pages catégorie. */
.papattes-header {
    --papattes-header-ink: #16235b;
    --papattes-header-accent: #4257f4;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #edf0f4;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .045);
    background: #fff;
    color: var(--papattes-header-ink);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.papattes-header *, .papattes-header *::before, .papattes-header *::after { box-sizing: border-box; }
.papattes-header-placeholder { width: 100%; flex: 0 0 auto; }
.papattes-header[data-papattes-sticky=true] {
    position: fixed;
    top: var(--papattes-admin-offset, 0px);
    left: 0;
    right: 0;
    z-index: 50;
    transform: translateY(0);
    transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}
.papattes-header[data-papattes-hidden=true] {
    transform: translateY(-100%);
    box-shadow: none;
    pointer-events: none;
}
.papattes-header [hidden] { display: none !important; }
.papattes-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: calc(100% - 80px);
    max-width: 1360px;
    min-height: 92px;
    margin: 0 auto;
}
.papattes-header .papattes-header-brand { display: inline-flex; flex: 0 0 auto; align-items: center; color: inherit; text-decoration: none; }
.papattes-header .papattes-header-logo { display: block; width: 130px; max-width: 100%; height: auto; }
.papattes-header-navigation { display: flex; align-items: center; gap: 12px; }
.papattes-header .papattes-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--papattes-header-ink);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}
.papattes-header .papattes-header-link:hover { background: #f5f7fa; color: var(--papattes-header-accent); }
/* Compatibilité avec le HTML initial : Comparateur adopte le style de Contact. */
.papattes-header .papattes-header-link-primary { background: transparent; color: var(--papattes-header-ink); font-weight: 500; }
.papattes-header .papattes-header-link-primary:hover { background: #f5f7fa; color: var(--papattes-header-accent); }
.papattes-header .papattes-header-link-primary svg { display: none; }
.papattes-header-link svg { width: 17px; height: 17px; flex: 0 0 17px; }
.papattes-header .papattes-header-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 50%;
    background: #fafbfc;
    color: var(--papattes-header-ink);
    cursor: pointer;
}
.papattes-header-menu svg { width: 22px; height: 22px; }
.papattes-header .papattes-header-menu-close,
.papattes-header .papattes-header-menu[aria-expanded=true] .papattes-header-menu-open { display: none; }
.papattes-header .papattes-header-menu[aria-expanded=true] .papattes-header-menu-close { display: block; }
.papattes-header :is(a, button):focus { outline: none; box-shadow: none; }
.papattes-header a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.papattes-header button:focus-visible { background: #eef2ff; }
.papattes-header .papattes-header-drawer:not([open]) { display: none !important; }
.papattes-header .papattes-header-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 280px);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 22px;
    border: 0;
    border-radius: 24px 0 0 24px;
    background: #fff;
    color: var(--papattes-header-ink);
    box-shadow: -12px 0 40px rgba(15, 23, 42, .08);
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family: inherit;
}
.papattes-header-drawer::backdrop {
    background: rgba(15, 23, 42, .24);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: background-color 320ms ease, backdrop-filter 320ms ease;
}
.papattes-header-drawer[data-papattes-closing=true]::backdrop { background: transparent; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
.papattes-header-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.papattes-header-drawer-title { font-size: 1rem; font-weight: 600; }
.papattes-header .papattes-header-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #edf0f4;
    border-radius: 50%;
    background: #fafbfc;
    color: var(--papattes-header-ink);
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.papattes-header .papattes-header-drawer .papattes-header-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; padding: 0; background: transparent; }
.papattes-header .papattes-header-drawer .papattes-header-link { justify-content: flex-start; min-height: 52px; padding: 14px; border-radius: 14px; font-size: .9375rem; }
@media (max-width: 760px) {
    .papattes-header-inner { width: calc(100% - 32px); min-height: 68px; flex-wrap: wrap; gap: 0 16px; padding: 7px 0; }
    .papattes-header .papattes-header-logo { width: 100px; }
    .papattes-header-navigation { flex: 1 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 10px 0 6px; padding: 10px; border-radius: 20px; background: #fafbfc; }
    .papattes-header .papattes-header-link { justify-content: space-between; padding: 11px 14px; }
    .papattes-header .papattes-header-menu { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .papattes-header { transition: none !important; }
    .papattes-header * { transition: none !important; }
}


/* Pied de page partagé : six liens, sans dépendance au catalogue ni à JavaScript. */
.papattes-footer {
    --papattes-footer-ink: #16235b;
    --papattes-footer-muted: #64748b;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border-top: 1px solid #edf0f4;
    background: #fafbfc;
    color: var(--papattes-footer-ink);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
.papattes-footer *, .papattes-footer *::before, .papattes-footer *::after { box-sizing: border-box; }
.papattes-footer-inner { width: calc(100% - 80px); max-width: 1360px; margin: 0 auto; }
.papattes-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 0 30px; }
.papattes-footer .papattes-footer-logo { display: block; width: 130px; max-width: 100%; height: auto; }
.papattes-footer .papattes-footer-caption { margin: 10px 0 0; color: var(--papattes-footer-muted); font-size: .75rem; line-height: 1.6; }
.papattes-footer-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.papattes-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    color: var(--papattes-footer-ink);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    transition: color 160ms ease;
}
.papattes-footer a:hover { color: #4257f4; }
.papattes-footer a:focus { outline: none; box-shadow: none; }
.papattes-footer a:focus-visible { color: #4257f4; text-decoration: underline; text-underline-offset: 4px; }
.papattes-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px 0 20px; border-top: 1px solid #e9edf2; }
.papattes-footer .papattes-footer-copyright { flex: 0 0 auto; margin: 0; color: var(--papattes-footer-muted); font-size: .75rem; }
.papattes-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.papattes-footer .papattes-footer-legal a { min-height: 32px; color: var(--papattes-footer-muted); font-size: .75rem; font-weight: 400; }
.papattes-footer .papattes-footer-legal a:hover,
.papattes-footer .papattes-footer-legal a:focus-visible { color: #4257f4; }
@media (max-width: 760px) {
    .papattes-footer-inner { width: calc(100% - 32px); }
    .papattes-footer-main { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 0 20px; }
    .papattes-footer .papattes-footer-logo { width: 110px; }
    .papattes-footer-navigation { width: 100%; justify-content: space-between; gap: 8px 20px; }
    .papattes-footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 0 22px; }
    .papattes-footer-legal { flex-direction: column; align-items: flex-start; gap: 2px; }
    .papattes-footer .papattes-footer-copyright { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .papattes-footer a { transition: none; }
}


/* Fil d’Ariane partagé : utilisable dans chaque modèle de page. */
.papattes-breadcrumb {
    padding-top: 18px;
    color: #64748b;
    font-family: 'Inter', Arial, sans-serif;
    font-size: .75rem;
    line-height: 1.6;
}
.papattes-breadcrumb .papattes-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.papattes-breadcrumb__item { display: inline-flex; align-items: center; min-width: 0; gap: 10px; }
.papattes-breadcrumb .papattes-breadcrumb__link { color: #64748b; text-decoration: none; }
.papattes-breadcrumb .papattes-breadcrumb__link:hover { color: #4257f4; }
.papattes-breadcrumb .papattes-breadcrumb__link:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; }
.papattes-breadcrumb__separator { color: #94a3b8; user-select: none; }
.papattes-breadcrumb .papattes-breadcrumb__current { color: #475569; overflow-wrap: anywhere; }
.papattes-template .papattes-breadcrumb + .papattes-catalogue-section { padding-top: 24px; }
@media (max-width: 760px) {
    .papattes-breadcrumb { padding-top: 14px; font-size: .6875rem; }
    .papattes-template .papattes-breadcrumb + .papattes-catalogue-section { padding-top: 20px; }
}
