/*
 * gecodispages - styles front inspirés de l'approche e-commerce de Vente-unique :
 * mise en page blanche, typographie nette, images mises en avant, bordures fines et accent rouge.
 * Le header, le footer et les composants natifs du thème restent inchangés.
 */
.gp {
    --gp-accent: #e30613;
    --gp-accent-dark: #bd0010;
    --gp-text: #242424;
    --gp-muted: #666666;
    --gp-soft: #f6f6f6;
    --gp-border: #e7e7e7;
    --gp-radius: 8px;
    --gp-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    --gp-shadow-hover: 0 6px 18px rgba(0, 0, 0, .12);
    --gp-gap: 1rem;
    width: 100%;
    color: var(--gp-text);
    font-family: inherit;
    line-height: 1.5;
}

.gp,
.gp *,
.gp *::before,
.gp *::after {
    box-sizing: border-box;
}

.gp img {
    display: block;
    max-width: 100%;
}

/* Sections et titres : sobres, noirs, sans soulignement décoratif. */
.gp-block {
    min-width: 0;
    margin: 0 0 3rem;
}

.gp-block__title {
    margin: 0 0 1.25rem;
    padding: 0;
    color: #171717;
    font: inherit;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.gp-block__title::after {
    content: none;
}

/* Carte commune à la bannière et à son introduction SEO, inspirée de la maquette Vente-unique. */
.gp-universe-hero-card {
    width: 100%;
    margin: 1.5rem 0 2.75rem;
    padding: 6px 6px 16px;
    overflow: hidden;
    border-radius: 24px;
    background: #f4ece4;
}

/* Bannière sans recadrage automatique : conserve le ratio natif du visuel desktop/mobile. */
.gp-hero {
    width: 100%;
    margin: 0;
}

.gp-hero__link,
.gp-hero__picture {
    display: block;
    width: 100%;
}

.gp-hero__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 18px;
    object-fit: contain;
    object-position: center;
}

/* Le texte SEO reste dans la même carte arrondie que la bannière. */
.gp-seo-intro {
    margin: 0;
    padding: 14px 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.gp-seo-intro__text,
.gp-seo-bottom__text {
    color: #3d3d3d;
    font-size: 1rem;
    line-height: 1.7;
}

/* TinyMCE peut conserver un fond blanc collé depuis Word ou une autre page :
   le texte d'introduction doit laisser apparaître le fond beige de la carte. */
.gp-seo-intro__text,
.gp-seo-intro__text * {
    background-color: transparent !important;
}

.gp-seo-intro__text > :first-child,
.gp-seo-bottom__text > :first-child {
    margin-top: 0;
}

.gp-seo-intro__text > :last-child,
.gp-seo-bottom__text > :last-child {
    margin-bottom: 0;
}

.gp-seo-bottom__text h2,
.gp-seo-bottom__text h3 {
    margin: 1.6rem 0 .7rem;
    color: #202020;
    font-weight: 700;
    line-height: 1.3;
}

.gp-seo-intro__text a,
.gp-seo-bottom__text a {
    color: var(--gp-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gp-seo-intro__more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .35rem;
    padding: .2rem 0 .35rem;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: #28221e;
    font-size: 1.1rem;
    font-weight: 500 !important;
    text-decoration: none;
    transition: color .18s ease;
}

.gp-seo-intro__more:hover,
.gp-seo-intro__more:focus {
    color: var(--gp-accent-dark);
    text-decoration: none;
}

.gp-seo-intro__arrow {
    transition: transform .18s ease;
}

.gp-seo-intro__more:hover .gp-seo-intro__arrow {
    transform: translateY(2px);
}

.gp-seo-bottom {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--gp-border);
    scroll-margin-top: 90px;
}

/* Vignettes de catégories : tuiles carrées/rectangulaires, captions lisibles. */
.gp-tiles__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gp-tiles__item {
    min-width: 0;
    max-width: none;
}

.gp-tiles__link {
    display: block;
    height: 100%;
    color: #202020;
    text-align: center;
    text-decoration: none;
}

.gp-tiles__picture {
    display: block;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: var(--gp-radius);
    background: var(--gp-soft);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gp-tiles__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .3s ease;
}

.gp-tiles__link:hover .gp-tiles__picture {
    border-color: #d5d5d5;
    box-shadow: var(--gp-shadow);
}

.gp-tiles__link:hover .gp-tiles__img {
    transform: scale(1.035);
}

.gp-tiles__label {
    display: block;
    margin-top: .65rem;
    color: #242424;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
}

.gp-tiles__link:hover .gp-tiles__label {
    color: var(--gp-accent);
}

/* Les vignettes de familles ne sont plus rondes : elles reprennent le format des tuiles du site de référence. */
.gp-tiles--family_tiles .gp-tiles__picture {
    border: 1px solid #eeeeee;
    border-radius: var(--gp-radius);
    box-shadow: none;
}

.gp-tiles--family_tiles .gp-tiles__img {
    aspect-ratio: 4 / 3;
}

/* Familles : une rangée horizontale sur ordinateur ; défilement tactile sur les écrans plus étroits. */
.gp-tiles--family_tiles .gp-tiles__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gp-tiles--family_tiles .gp-tiles__item {
    flex: 0 0 calc((100% - 6 * 1.15rem) / 7);
    min-width: 120px;
    scroll-snap-align: start;
}

.gp-tiles--family_tiles .gp-tiles__picture {
    aspect-ratio: 4 / 3;
}

.gp-tiles--family_tiles .gp-tiles__img {
    height: 100%;
}

/* Liens de fin de page : liens compacts en pastilles blanches bordées. */
.gp-tiles--subcategory_links .gp-tiles__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .6rem;
}

.gp-tiles--subcategory_links .gp-tiles__item {
    flex: 0 1 auto;
    min-width: 0;
}

.gp-tiles--subcategory_links .gp-tiles__picture {
    display: none;
}

.gp-tiles--subcategory_links .gp-tiles__link {
    height: auto;
    padding: .55rem .9rem;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
    text-align: left;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.gp-tiles--subcategory_links .gp-tiles__link:hover {
    border-color: #bdbdbd;
    background: #f7f7f7;
    color: var(--gp-accent);
}

.gp-tiles--subcategory_links .gp-tiles__label {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
}

.gp-tiles--subcategory_links .gp-tiles__link:hover .gp-tiles__label {
    color: var(--gp-accent);
}

/* Articles de blog : cartes sobres et homogènes. */
.gp-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.gp-blog__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gp-blog__card:hover {
    border-color: #d2d2d2;
    box-shadow: var(--gp-shadow);
}

.gp-blog__link {
    display: block;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.gp-blog__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .35s ease;
}

.gp-blog__card:hover .gp-blog__image {
    transform: scale(1.035);
}

.gp-blog__title {
    margin: 0;
    padding: .9rem 1rem .35rem;
    color: #202020;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.gp-blog__more {
    display: inline-block;
    padding: 0 1rem 1rem;
    color: var(--gp-accent);
    font-size: .9rem;
    font-weight: 700;
}

.gp-blog__more::after {
    content: " \2192";
}

/* Accessibilité. */
.gp a:focus-visible {
    outline: 2px solid var(--gp-accent);
    outline-offset: 3px;
    border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .gp * {
        transition: none !important;
    }

    .gp-tiles__link:hover .gp-tiles__img,
    .gp-blog__card:hover .gp-blog__image {
        transform: none;
    }

}

/* Tablettes. */
@media (max-width: 991px) {
    .gp-tiles__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gp-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Mobiles. */
@media (max-width: 767px) {
    .gp {
        --gp-gap: .75rem;
    }

    .gp-block {
        margin-bottom: 2.25rem;
    }

    .gp-block__title {
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .gp-universe-hero-card {
        margin: 1rem 0 2rem;
        padding: 5px 5px 13px;
        border-radius: 18px;
    }

    .gp-hero__image {
        height: auto;
        max-height: none;
        border-radius: 14px;
    }

    .gp-seo-intro {
        padding: 12px 10px 0;
    }

    .gp-tiles__list {
        grid-auto-columns: minmax(138px, 42%);
        grid-auto-flow: column;
        grid-template-columns: none;
        justify-content: start;
        overflow-x: auto;
        padding: .15rem .1rem .7rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .gp-tiles__item {
        min-width: 0;
        scroll-snap-align: start;
    }

    .gp-tiles--subcategory_links .gp-tiles__list {
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
    }

    .gp-tiles--subcategory_links .gp-tiles__item {
        flex: 0 1 auto;
    }

    .gp-blog__grid {
        grid-template-columns: 1fr;
        gap: .8rem;
    }

    .gp-blog__card {
        display: grid;
        grid-template-columns: 38% minmax(0, 1fr);
        align-items: stretch;
    }

    .gp-blog__link {
        display: contents;
    }

    .gp-blog__image {
        height: 100%;
        min-height: 96px;
        aspect-ratio: 1 / 1;
    }

    .gp-blog__title {
        padding: .7rem .8rem .2rem;
        font-size: .95rem;
    }

    .gp-blog__more {
        padding: 0 .8rem .7rem;
    }

}

@media (max-width: 479px) {

    .gp-tiles__list {
        grid-auto-columns: minmax(132px, 48%);
    }

}

/* Articles de blog : cartes arrondies, titre centré, image pleine largeur, catégorie en gris. */
.gp-blog .gp-blog__heading { text-align: center; }

.gp-blog .gp-blog__grid { gap: 1rem; }

.gp-blog .gp-blog__card { border-radius: 16px; border-color: #e6e8eb; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }

.gp-blog .gp-blog__card:hover { border-color: #d6d9dd; box-shadow: 0 6px 18px rgba(0, 0, 0, .09); }

.gp-blog .gp-blog__link { display: flex; flex-direction: column; }

.gp-blog .gp-blog__image { aspect-ratio: 16 / 9; height: auto; }

.gp-blog .gp-blog__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: .45rem; padding: 1rem 1rem 1.1rem; }

.gp-blog .gp-blog__title { margin: 0; padding: 0; color: #202020; font-size: 1rem; font-weight: 500; line-height: 1.4; }

.gp-blog .gp-blog__category { margin-top: auto; color: #7a828c; font-size: .82rem; font-weight: 400; }

@media (max-width: 767px) {
    .gp-blog .gp-blog__card { display: block; }

    .gp-blog .gp-blog__link { display: flex; }

    .gp-blog .gp-blog__image { height: auto; min-height: 0; aspect-ratio: 16 / 9; }

    .gp-blog .gp-blog__body { padding: .8rem .9rem 1rem; }

}

/* Finitions communes des univers : sections éditoriales aérées, cartes homogènes. */
.gp-block__title {
    margin: 0 0 .45rem;
    color: #202020;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.gp-block__subtitle {
    margin: 0 0 1.15rem;
    color: #68717a;
    font-size: .98rem;
    line-height: 1.5;
}

/* Bloc Familles : vignettes rectangulaires alignées, sans cercle ni cadre superflu. */
.gp-tiles--family_tiles .gp-tiles__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    margin: 0;
    padding: .15rem 0 .8rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #c9ced3 transparent;
}

.gp-tiles--family_tiles .gp-tiles__item {
    flex: 0 0 calc((100% - 6rem) / 7);
    min-width: 132px;
    max-width: 210px;
    scroll-snap-align: start;
}

.gp-tiles--family_tiles .gp-tiles__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: .65rem;
    text-align: left;
}

.gp-tiles--family_tiles .gp-tiles__picture {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #f5f5f5;
    box-shadow: none;
}

.gp-tiles--family_tiles .gp-tiles__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.gp-tiles--family_tiles .gp-tiles__label {
    margin: 0;
    color: #242424;
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.35;
}

.gp-tiles--family_tiles .gp-tiles__link:hover .gp-tiles__img {
    transform: scale(1.045);
}

.gp-tiles--family_tiles .gp-tiles__link:hover .gp-tiles__label {
    color: var(--gp-accent);
}

@media (max-width: 991px) {
    .gp-tiles--family_tiles .gp-tiles__item {
        flex-basis: 21%;
    }

}

@media (max-width: 767px) {
    .gp-tiles--family_tiles .gp-tiles__item {
        flex-basis: 43%;
        min-width: 0;
    }

}

/* Finitions des mises en avant : lien clavier visible, image stable et titre lisible. */
.gp-tiles--family_tiles .gp-tiles__link:focus-visible {
    outline: 3px solid var(--gp-accent);
    outline-offset: 3px;
}

.gp-tiles--family_tiles .gp-tiles__label {
    overflow-wrap: anywhere;
}

/* Familles de produits : cartes éditoriales hautes, titre intégré sur la photo. */
.gp-tiles--family_tiles .gp-tiles__list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
    padding: 0;
}

.gp-tiles--family_tiles .gp-tiles__item {
    min-width: 0;
    max-width: none;
    flex: initial;
}

.gp-family-tile {
    position: relative;
    display: block;
    min-height: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 7px solid #f4ece2;
    border-radius: 22px;
    background: #f1eee9;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.gp-family-tile:hover,
.gp-family-tile:focus {
    color: #fff;
    text-decoration: none;
}

.gp-family-tile__picture,
.gp-family-tile__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.gp-family-tile__image {
    object-fit: cover;
    transition: transform .35s ease;
}

.gp-family-tile::after {
    position: absolute;
    z-index: 1;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .72) 100%);
    content: '';
}

.gp-family-tile__overlay {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.gp-family-tile__title {
    display: block;
    max-width: calc(100% - 46px);
    color: #fff;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.gp-family-tile__arrow {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: rgba(48, 48, 48, .48);
    color: #fff;
    font-size: 1.15rem;
}

.gp-family-tile:hover .gp-family-tile__image {
    transform: scale(1.04);
}

.gp-family-tile:focus-visible {
    outline: 3px solid var(--gp-accent);
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    .gp-tiles--family_tiles .gp-tiles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

}

@media (max-width: 767px) {
    .gp-tiles--family_tiles .gp-tiles__list {
        display: flex !important;
        overflow-x: auto;
        gap: .85rem;
        padding: 0 0 .65rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .gp-tiles--family_tiles .gp-tiles__item {
        flex: 0 0 min(78vw, 330px);
        scroll-snap-align: start;
    }

    .gp-family-tile { aspect-ratio: 4 / 5; }

}

/* ========================================================================
   Univers — Vos questions (FAQ), accordéon arrondi
   Titre centré dans la police des titres du thème (h2 non réinitialisé), sous-titre centré,
   questions dans des cartes à bordure fine, chevron à droite, première question ouverte.
   L'espacement entre blocs vient de .gp.gp--universe > .gp-block (section-space).
   ======================================================================== */
.gp .gp-faq {
    display: block;
    clear: both;
    width: 100%;
    min-width: 0;
}

.gp .gp-faq__header {
    margin: 0 0 1.9rem;
    text-align: center;
}

.gp .gp-faq__title {
    margin: 0 0 .65rem;
    padding: 0;
    color: #111;
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.gp .gp-faq__subtitle {
    margin: 0;
    color: #222;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
}

.gp .gp-faq__list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    width: 100%;
}

.gp .gp-faq__item {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cdcdcd;
    border-radius: 24px;
    background: #fff;
    box-shadow: none;
}

.gp .gp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    margin: 0;
    padding: 1rem 1.5rem;
    color: #3a3a3a;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
}

.gp .gp-faq__question::-webkit-details-marker {
    display: none;
}

.gp .gp-faq__question:focus-visible {
    outline: 2px solid var(--gp-accent);
    outline-offset: -3px;
    border-radius: 24px;
}

.gp .gp-faq__question-text {
    min-width: 0;
    overflow-wrap: break-word;
}

/* Chevron dessiné en CSS : vers le bas fermé, vers le haut ouvert. */
.gp .gp-faq__chevron {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.gp .gp-faq__chevron::before {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 9px;
    height: 9px;
    border-right: 1.6px solid #2b2b2b;
    border-bottom: 1.6px solid #2b2b2b;
    content: '';
    transform: rotate(45deg);
    transition: transform .2s ease, top .2s ease;
}

.gp .gp-faq__item[open] .gp-faq__chevron::before {
    top: 7px;
    transform: rotate(-135deg);
}

.gp .gp-faq__answer {
    padding: 0 1.5rem 1.4rem;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: left;
}

.gp .gp-faq__answer > div > :first-child { margin-top: 0; }

.gp .gp-faq__answer > div > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .gp .gp-faq__header {
        margin-bottom: 1.4rem;
    }

    .gp .gp-faq__item {
        border-radius: 20px;
    }

    .gp .gp-faq__question {
        min-height: 58px;
        padding: .9rem 1.1rem;
        font-size: 1.05rem;
    }

    .gp .gp-faq__answer {
        padding: 0 1.1rem 1.1rem;
        font-size: .95rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .gp .gp-faq__chevron::before {
        transition: none !important;
    }

}

/* -------------------------------------------------------------------------
   Espacement général et titres : sections éditoriales plus lisibles.
   ------------------------------------------------------------------------- */
.gp .gp-block {
    margin-bottom: clamp(4.25rem, 5.5vw, 5.5rem) !important;
}

.gp .gp-block__title {
    width: 100%;
    margin: 0 0 2rem !important;
    text-align: center !important;
}

.gp .gp-block__subtitle {
    margin: -.9rem 0 1.8rem;
    text-align: center;
}

/* La section « À propos de… » ne doit pas être séparée par une ligne horizontale. */
.gp .gp-seo-bottom {
    margin-top: 1.5rem !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

.gp .gp-seo-bottom__title {
    text-align: center !important;
}

/* Familles / sous-familles : respiration entre le listing natif et les produits complémentaires. */
.gp.gp--after_listing {
    clear: both;
    width: 100%;
    margin-top: clamp(4rem, 6vw, 6rem) !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

.gp.gp--after_listing::before,
.gp.gp--after_listing::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 767px) {
    .gp .gp-block {
        margin-bottom: 3.5rem !important;
    }

    .gp .gp-block__title {
        margin-bottom: 1.35rem !important;
    }

    .gp.gp--after_listing {
        margin-top: 3rem !important;
    }

}

/* ========================================================================
   Sections modernisées (v0.2) — remplace les anciennes couches de CSS
   (cartes produits, FAQ / Tendances, vignettes de sous-familles).
   ======================================================================== */

/* « … » du résumé SEO : collé au dernier mot, juste avant « Voir plus ». */
.gp .gp-seo-ellipsis {
    display: inline;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

/* --- En-tête de section commun (FAQ et Tendances) : mêmes tailles et même style que Vente-unique ----------- */
.gp .gp-head {
    margin: 0 0 1.9rem;
    text-align: center;
}
.gp .gp-head__title {
    margin: 0 0 .65rem;
    padding: 0;
    color: #111;
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
}
.gp .gp-head__subtitle {
    margin: 0;
    color: #222;
    font-size: .95rem;
    line-height: 1.5;
    text-align: center;
}

/* --- Tendances du moment : « Beaux produits, prix doux » ----------------------------------------------- */
.gp .gp-trends__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}
.gp .gp-trends__grid--count-1 {
    grid-template-columns: minmax(0, 1fr);
}
.gp .gp-trend {
    min-width: 0;
    margin: 0;
    padding: 0;
}
.gp .gp-trend__link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 24px;
    background: #e9e3dc;
    color: #fff;
    text-decoration: none;
}
.gp .gp-trend__link:hover,
.gp .gp-trend__link:focus {
    color: #fff;
    text-decoration: none;
}
.gp .gp-trend__picture,
.gp .gp-trend__image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.gp .gp-trend__image {
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}
.gp .gp-trend__link:hover .gp-trend__image {
    transform: scale(1.03);
}
/* Dégradé : le texte blanc reste lisible quelle que soit la photo. */
.gp .gp-trend__link::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 20, 15, .62) 0%, rgba(30, 20, 15, 0) 52%);
    content: '';
    pointer-events: none;
}
.gp .gp-trend__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 1.7rem;
    text-align: center;
}
.gp .gp-trend__title {
    display: block;
    color: #fff;
    font-size: clamp(1.6rem, 2.7vw, 2.25rem);
    font-weight: 400;
    line-height: 1.15;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.gp .gp-trend__subtitle {
    display: block;
    margin-top: .2rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.4;
}
.gp .gp-trend__cta {
    display: inline-block;
    margin-top: .85rem;
    padding: .6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(60, 44, 40, .72);
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.2;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s ease;
}
.gp .gp-trend__link:hover .gp-trend__cta {
    background: rgba(35, 25, 22, .88);
}
.gp .gp-trend__link:focus-visible {
    outline: 2px solid var(--gp-accent);
    outline-offset: 3px;
}

/* --- Cartes produits (Meilleures ventes, Produits consultés) : markup autonome, indépendant du thème ------ */
.gp .gp-pgrid {
    display: grid;
    gap: clamp(.85rem, 1.6vw, 1.35rem);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.gp .gp-pgrid--bestsellers {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.gp .gp-pgrid--recent {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gp .gp-pgrid__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}
.gp .gp-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ece6df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(35, 28, 20, .06);
    transition: box-shadow .2s ease, transform .2s ease;
}
.gp .gp-pcard:hover {
    box-shadow: 0 8px 22px rgba(35, 28, 20, .12);
    transform: translateY(-2px);
}
.gp .gp-pcard__media {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f5f2;
}
.gp .gp-pcard__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.gp .gp-pcard__flags {
    position: absolute;
    top: .6rem;
    left: .6rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    max-width: calc(100% - 1.2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.gp .gp-pcard__flag {
    margin: 0;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #fff;
    color: #2b2b2b;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.gp .gp-pcard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: .9rem 1rem 1.1rem;
    text-align: left;
}
.gp .gp-pcard__title {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 .3rem;
    padding: 0;
    overflow: hidden;
    color: #202020;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.gp .gp-pcard__title a {
    color: inherit;
    text-decoration: none;
}
.gp .gp-pcard__title a:hover {
    text-decoration: underline;
}
.gp .gp-pcard__reference {
    margin: 0 0 .5rem;
    color: #8a8a8a;
    font-size: .78rem;
    line-height: 1.3;
}
.gp .gp-pcard__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15rem .6rem;
    margin: auto 0 0;
    padding: 0;
}
.gp .gp-pcard__current {
    color: var(--gp-accent);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}
.gp .gp-pcard__regular {
    color: #9a9a9a;
    font-size: .85rem;
    text-decoration: line-through;
}
@media (max-width: 1199px) {
    .gp .gp-pgrid--bestsellers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 991px) {
    .gp .gp-pgrid--recent {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Vignettes des sous-familles : cartes arrondies à fond clair (Vente-unique « Canapé ») ------------- */
.gp .gp-subtiles {
    margin-bottom: clamp(1.75rem, 2.5vw, 2.5rem) !important;
}
.gp .gp-subtiles__list {
    display: grid;
    grid-template-columns: repeat(var(--gp-cols, 6), minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gp .gp-subtiles__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}
.gp .gp-subtile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    height: 100%;
    padding: 1.1rem .75rem 1rem;
    overflow: hidden;
    border-radius: 24px;
    background: #f7f4f3;
    color: #2b2b2b;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.gp .gp-subtile:hover,
.gp .gp-subtile:focus {
    background: #efe9e7;
    color: #2b2b2b;
    text-decoration: none;
    transform: translateY(-2px);
}
.gp .gp-subtile:focus-visible {
    outline: 2px solid var(--gp-accent);
    outline-offset: 3px;
}
.gp .gp-subtile__media {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
}
.gp .gp-subtile__media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.gp .gp-subtile__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply; /* un visuel sur fond blanc se fond dans le gris clair de la carte */
}
.gp .gp-subtile__label {
    position: relative;
    display: block;
    max-width: 100%;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: break-word;
}
/* Variante « photo » : image plein cadre, libellé blanc superposé. */
.gp .gp-subtile--photo {
    justify-content: flex-end;
    min-height: 100%;
    padding: 0;
    background: #d9d1ca;
    color: #fff;
}
.gp .gp-subtile--photo:hover,
.gp .gp-subtile--photo:focus {
    background: #d9d1ca;
    color: #fff;
}
.gp .gp-subtile--photo .gp-subtile__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}
.gp .gp-subtile--photo .gp-subtile__image {
    object-fit: cover;
    mix-blend-mode: normal;
}
.gp .gp-subtile--photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 20, 15, .6) 0%, rgba(30, 20, 15, 0) 55%);
    content: '';
    pointer-events: none;
}
.gp .gp-subtile--photo .gp-subtile__label {
    z-index: 1;
    padding: 0 .6rem 1rem;
    color: #fff;
    font-weight: 600;
}
@media (max-width: 991px) {
    .gp .gp-subtiles__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --- Mobiles --------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .gp .gp-head {
        margin-bottom: 1.4rem;
    }
    .gp .gp-trends__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .gp .gp-trend__link {
        border-radius: 20px;
    }
    .gp .gp-trend--has-mobile .gp-trend__link {
        aspect-ratio: 3 / 4; /* visuel mobile dédié (750 × 1000) */
    }
    .gp .gp-trend__content {
        padding-bottom: 1.3rem;
    }
    .gp .gp-pgrid--bestsellers,
    .gp .gp-pgrid--recent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }
    .gp .gp-pcard__body {
        padding: .75rem;
    }
    .gp .gp-pcard__current {
        font-size: 1.05rem;
    }
    .gp .gp-subtiles__list {
        grid-template-columns: repeat(var(--gp-cols-m, 2), minmax(0, 1fr));
        gap: 8px;
    }
    .gp .gp-subtile {
        border-radius: 20px;
    }
}


/* ========================================================================
   Correctifs v0.3
   ======================================================================== */

/* Carte bannière + introduction SEO : aucun vide avant ni après le texte (les marges des blocs ne s'appliquent
   pas à l'intérieur de la carte). */
.gp .gp-universe-hero-card .gp-block {
    margin: 0 !important;
}
.gp .gp-universe-hero-card {
    margin-bottom: 2.25rem;
    padding-bottom: 14px;
}
.gp .gp-seo-intro {
    padding: 12px 18px 0;
}
.gp .gp-seo-intro__text p:empty,
.gp .gp-seo-intro__text p:has(> br:only-child) {
    display: none;
}
.gp .gp-seo-intro__text > p,
.gp .gp-seo-intro__text > div {
    margin: 0 0 .5rem;
}
.gp .gp-seo-intro__text > :last-child {
    margin-bottom: 0;
}
.gp .gp-seo-intro__more {
    margin-top: .4rem;
    margin-bottom: 0;
    padding-bottom: 2px;
}

/* Cartes produits : sobres, comme les listes natives (badges en haut à gauche, prix rouge, avis sous le prix). */
.gp .gp-pcard {
    border-color: #ececec;
    border-radius: 10px;
    box-shadow: none;
}
.gp .gp-pcard:hover {
    box-shadow: 0 6px 18px rgba(35, 28, 20, .1);
    transform: none;
}
.gp .gp-pcard__media {
    background: #fff;
}
.gp .gp-pcard__flags {
    top: .55rem;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}
.gp .gp-pcard__flag {
    padding: .22rem .65rem .22rem .6rem;
    border-radius: 0 999px 999px 0;
    background: #111;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    box-shadow: none;
    white-space: nowrap;
}
.gp .gp-pcard__flag--discount,
.gp .gp-pcard__flag--on-sale,
.gp .gp-pcard__flag--promo,
.gp .gp-pcard__flag--bon-plan,
.gp .gp-pcard__flag--vente-flash {
    background: #ff3b30;
}
.gp .gp-pcard__title {
    color: #4a4a4a;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.4;
}
.gp .gp-pcard__current {
    font-size: 1.35rem;
}
.gp .gp-pcard__regular {
    font-size: .95rem;
    font-weight: 700;
    color: #b5b5b5;
}
.gp .gp-pcard__reviews:empty {
    display: none;
}
.gp .gp-pcard__reviews {
    margin-top: .35rem;
    font-size: .78rem;
    line-height: 1.3;
}

/* --- Vignettes familles / sous-familles : cartes rectangulaires avec visuel et libellé --- */
.gp .gp-subtiles {
    margin-right: auto;
    margin-left: auto;
}
.gp .gp-subtiles__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: safe center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 0 .5rem !important;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gp .gp-subtiles__list::-webkit-scrollbar {
    display: none;
}
.gp .gp-subtiles__item {
    flex: 0 0 200px !important;
    width: 200px !important;
    min-width: 0;
    max-width: 200px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    scroll-snap-align: start;
}
.gp .gp-subtile,
.gp .gp-subtile--photo {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    padding: 8px 8px 9px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: #f7f4f3 !important;
    box-shadow: none !important;
    color: #1d1d1b !important;
    overflow: hidden !important;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gp .gp-subtile:hover,
.gp .gp-subtile:focus-visible {
    transform: translateY(-2px);
    background: #efe9e7 !important;
    box-shadow: 0 6px 16px rgba(35, 28, 20, .1);
    color: #1d1d1b !important;
}
.gp .gp-subtile:focus-visible {
    outline: 2px solid var(--gp-accent);
    outline-offset: 3px;
}
.gp .gp-subtile__media {
    position: relative !important;
    inset: auto !important;
    display: block;
    flex: 0 0 170px;
    width: 100% !important;
    height: 170px !important;
    max-height: 170px !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
}
.gp .gp-subtile__media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.gp .gp-subtile__image,
.gp .gp-subtile--photo .gp-subtile__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0;
    mix-blend-mode: multiply !important;
}
.gp .gp-subtile__label,
.gp .gp-subtile--photo .gp-subtile__label {
    position: relative !important;
    z-index: 2;
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.4em !important;
    margin: 6px 0 0 !important;
    padding: 0 2px !important;
    color: #1d1d1b !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}
/* Variante ambiance : photo recadrée au bord supérieur, libellé conservé dessous. */
.gp .gp-subtile--ambiance {
    height: 300px !important;
    min-height: 300px !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #f7f4f3 !important;
}
.gp .gp-subtile--ambiance .gp-subtile__media {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 4 / 5 !important;
    padding: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: transparent;
}
.gp .gp-subtile--ambiance .gp-subtile__image {
    object-fit: cover !important;
    object-position: center center !important;
    mix-blend-mode: normal !important;
}
.gp .gp-subtile--ambiance .gp-subtile__label {
    flex: 1 1 auto;
    margin: 7px 0 8px !important;
    padding: 0 7px !important;
    color: #1d1d1b !important;
}

/* Variante photo : image en plein cadre, titre blanc posé en bas de la carte. */
.gp .gp-subtile--photo {
    justify-content: flex-end !important;
    padding: 0 !important;
    background: #d9d1ca !important;
    color: #fff !important;
}
.gp .gp-subtile--photo .gp-subtile__media {
    position: absolute !important;
    inset: 0 !important;
    flex: none;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: inherit;
    background: transparent;
}
.gp .gp-subtile--photo .gp-subtile__image {
    object-fit: cover !important;
    object-position: center center !important;
    mix-blend-mode: normal !important;
}
.gp .gp-subtile--photo::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    background: linear-gradient(to top, rgba(30, 20, 15, .62) 0%, rgba(30, 20, 15, 0) 58%);
    content: '';
    pointer-events: none;
}
.gp .gp-subtile--photo .gp-subtile__label {
    flex: 0 0 auto;
    margin: auto 0 0 !important;
    padding: 0 8px 12px !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
/* Sans image : le libellé reste centré dans la carte rectangulaire. */
.gp .gp-subtile:not(:has(.gp-subtile__media)) .gp-subtile__label {
    min-height: 0 !important;
    margin: auto 0 !important;
    padding: 8px !important;
    border-radius: 0;
    background: transparent;
}
@media (max-width: 767px) {
    .gp .gp-subtiles__list {
        gap: 14px !important;
        padding: 0 0 .5rem !important;
    }
    .gp .gp-subtiles__item {
        flex-basis: 170px !important;
        width: 170px !important;
        max-width: 170px !important;
    }
    .gp .gp-subtile,
    .gp .gp-subtile--photo {
        height: 224px !important;
        min-height: 224px !important;
        padding: 7px 7px 8px !important;
        border-radius: 20px !important;
    }
    .gp .gp-subtile__media {
        flex-basis: 145px;
        height: 145px !important;
        max-height: 145px !important;
        border-radius: 10px;
    }
    .gp .gp-subtile__label,
    .gp .gp-subtile--photo .gp-subtile__label {
        font-size: .9rem;
        line-height: 1.3;
    }
    .gp .gp-subtile--ambiance {
        height: 265px !important;
        min-height: 265px !important;
        padding: 0 !important;
    }
    .gp .gp-subtile--ambiance .gp-subtile__media {
        border-radius: 20px 20px 0 0 !important;
    }
    .gp .gp-subtile--ambiance .gp-subtile__label {
        margin: 6px 0 7px !important;
        padding: 0 6px !important;
    }
    .gp .gp-subtile--photo {
        padding: 0 !important;
    }
    .gp .gp-subtile--photo .gp-subtile__media {
        height: 100% !important;
        max-height: none !important;
    }
}

/* --- Avis sous forme d'étoiles (repli quand le hook du thème n'affiche rien) --- */
.gp .gp-pcard__reviews {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.gp .gp-stars {
    position: relative;
    display: inline-block;
    font-size: .95rem;
    letter-spacing: 1px;
    line-height: 1;
}
.gp .gp-stars__bg {
    color: #d9d4d0;
}
.gp .gp-stars__fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f5a623;
    white-space: nowrap;
}
.gp .gp-stars__count {
    color: #6b6b6b;
    font-size: .78rem;
}

/* ========================================================================
   Pastilles : « À découvrir aussi » et filtres de sous-famille
   Gélules gris clair, texte sombre, centrées et sur plusieurs lignes si besoin.
   ======================================================================== */
.gp .gp-subcategory-links__title {
    margin: 0 0 1rem;
    text-align: left;
}

.gp .gp-tiles--subcategory_links .gp-tiles__list,
.gp .gp-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gp .gp-tiles--subcategory_links .gp-tiles__item,
.gp .gp-filter-pills__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gp .gp-subcategory-pill,
.gp .gp-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: #f4f4f4;
    color: #222;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.gp .gp-subcategory-pill:hover,
.gp .gp-subcategory-pill:focus-visible,
.gp .gp-filter-pill:hover,
.gp .gp-filter-pill:focus-visible {
    background: #e6e6e6;
    color: #111;
    text-decoration: none;
}

@media (max-width: 767px) {
    .gp .gp-tiles--subcategory_links .gp-tiles__list,
    .gp .gp-filter-pills {
        gap: .5rem;
    }

    .gp .gp-subcategory-pill,
    .gp .gp-filter-pill {
        min-height: 40px;
        padding: .55rem 1.2rem;
        font-size: .9rem;
    }
}

/* ========================================================================
   Mobile (v0.4) : carrousels à chevrons, Univers en colonne, texte SEO
   ======================================================================== */
.gp .gp-carousel {
    position: relative;
    min-width: 0;
}

.gp .gp-carousel__btn {
    display: none;
}

/* Texte SEO complet de bas de page : jamais tronqué ni masqué par un clamp / une hauteur fixe. */
.gp .gp-seo-bottom,
.gp .gp-seo-bottom__text {
    display: block;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

.gp .gp-seo-bottom__text * {
    max-height: none !important;
    overflow: visible;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

.gp .gp-seo-bottom__text {
    overflow-wrap: anywhere;
}

/* Ordinateur : introduction « complète » ; le lien et le bas de page propres au mobile sont masqués. */
.gp .gp-seo-intro--has-short .gp-seo-intro__text--short,
.gp .gp-seo-intro__more--mobile-only,
.gp .gp-seo-bottom--mobile-only {
    display: none;
}

@media (max-width: 767px) {
    /* Famille / sous-famille : introduction courte (100 caractères puis « … »). */
    .gp .gp-seo-intro--has-short .gp-seo-intro__text--full {
        display: none;
    }

    .gp .gp-seo-intro--has-short .gp-seo-intro__text--short,
    .gp .gp-seo-intro__more--mobile-only {
        display: block;
    }

    .gp .gp-seo-intro__more--mobile-only {
        display: inline-flex;
    }

    .gp .gp-seo-bottom--mobile-only {
        display: block;
    }

    /* Univers : les familles de produits se suivent en colonne, l'une sous l'autre. */
    .gp--universe .gp-tiles--family_tiles .gp-tiles__list {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row;
        gap: .9rem;
        overflow: visible;
        padding: 0;
    }

    .gp--universe .gp-tiles--family_tiles .gp-tiles__item {
        flex: none;
        width: 100%;
    }

    .gp--universe .gp-family-tile {
        aspect-ratio: 4 / 3;
    }

    /* Blog, meilleures ventes, produits consultés : défilement horizontal. */
    .gp .gp-blog__grid[data-gp-carousel],
    .gp .gp-pgrid[data-gp-carousel] {
        display: flex !important;
        flex-wrap: nowrap;
        gap: .85rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gp .gp-blog__grid[data-gp-carousel]::-webkit-scrollbar,
    .gp .gp-pgrid[data-gp-carousel]::-webkit-scrollbar,
    .gp .gp-subtiles__list[data-gp-carousel]::-webkit-scrollbar {
        display: none;
    }

    .gp .gp-blog__grid[data-gp-carousel] > .gp-blog__card {
        flex: 0 0 84%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .gp .gp-pgrid[data-gp-carousel] > .gp-pgrid__item {
        flex: 0 0 62%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .gp .gp-subtiles__list[data-gp-carousel] {
        scrollbar-width: none;
    }

    /* Chevrons : pastilles sombres arrondies posées sur les bords de la liste. */
    .gp .gp-carousel__btn {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin-top: -18px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(74, 66, 66, .88);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
        color: #fff;
        cursor: pointer;
    }

    .gp .gp-carousel__btn--prev { left: 4px; }
    .gp .gp-carousel__btn--next { right: 4px; }

    .gp .gp-carousel__btn.is-hidden {
        display: none;
    }

    .gp .gp-carousel__chevron {
        display: block;
        width: 9px;
        height: 9px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
    }

    .gp .gp-carousel__btn--next .gp-carousel__chevron { transform: translateX(-2px) rotate(45deg); }
    .gp .gp-carousel__btn--prev .gp-carousel__chevron { transform: translateX(2px) rotate(-135deg); }
}


/* ========================================================================
   Correctif mobile Univers : intro SEO et hauteur réelle du contenu
   Le wrapper Univers est injecté dans la description de catégorie du thème.
   On isole donc son contenu des floats et des éventuels line-clamp du thème.
   Famille et Sous-famille ne sont volontairement pas concernées.
   ======================================================================== */
.gp.gp--universe {
    display: flow-root !important;
    min-width: 0;
}

.gp--universe .gp-universe-hero-card {
    display: flow-root !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

.gp--universe .gp-seo-intro,
.gp--universe .gp-seo-intro__text,
.gp--universe .gp-seo-intro__text--full,
.gp--universe .gp-seo-intro__text--short,
.gp--universe .gp-seo-bottom,
.gp--universe .gp-seo-bottom__text {
    display: flow-root !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

.gp--universe .gp-seo-intro__text p,
.gp--universe .gp-seo-bottom__text p,
.gp--universe .gp-seo-bottom__text div {
    display: block !important;
    white-space: normal !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.gp--universe .gp-seo-intro__more {
    clear: both;
}

/* ========================================================================
   Correctif mobile Univers : le thème limite aussi le conteneur PARENT
   du hook. Les règles précédentes ne pouvaient agir que sur .gp--universe.
   On libère le conteneur qui contient effectivement la page Univers.
   ======================================================================== */
@media (max-width: 767px) {
    @supports selector(:has(*)) {
        .category-description:has(.gp--universe),
        #category-description:has(.gp--universe),
        .block-category:has(.gp--universe),
        .category-top-content:has(.gp--universe),
        .category-header:has(.gp--universe),
        *:has(> .gp.gp--universe) {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
            -webkit-line-clamp: unset !important;
            line-clamp: unset !important;
            -webkit-box-orient: initial !important;
        }
    }
}

/* ========================================================================
   Correctif ciblé : le thème peut tronquer la description de catégorie
   avant même d'arriver au bloc Gecodispages (max-height / overflow / clamp).
   On libère les ancêtres du bloc Univers et son texte d'introduction.
   ======================================================================== */
@media (max-width: 767px) {
    /* Les wrappers du thème qui contiennent la page Univers ne doivent pas
       imposer la hauteur de l'ancienne description native de catégorie. */
    body#category *:has(.gp.gp--universe),
    body.page-category *:has(.gp.gp--universe),
    body *:has(.gp.gp--universe),
    #category :has(.gp.gp--universe) {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: initial !important;
    }

    /* Le texte d'introduction doit reprendre toute sa hauteur naturelle.
       La spécificité renforcée permet de passer avant les règles du thème. */
    body .gp.gp--universe .gp-universe-hero-card .gp-seo-intro,
    body .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text,
    body .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full,
    body .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full p,
    body .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full div,
    #category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro,
    #category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text,
    #category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full,
    #category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full p,
    #category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full div,
    body#category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro,
    body#category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text,
    body#category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full,
    body#category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full p,
    body#category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full div,
    body.page-category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro,
    body.page-category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text,
    body.page-category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full,
    body.page-category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full p,
    body.page-category .gp.gp--universe .gp-universe-hero-card .gp-seo-intro__text--full div {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: normal !important;
        text-overflow: clip !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: initial !important;
    }
}

/* Ancre « Voir plus » : le titre ne doit pas passer sous le menu collant. */
.gp .gp-seo-bottom, #gp-seo-bottom { scroll-margin-top: 130px; }
@media (max-width: 767px) {
    .gp .gp-seo-bottom, #gp-seo-bottom { scroll-margin-top: 90px; }
}