/* Neutralise l'espacement entre l'en-tête et la home dans le modèle de blocs. */
.wp-site-blocks > :is(.papattes-home, .wp-block-group:has(.papattes-home), .wp-block-post-content:has(.papattes-home)) {
    margin-block-start: 0;
}

/* Le modèle de blocs peut entourer la home d'un Groupe et du bloc Contenu. */
:is(.wp-site-blocks.is-layout-constrained, .wp-site-blocks .is-layout-constrained) > :is(.papattes-home, .wp-block-group:has(.papattes-home), .wp-block-post-content:has(.papattes-home)) {
    max-width: none;
    margin-block-start: 0;
}

/* Accueil Papattes · fondations et éléments partagés */
.papattes-home {
    --papattes-home-ink: #16235b;
    --papattes-home-muted: #52647f;
    --papattes-home-accent: #3d48e1;
    --papattes-home-honey: #e9bb54;
    --papattes-home-line: #e4e9f2;
    color: var(--papattes-home-ink);
    font: 400 1rem/1.65 Inter, Arial, sans-serif;
}
.papattes-home .papattes-home-shell { width: min(100% - 56px, 1200px); margin-inline: auto; }
.papattes-home-section { padding-block: clamp(44px, 6vw, 86px); }
.papattes-home :where(.papattes-home-editorial, .papattes-home-hero-copy, .papattes-home-guide, .papattes-home-role) :is(h1, h2, h3, p) { margin: 0; }
.papattes-home :is(.papattes-home-editorial,.papattes-home-role) h2 {
    color: inherit;
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.12;
}
.papattes-home :is(.papattes-home-editorial,.papattes-home-role) h2::after { display: block; width: 30px; height: 3px; margin-top: 16px; background: var(--papattes-home-honey); content: ''; }
.papattes-home-editorial > p { max-width: 63ch; margin-top: 16px; color: var(--papattes-home-muted); }
/* Le thème WordPress applique un contour à :focus, y compris après un clic. */
.wp-site-blocks .papattes-home :focus:not(:focus-visible),
.papattes-home :focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}
.papattes-home a:focus-visible { outline: 2px solid var(--papattes-home-accent); outline-offset: 4px; }
.papattes-home .papattes-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}
.papattes-home .papattes-home-button-primary { background: var(--papattes-home-accent); color: #fff; }
.papattes-home .papattes-home-button-primary:hover { background: #303ac5; }
.papattes-home .papattes-home-button-secondary { background: #fff; border-color: #dbe1f1; color: var(--papattes-home-ink); }
.papattes-home .papattes-home-button-secondary:hover { background: #eef0ff; }
.papattes-home .papattes-home-text-link { color: inherit; font-size: .875rem; font-weight: 600; text-underline-offset: 4px; }

/* Premier écran et aperçu des rubriques */
.papattes-home-hero { container-type: inline-size; padding-block: clamp(38px, 5.5vw, 82px); background: #f4f5fd; }
.papattes-home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 86px); }
.papattes-home-hero h1 {
    max-width: 14ch;
    color: inherit;
    font-size: clamp(2.5rem, 5cqi, 4.5rem);
    font-weight: 750;
    letter-spacing: -.06em;
    line-height: 1.04;
    overflow-wrap: anywhere;
}
.papattes-home-hero h1 span { color: #3543bd; }
.papattes-home-hero-copy > p { max-width: 43ch; margin-top: 22px; color: var(--papattes-home-muted); font-size: clamp(1rem, 1.6vw, 1.125rem); }
.papattes-home-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 12px; }
.papattes-home-hero-copy > .papattes-home-independence {
    margin-top: 14px;
    font-size: .8125rem;
    font-weight: 600;
}
.papattes-home-brief {
    min-width: 0;
    padding: clamp(14px, 3vw, 30px);
    border-radius: 28px;
    background: #e5e8fd;
}
.papattes-home-brief-sheet {
    padding: clamp(14px, 2.5vw, 26px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(22 35 91 / 9%);
}
.papattes-home-brief-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.papattes-home-brief-heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.375rem, 3cqi, 2.1rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.papattes-home-brief-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 58px;
    aspect-ratio: 1;
    border-radius: 19px;
    background: #f9edc7;
    color: #16235b;
    transform: rotate(10deg);
}
.papattes-home-brief-icon svg { width: 30px; height: 30px; }
.papattes-home-brief-criteria { display: grid; gap: 5px; margin: 0; }
.papattes-home-brief-criteria > div {
    padding: 8px 11px;
    border-radius: 9px;
    background: #f3f5fc;
}
.papattes-home-brief-criteria > div:nth-child(4) { background: #fbf5e5; }
.papattes-home-brief-criteria dt { font-size: .875rem; font-weight: 700; }
.papattes-home-brief-criteria dd {
    margin: 0;
    color: var(--papattes-home-muted);
    font-size: .8125rem;
}
/* Méthode et simulateur */
.papattes-home-method { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 78px); align-items: start; border-top: 1px solid var(--papattes-home-line); }
.papattes-home-criteria details { border-bottom: 1px solid var(--papattes-home-line); }
.papattes-home-criteria summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 10px 2px; font-weight: 650; overflow-wrap: anywhere; cursor: pointer; list-style: none; }
.papattes-home-criteria summary::-webkit-details-marker { display: none; }
.papattes-home-criteria summary::after { flex: none; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); content: ''; }
.papattes-home-criteria details[open] summary::after { transform: rotate(225deg); }
.papattes-home-criteria summary:focus-visible { outline: 2px solid var(--papattes-home-accent); outline-offset: 2px; }
.papattes-home-criteria p { margin: 0 18px 14px 2px; color: var(--papattes-home-muted); font-size: .9rem; }
.papattes-home-simulator { background: #f6f3ec; }
.papattes-home-simulator-body { margin-top: 24px; padding: clamp(12px, 2vw, 24px); border-radius: 18px; background: #fff; }

/* Annuaire, guides et rôle du site */
.papattes-home-directory { padding-block: clamp(26px, 4vw, 48px); }
.papattes-home-directory .papattes-home-editorial h2 { font-size: 1.125rem; letter-spacing: -.02em; }
.papattes-home-directory .papattes-home-editorial h2::after { content: none; }
.papattes-home .papattes-home-insurers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 28px 0 0; list-style: none; }
.papattes-home-insurers li { min-width: 0; }
.papattes-home-insurers a { display: grid; place-items: center; align-content: center; gap: 8px; box-sizing: border-box; height: 100%; min-height: 98px; padding: 10px; border: 1px solid var(--papattes-home-line); border-radius: 12px; color: inherit; text-decoration: none; text-align: center; font-size: .8125rem; font-weight: 600; }
.papattes-home-insurers a:hover { background: #f5f6fb; }
.papattes-home-insurers img { display: block; width: 112px; max-width: 100%; height: 40px; object-fit: contain; }
.papattes-home-guides { border-top: 1px solid var(--papattes-home-line); }
.papattes-home-guide-grid, .papattes-home-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: center; }
.papattes-home-guide-grid { margin-top: 28px; align-items: stretch; }
.papattes-home .papattes-home-guide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: #f5f6fb; color: inherit; text-decoration: none; }
.papattes-home .papattes-home-guide:hover { background: #ebeffb; }
.papattes-home-guide svg { width: 22px; height: 22px; }
.papattes-home-guide h3 { font-size: 1rem; line-height: 1.35; }
.papattes-home-guide p { margin-top: 5px; font-size: .875rem; color: var(--papattes-home-muted); }
.papattes-home-role { background: var(--papattes-home-ink); color: #fff; }
.papattes-home-role p { color: #e4eafa; }
.papattes-home .papattes-home-button-light { margin-top: 18px; background: #fff; color: var(--papattes-home-ink); }
.papattes-home .papattes-home-button-light:hover { background: #fcf4de; }
.papattes-home-role a:focus-visible { outline-color: var(--papattes-home-honey); }

@media (max-width: 920px) {
    .papattes-home .papattes-home-insurers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 760px) {
    .papattes-home-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .papattes-home-hero h1 { max-width: 16ch; }
}
@media (max-width: 700px) {
    .papattes-home .papattes-home-shell { width: calc(100% - 32px); }
    .papattes-home-hero-grid, .papattes-home-method, .papattes-home-guide-grid, .papattes-home-role-grid { grid-template-columns: minmax(0, 1fr); }
    .papattes-home-hero h1 { max-width: 16ch; }
    .papattes-home-insurers a { min-height: 84px; }
    .papattes-home-insurers img { height: 32px; }
}


