/* =========================================================================
   Page d'accueil vitrine — badges, galerie, templates, matching (V2)
   ========================================================================= */

/* Header masque a l'arrivee (scrollY=0). Reapparait via .is-scrolled
   (main.js, seuil 8px) ou body.nav-forced-visible (bouton .pf-nav-trigger).
   Le bouton et l'override force-visible sont definis dans design-v2.css. */
body.page-home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
    will-change: transform;
    pointer-events: none;
    z-index: 50;
}
body.page-home .site-header.is-scrolled {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
    body.page-home .site-header { transition: none; }
}

/* ----- Badge section (🏛️ 🎯 …) — même langage que Aria ----- */
body.page-home .home-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    background: var(--museum-black);
    color: var(--museum-white);
    border: 1px solid var(--museum-black);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 16px;
}
body.page-home .home-section-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--museum-gold);
    color: var(--museum-black);
    font-size: .95rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ----- Bandeau « Pour les galeries » ----- */
body.page-home .gallery-cta-band {
    padding: var(--section-y) 0;
}
body.page-home .gal-promo-card {
    position: relative;
    border: 1px solid var(--museum-black);
    background: var(--museum-white);
    overflow: hidden;
}
body.page-home .gal-promo-visual {
    height: 210px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
body.page-home .gal-promo-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,8,12,.32), rgba(10,8,12,.08));
}
body.page-home .gal-promo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--museum-gold);
}
body.page-home .gal-promo-card-inner {
    padding: clamp(28px, 4vw, 40px);
    max-width: 720px;
}
body.page-home .gal-promo-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--museum-black);
}
body.page-home .gal-promo-text {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}
body.page-home .gal-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ----- Templates galerie (cartes dédiées, hors purge hp-tpl) ----- */
body.page-home .home-tpl-section-head .section-header,
body.page-home .home-tpl-section-head {
    text-align: left;
}
body.page-home .home-tpl-section-head h2 {
    margin-top: 4px;
}
body.page-home .home-tpl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap, 20px);
}
body.page-home .home-tpl-preview--collection {
    background: #f1ece2;
    color: var(--museum-black);
}
body.page-home .home-tpl-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    background: var(--museum-white);
    transition: border-color var(--t-fast);
}
body.page-home .home-tpl-card:hover {
    border-color: var(--museum-black);
    color: inherit;
    transform: none;
    box-shadow: none;
}
body.page-home .home-tpl-card--soon {
    opacity: .92;
}
body.page-home .home-tpl-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1280 / 800;
    border-bottom: 1px solid var(--border);
}
body.page-home .home-tpl-preview--boutique {
    background: #f5f0ea;
    color: var(--museum-black);
}
body.page-home .home-tpl-preview--prestige {
    background: #0c0a09;
    color: var(--museum-gold);
}
body.page-home .home-tpl-preview--classic {
    background: var(--museum-gray);
    color: var(--museum-black);
}
/* Aperçu = rendu réel du template (iframe 1280×800 mis à l'échelle en JS). */
body.page-home .home-tpl-frame {
    position: absolute; top: 0; left: 0;
    width: 1280px; height: 800px;
    border: 0;
    transform: scale(var(--tpl-scale, 0.27));
    transform-origin: top left;
    pointer-events: none;
    background: #fff;
    z-index: 0;
}
body.page-home .home-tpl-preview::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 46%;
    background: linear-gradient(to top, rgba(10,8,12,.6), transparent);
    z-index: 1; pointer-events: none;
}
body.page-home .home-tpl-name {
    position: absolute; left: 16px; bottom: 12px; z-index: 2;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
body.page-home .home-tpl-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: var(--museum-white);
    color: var(--museum-black);
}
body.page-home .home-tpl-tag--free {
    background: var(--museum-white);
    border-color: var(--museum-black);
    color: var(--museum-black);
}

/* ----- Aperçus templates PORTFOLIO sur l'accueil (override de main.min.css) ----- */
/* L'accueil charge main.min.css ; ces overrides convertissent les boîtes
   .hp-tpl-preview en rendu réel du template (iframe 1280×800 mise à l'échelle). */
body.page-home .hp-tpl-preview {
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
}
body.page-home .hp-tpl-frame {
    position: absolute; top: 0; left: 0;
    width: 1280px; height: 800px;
    border: 0;
    transform: scale(var(--tpl-scale, 0.21));
    transform-origin: top left;
    pointer-events: none;
    background: #fff;
    z-index: 0;
}
body.page-home .hp-tpl-preview::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 46%;
    background: linear-gradient(to top, rgba(10,8,12,.62), transparent);
    z-index: 1; pointer-events: none;
}
body.page-home .hp-tpl-name {
    position: absolute; left: 14px; bottom: 11px; z-index: 2;
    font-size: 1.18rem; font-weight: 700; line-height: 1.1;
    color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
body.page-home .hp-tpl-tag { z-index: 2; }
body.page-home .home-tpl-preview--prestige .home-tpl-tag {
    background: var(--museum-black);
    border-color: var(--museum-gold);
    color: var(--museum-gold);
}
body.page-home .home-tpl-tag--premium {
    background: var(--museum-gold);
    border-color: var(--museum-gold);
    color: var(--museum-black);
}
body.page-home .home-tpl-tag--soon {
    background: var(--museum-gray);
    color: var(--text-muted);
}
body.page-home .home-tpl-desc {
    margin: 0;
    padding: 14px 18px 18px;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--text-muted);
}
body.page-home .home-tpl-cta-wrap {
    text-align: center;
    margin: 28px 0 0;
}

/* ----- Matching galerie × artistes ----- */
body.page-home .section-matching {
    background: var(--museum-gray) !important;
    position: relative;
}
body.page-home .section-matching::before { display: none !important; }
body.page-home .match-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--card-gap-lg, 40px);
    align-items: start;
}
body.page-home .match-block-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.12;
    color: var(--museum-black);
    margin: 0 0 14px;
}
body.page-home .match-block-lead {
    color: var(--text-muted);
    font-size: .98rem;
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 52ch;
}
body.page-home .match-criteria {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 8px;
}
body.page-home .match-criteria li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    background: var(--museum-white);
    border: 1px solid var(--border);
}
body.page-home .match-criterion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--museum-gray);
    border: 1px solid var(--border);
    font-size: 1.2rem;
    line-height: 1;
}
body.page-home .match-criterion-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--text-muted);
}
body.page-home .match-criterion-body strong {
    color: var(--museum-black);
    font-weight: 600;
    font-size: .92rem;
}
body.page-home .match-block-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Panneau score */
body.page-home .match-score-panel {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    border: 1px solid var(--museum-black);
    background: var(--museum-white);
    overflow: hidden;
}
body.page-home .match-score-visual {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}
body.page-home .match-score-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,8,12,.35), rgba(10,8,12,.08));
}
body.page-home .match-score-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--museum-black);
    color: var(--museum-white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
body.page-home .match-score-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--museum-gold);
    font-size: .95rem;
    line-height: 1;
}
body.page-home .match-score-hero {
    padding: 20px 16px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
body.page-home .match-score-value {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--museum-black);
}
body.page-home .match-score-max {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-left: 4px;
}
body.page-home .match-score-rows {
    list-style: none;
    margin: 0;
    padding: 12px 16px 16px;
    display: grid;
    gap: 12px;
}
body.page-home .match-score-rows li {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: .8rem;
}
body.page-home .match-score-label {
    color: var(--museum-black);
    font-weight: 500;
}
body.page-home .match-score-bar {
    height: 6px;
    background: var(--museum-gray);
    border: 1px solid var(--border);
    overflow: hidden;
}
body.page-home .match-score-fill {
    display: block;
    height: 100%;
    background: var(--museum-gold);
}
body.page-home .match-score-pts {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    font-size: .75rem;
    white-space: nowrap;
}

/* ----- Bandeau œuvres (sous le hero) ----- */
body.page-home .home-showcase {
    padding: var(--section-y, 72px) 0;
    background: var(--museum-white);
    border-bottom: 1px solid var(--border);
}
body.page-home .home-showcase-head {
    max-width: 640px;
    margin-bottom: clamp(28px, 4vw, 48px);
}
body.page-home .home-showcase-head h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin: 8px 0 12px;
}
body.page-home .home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap, 12px);
}
@media (min-width: 640px) {
    body.page-home .home-showcase-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1024px) {
    body.page-home .home-showcase-grid {
        grid-template-columns: repeat(7, 1fr);
        grid-auto-rows: minmax(140px, auto);
    }
    body.page-home .home-showcase-item.is-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    body.page-home .home-showcase-item.is-tall {
        grid-row: span 2;
    }
}
body.page-home .home-showcase-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--museum-gray);
    text-decoration: none;
    color: inherit;
}
body.page-home .home-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
body.page-home .home-showcase-item:hover img {
    transform: scale(1.05);
}
body.page-home .home-showcase-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 40px 12px 12px;
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, transparent 100%);
    color: #fff;
    font-size: .75rem;
    line-height: 1.35;
    opacity: 0;
    transition: opacity .25s ease;
}
body.page-home .home-showcase-item:hover .home-showcase-cap,
body.page-home .home-showcase-item:focus-visible .home-showcase-cap {
    opacity: 1;
}
body.page-home .home-showcase-cap strong {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 2px;
}
body.page-home .home-showcase-cap em {
    font-style: normal;
    opacity: .85;
}
body.page-home .home-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(24px, 4vw, 40px);
}

/* ----- Visuels artistiques roles (meme DA que le hero) ----- */
body.page-home .home-role-visual {
    height: 164px;
    margin: -1px -1px 14px;
    border-bottom: 1px solid var(--border);
    background-size: cover;
    background-position: center;
    position: relative;
}
body.page-home .home-role-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 12, .26), rgba(10, 8, 12, .06));
}

/* ----- Valeur claire par type client ----- */
body.page-home .home-value,
body.page-home .home-persona {
    border-top: 1px solid var(--border);
}
body.page-home .home-persona-v2 {
    border-top: 1px solid var(--border);
}
body.page-home .home-triangle {
    border-top: 1px solid var(--border);
    background: var(--museum-white);
}
body.page-home .home-triangle-head {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}
body.page-home .home-triangle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap, 22px);
}
body.page-home .home-triangle-card {
    border: 1px solid #e5d6c0;
    background: var(--museum-white);
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
body.page-home .home-triangle-card:hover {
    transform: translateY(-4px);
    border-color: #d4b37a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}
body.page-home .home-triangle-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #2b2522, #151210);
}
body.page-home .home-triangle-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4b37a, #f1d18a);
    z-index: 2;
}
body.page-home .home-triangle-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(to top, rgba(8, 8, 10, .30), rgba(8, 8, 10, .08));
    pointer-events: none;
}
body.page-home .home-triangle-body {
    padding: 18px 20px 20px;
}
body.page-home .home-triangle-list {
    margin: 0 0 12px 16px;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.5;
}
body.page-home .home-triangle-flow {
    margin: 0 0 14px 18px;
    color: var(--museum-black);
    font-size: .86rem;
    line-height: 1.45;
}
body.page-home .home-triangle-bottom-cta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
body.page-home .home-value-grid,
body.page-home .home-persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap, 20px);
}
body.page-home .home-persona-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap, 22px);
}
body.page-home .home-value-card,
body.page-home .home-persona-card {
    border: 1px solid var(--border);
    background: var(--museum-white);
    padding: 18px 18px 20px;
}
body.page-home .home-persona-v2-card {
    border: 1px solid var(--border);
    background: var(--museum-white);
    overflow: hidden;
}
body.page-home .home-persona-v2-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
body.page-home .home-persona-v2-body {
    padding: 16px 18px 18px;
}
body.page-home .home-persona-v2-list {
    margin: 0 0 12px 16px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.5;
}
body.page-home .home-persona-v2-flow {
    margin: 0 0 14px 18px;
    color: var(--museum-black);
    font-size: .84rem;
    line-height: 1.45;
}
body.page-home .home-value-visual {
    height: 140px;
    margin: -18px -18px 14px;
    border-bottom: 1px solid var(--border);
    background-size: cover;
    background-position: center;
    position: relative;
}
body.page-home .home-value-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,8,12,.28), rgba(10,8,12,.06));
}
body.page-home .home-value-role {
    margin: 0 0 6px;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--text-muted);
}
body.page-home .home-value-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}
body.page-home .home-value-card ul,
body.page-home .home-persona-card ul {
    margin: 0 0 14px 16px;
    padding: 0;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.5;
}
body.page-home .home-workflow {
    margin: 0 0 14px 18px;
    padding: 0;
    color: var(--museum-black);
    font-size: .84rem;
    line-height: 1.45;
}

/* ----- Comment ca marche: visuel + texte court ----- */
body.page-home .home-flow {
    border-top: 1px solid var(--border);
}
body.page-home .home-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap, 20px);
}
body.page-home .home-flow-card {
    border: 1px solid var(--border);
    background: var(--museum-white);
    overflow: hidden;
}
body.page-home .home-flow-visual {
    height: 220px;
    background: linear-gradient(140deg, #e9e5de 0%, #d8d0c1 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}
body.page-home .home-flow-visual-1 {
    background-image: url('https://images.unsplash.com/photo-1579762715118-a6f1d4b934f1?auto=format&fit=crop&w=1600&q=80');
}
body.page-home .home-flow-visual-2 {
    background-image: url('https://images.unsplash.com/photo-1547891654-e66ed7ebb968?auto=format&fit=crop&w=1600&q=80');
}
body.page-home .home-flow-visual-3 {
    background-image: url('https://images.unsplash.com/photo-1577083552431-6e5fd75fc7a2?auto=format&fit=crop&w=1600&q=80');
}
body.page-home .home-flow-body {
    padding: 16px 18px 18px;
}
body.page-home .home-flow-step {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--museum-black);
}
body.page-home .home-flow-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
}
body.page-home .home-flow-card p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ----- Galeries partenaires ----- */
body.page-home .home-featured-gal {
    padding: var(--section-y, 64px) 0;
    background: var(--museum-gray);
}
body.page-home .home-featured-gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: var(--card-gap, 20px);
}
body.page-home .home-gal-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--museum-white);
    border: 1px solid var(--border);
    transition: border-color var(--t-fast);
}
body.page-home .home-gal-card:hover {
    border-color: var(--museum-black);
    color: inherit;
}
body.page-home .home-gal-card-visual {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--museum-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}
body.page-home .home-gal-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.page-home .home-gal-card-logo {
    object-fit: contain !important;
    max-width: 55%;
    max-height: 55%;
    width: auto !important;
    height: auto !important;
}
body.page-home .home-gal-card-placeholder {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--museum-gold);
}
body.page-home .home-gal-card-body {
    padding: 16px 18px 20px;
}
body.page-home .home-gal-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 4px;
}

/* ----- Communauté : images dans les cartes ----- */
body.page-home .hp-comm-img {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin: -1px -1px 12px;
}
body.page-home .hp-comm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- CTA final portfolio ----- */
body.page-home .portfolio-cta-final {
    padding: var(--section-y) 0;
    background: var(--museum-gray);
}
body.page-home .portfolio-cta-card {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--museum-black);
    background: var(--museum-white);
    overflow: hidden;
    text-align: center;
}
body.page-home .portfolio-cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--museum-gold);
}
body.page-home .portfolio-cta-card-inner {
    padding: clamp(36px, 5vw, 52px) clamp(24px, 4vw, 40px);
}
body.page-home .portfolio-cta-card .home-section-badge {
    margin-left: auto;
    margin-right: auto;
}
body.page-home .portfolio-cta-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    line-height: 1.12;
    color: var(--museum-black);
    margin: 0 0 14px;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}
body.page-home .portfolio-cta-title .accent {
    color: var(--museum-gold);
    font-style: italic;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}
body.page-home .portfolio-cta-lead {
    margin: 0 auto 18px;
    max-width: 42ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
}
body.page-home .portfolio-cta-perks {
    list-style: none;
    margin: 0 auto 26px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
body.page-home .portfolio-cta-perks li {
    padding: 6px 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: var(--museum-gray);
    color: var(--museum-black);
}
body.page-home .portfolio-cta-btn {
    min-width: min(100%, 280px);
}

/* ----- Interet Galerie + Collectionneur (apres portfolio) ----- */
body.page-home .home-interest-duo {
    border-top: 1px solid var(--border);
    background: var(--museum-white);
}
body.page-home .home-interest-duo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap-lg, 28px);
}
body.page-home .home-interest-card {
    border: 1px solid #e5d6c0;
    background: var(--museum-white);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}
body.page-home .home-interest-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
body.page-home .home-interest-card-body {
    padding: 18px 20px 20px;
}
body.page-home .home-interest-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}
body.page-home .home-interest-card p {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
body.page-home .home-interest-card ul {
    margin: 0 0 16px 16px;
    color: var(--museum-black);
    font-size: .9rem;
    line-height: 1.5;
}

/* ----- Derniers contenus (blog + SEO) ----- */
body.page-home .home-latest-stream {
    border-top: 1px solid var(--border);
    background: var(--museum-gray);
}
body.page-home .home-latest-stream--alt {
    background: var(--museum-white);
}
body.page-home .home-stream-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap, 22px);
}
body.page-home .home-stream-card {
    border: 1px solid var(--border);
    background: var(--museum-white);
    overflow: hidden;
}
body.page-home .home-stream-media {
    display: block;
    height: 200px;
}
body.page-home .home-stream-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.page-home .home-stream-body {
    padding: 16px 18px 18px;
}
body.page-home .home-stream-body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}
body.page-home .home-stream-body h3 a {
    color: inherit;
    text-decoration: none;
}
body.page-home .home-stream-body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}
body.page-home .home-stream-card--seo {
    border-color: #e8dcc9;
}
body.page-home .home-stream-empty {
    border: 1px solid var(--border);
    background: var(--museum-white);
    padding: 22px;
    text-align: center;
}
body.page-home .home-stream-empty p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

@media (max-width: 1080px) {
    body.page-home .home-tpl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    body.page-home .match-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    body.page-home .match-score-panel {
        max-width: 100%;
        margin-left: 0;
    }
    body.page-home .home-flow-grid {
        grid-template-columns: 1fr;
    }
    body.page-home .home-value-grid,
    body.page-home .home-persona-grid {
        grid-template-columns: 1fr;
    }
    body.page-home .home-persona-v2-grid {
        grid-template-columns: 1fr;
    }
    body.page-home .home-triangle-grid {
        grid-template-columns: 1fr;
    }
    body.page-home .home-interest-duo-grid {
        grid-template-columns: 1fr;
    }
    body.page-home .home-stream-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.page-home .home-tpl-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    body.page-home .gal-promo-actions,
    body.page-home .match-block-actions {
        flex-direction: column;
        align-items: stretch;
    }
    body.page-home .gal-promo-actions .btn,
    body.page-home .match-block-actions .btn {
        width: 100%;
        justify-content: center;
    }
    body.page-home .portfolio-cta-btn {
        width: 100%;
    }
    body.page-home .portfolio-cta-title {
        max-width: none;
    }
    body.page-home .home-triangle-bottom-cta .btn {
        width: 100%;
        justify-content: center;
    }
    body.page-home .match-score-rows li {
        grid-template-columns: 72px 1fr auto;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    body.page-home .match-score-rows li {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    body.page-home .match-score-pts {
        justify-self: end;
    }
}
