/* amazon-card.css
 * Feuille de la carte publicitaire Amazon « produit », sortie de template_parts/banner_amazon_product.php le 18/11/2026
 * (elle était écrite en ligne dans CHAQUE page : 41 Ko de HTML). Chargée par
 * rk_amazon_css_link() (libs/rk_amazon_products.lib.php), hors minification
 * WP Rocket : une modification ici est servie dès l'envoi du fichier (?ver = date du fichier).
 */
.rkp-rot__item[hidden] { display: none !important; }

.rkp {
    --rkp-ink: #141a22;
    --rkp-muted: #5d6b7d;
    --rkp-soft: #98a2b3;
    --rkp-line: #eceef2;
    --rkp-amz: #ff8a00;
    --rkp-amz2: #ffb100;
    --rkp-prime: #00a8e1;
    --rkp-ok: #0f8a3a;

    position: relative;
    margin: 32px 0;
    border-radius: 24px;
    overflow: hidden;
    /* clip et non hidden : overflow:hidden fait de la card un conteneur de
       defilement, et les animations "animation-timeline: view()" de ses
       enfants s y figeaient (CTA bloque a 81 % d opacite, mention legale a
       26 %, constate le 01/11/2026). clip coupe pareil sans ce defaut ;
       hidden reste en repli pour les navigateurs qui l ignorent. */
    overflow: clip;
    background: #fff;
    isolation: isolate;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, .04),
        0 12px 28px -12px rgba(16, 24, 40, .14),
        inset 0 0 0 1px #edf0f4;
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease;
}

.rkp:hover {
    transform: translateY(-3px);
    box-shadow:
        0 2px 4px rgba(16, 24, 40, .05),
        0 26px 48px -16px rgba(16, 24, 40, .22),
        inset 0 0 0 1px #e6eaf0;
}

/* -------- Media : image plein cadre -------- */
.rkp__media {
    position: relative;
    overflow: hidden;
    background: #f2f5f9;
}

.rkp__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.rkp:hover .rkp__media img { transform: scale(1.045); }

/* Voile haut : garantit la lisibilite du badge sur n importe quelle photo */
.rkp__media::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    background: linear-gradient(180deg, rgba(10, 15, 22, .28), transparent);
    pointer-events: none;
}

.rkp__media-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

/* -------- Badge, pose sur l image -------- */
.rkp__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #8a5200;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(10, 15, 22, .18), inset 0 0 0 1px rgba(255, 177, 0, .45);
}

.rkp__badge-ico { width: 13px; height: 13px; color: var(--rkp-amz); flex-shrink: 0; }

/* =======================================================================
   VISUEL ANIME "VENTES FLASH" — 100 % CSS, aucun fichier image
   Toutes les tailles sont exprimees en unites de conteneur (cqw) : le bloc
   reste lisible aussi bien dans la colonne de 150 px de la variante inline
   que dans les 460 px du hero. Une valeur de repli en px precede chaque
   declaration pour les navigateurs sans container queries.
   Seuls transform et opacity sont animes (compositeur, pas de reflow).
   ======================================================================= */
.rkp__media--flash {
    container-type: size;
    background: #0a1526;
}

.rkf {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 90% at 50% 118%, #ff9900 0%, #d96b00 32%, transparent 68%),
        linear-gradient(165deg, #12263f 0%, #0a1526 55%, #060d18 100%);
    pointer-events: none;
}

/* Rayons en rotation lente, tres attenues */
.rkf__rays {
    position: absolute;
    left: 50%;
    top: 108%;
    width: 200%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: repeating-conic-gradient(from 0deg,
        rgba(255, 178, 60, .16) 0deg 7deg,
        transparent 7deg 20deg);
    animation: rkf-rotate 26s linear infinite;
    opacity: .55;
}

/* Halo qui respire derriere le texte */
.rkf__glow {
    position: absolute;
    left: 50%;
    top: 56%;
    width: 118%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(255, 165, 0, .42) 0%, transparent 62%);
    animation: rkf-breathe 3.4s ease-in-out infinite;
}

/* Balayage lumineux diagonal */
.rkf__sweep {
    position: absolute;
    inset: -40% -60%;
    background: linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, .30) 50%, transparent 58%);
    translate: -60% 0;
    animation: rkf-sweep 5.2s ease-in-out infinite;
}

/* Eclair blanc bref, cale sur le pic du logo */
.rkf__strike {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .85) 0%, transparent 45%);
    opacity: 0;
    animation: rkf-strike 4.6s ease-out infinite;
}

/* Etincelles qui montent */
.rkf__spark {
    position: absolute;
    bottom: -6%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffd48a;
    box-shadow: 0 0 8px 2px rgba(255, 190, 90, .8);
    opacity: 0;
    animation: rkf-spark 4.4s ease-out infinite;
}
.rkf__spark--1 { left: 16%; animation-delay: .0s;  }
.rkf__spark--2 { left: 33%; animation-delay: 1.5s; }
.rkf__spark--3 { left: 54%; animation-delay: .7s;  }
.rkf__spark--4 { left: 72%; animation-delay: 2.3s; }
.rkf__spark--5 { left: 87%; animation-delay: 3.2s; }

.rkf__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6%;
}

.rkf__bolt {
    width: 34px;
    width: clamp(20px, 15cqw, 52px);
    height: auto;
    color: #ffd166;
    filter: drop-shadow(0 0 10px rgba(255, 180, 60, .9));
    animation: rkf-bolt 4.6s ease-out infinite;
}

.rkf__title {
    display: block;
    margin-top: 4%;
    line-height: .92;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.rkf__title em {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    font-size: clamp(11px, 8.5cqw, 24px);
    letter-spacing: .12em;
    opacity: .92;
}
.rkf__title b {
    display: block;
    font-weight: 900;
    font-size: 30px;
    font-size: clamp(19px, 17cqw, 54px);
    /* Reflet dore qui traverse le mot */
    background: linear-gradient(100deg, #fff 30%, #ffd166 46%, #fff 62%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rkf-shine 5.2s ease-in-out infinite;
}

.rkf__sub {
    display: block;
    margin-top: 6%;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, .95);
    font-size: 10px;
    font-size: clamp(8px, 3.6cqw, 13px);
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Colonne etroite (variante inline) : on ne garde que l essentiel */
@container (max-width: 230px) {
    .rkf__sub  { display: none; }
    .rkf__rays { opacity: .38; }
}

@keyframes rkf-rotate { to { rotate: 360deg; } }

@keyframes rkf-breathe {
    0%, 100% { opacity: .55; scale: .94; }
    50%      { opacity: .95; scale: 1.06; }
}

@keyframes rkf-sweep {
    0%, 58%  { translate: -60% 0; }
    88%, 100%{ translate:  60% 0; }
}

@keyframes rkf-strike {
    0%, 40%   { opacity: 0; }
    43%       { opacity: .55; }
    46%       { opacity: .08; }
    49%       { opacity: .34; }
    58%, 100% { opacity: 0; }
}

@keyframes rkf-bolt {
    0%, 38%   { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(255,180,60,.9)); }
    43%       { transform: scale(1.22) rotate(-4deg); filter: drop-shadow(0 0 22px rgba(255,214,120,1)); }
    49%       { transform: scale(1.06) rotate(2deg); }
    56%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(255,180,60,.9)); }
}

@keyframes rkf-shine {
    0%, 20%   { background-position: 160% 0; }
    70%, 100% { background-position: -60% 0; }
}

@keyframes rkf-spark {
    0%       { opacity: 0; translate: 0 0; scale: .6; }
    12%      { opacity: 1; }
    70%      { opacity: .9; }
    100%     { opacity: 0; translate: 6px -180px; scale: .3; }
}

/* Hors ecran : le JS retire .is-live et tout se fige (economie CPU) */
.rkp__media--flash:not(.is-live) .rkf *,
.rkp__media--flash:not(.is-live) .rkf { animation-play-state: paused; }

/* =======================================================================
   VISUEL "RECHERCHE" — 100 % CSS, aucun fichier image
   Montre le geste que produit le clic : une recherche Amazon sur un
   mot-cle. Tailles en unites de conteneur (cqw) avec repli en px, comme
   le visuel Ventes Flash, pour rester lisible de 150 px a 460 px de large.
   ======================================================================= */
.rkp__media--search {
    container-type: size;
    background: #16202e;
}

.rks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 80% at 50% 115%, rgba(255, 153, 0, .30) 0%, transparent 62%),
        linear-gradient(170deg, #203145 0%, #16202e 60%, #0f1823 100%);
    pointer-events: none;
}

/* Trame discrete, evoque une grille de resultats */
.rks__grid {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 26px 26px;
    animation: rks-drift 18s linear infinite;
}

.rks__glow {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 120%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(255, 170, 40, .26) 0%, transparent 60%);
    animation: rks-breathe 4.2s ease-in-out infinite;
}

.rks__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7%;
    width: 100%;
    padding: 8%;
}

/* Barre de recherche stylisee */
.rks__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 153, 0, .35);
}

.rks__loupe {
    width: 15px;
    width: clamp(12px, 6cqw, 20px);
    height: auto;
    color: #e47911;
    flex-shrink: 0;
}

.rks__kw {
    font-size: 12px;
    font-size: clamp(9px, 5.4cqw, 17px);
    font-weight: 700;
    letter-spacing: -.01em;
    color: #16202e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Curseur clignotant : donne l impression d une frappe en cours */
.rks__caret {
    width: 2px;
    height: 1em;
    flex-shrink: 0;
    background: #e47911;
    animation: rks-caret 1.1s steps(1) infinite;
}

.rks__hint {
    font-size: 10px;
    font-size: clamp(8px, 3.4cqw, 13px);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

/* Colonne etroite (variante inline) : la mention passe a la trappe */
@container (max-width: 230px) {
    .rks__hint { display: none; }
    .rks__inner { padding: 6%; }
}

@keyframes rks-drift   { to { transform: translate(26px, 26px); } }
@keyframes rks-breathe { 0%, 100% { opacity: .6; scale: .95; } 50% { opacity: 1; scale: 1.05; } }
@keyframes rks-caret   { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Hors ecran : fige tout (meme logique que le visuel Ventes Flash) */
.rkp__media--search:not(.is-live) .rks,
.rkp__media--search:not(.is-live) .rks * { animation-play-state: paused; }

/* -------- Mention "image generee par IA" -------- */
.rkp__ai {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px 4px 7px;
    border-radius: 999px;
    background: rgba(12, 17, 24, .62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, .94);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    /* Laisse passer le clic vers le lien qui couvre le visuel */
    pointer-events: none;
}

.rkp__ai-ico { width: 11px; height: 11px; flex-shrink: 0; opacity: .9; }

/* Reflet qui balaie le badge toutes les 6 s — discret mais capte l oeil */
.rkp__badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: rkp-badge-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rkp-badge-shine {
    0%, 62%   { transform: translateX(-120%); }
    78%, 100% { transform: translateX(120%); }
}

/* -------- Body -------- */
.rkp__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 12px;
}

.rkp__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rkp__kicker-sep { flex: 1; }

.rkp__tag {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rkp-soft);
    font-weight: 800;
}

.rkp__prime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(0, 168, 225, .09);
    color: var(--rkp-prime);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
}

.rkp__prime-word { font-style: italic; letter-spacing: -.02em; }
.rkp__prime-check { width: 13px; height: 13px; }

.rkp__title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--rkp-ink);
}

.rkp__title a { color: inherit; text-decoration: none; }
.rkp__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.rkp__subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--rkp-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------- Preuve sociale (masquee par defaut, cf. en-tete) -------- */
.rkp__proof {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: var(--rkp-muted);
}

.rkp__stars {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 2px;
    color: #dfe3ea;
}
.rkp__stars::before { content: "★★★★★"; }
.rkp__stars-on {
    position: absolute;
    inset: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--rkp-amz2);
}

.rkp__score { font-weight: 800; color: var(--rkp-ink); }
.rkp__dot { width: 3px; height: 3px; border-radius: 50%; background: #cdd3dc; display: inline-block; }

/* -------- Benefices : 4 max en desktop -------- */
.rkp__features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
}

.rkp__features li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px;
    align-items: start;
    font-size: 13px;
    line-height: 1.45;
    color: #33404f;
}

.rkp__features li:nth-child(n+5) { display: none; }

.rkp__check { width: 16px; height: 16px; margin-top: 1px; color: var(--rkp-ok); flex-shrink: 0; }

/* -------- Barre d action : prix + CTA sur la meme ligne -------- */
.rkp__action {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--rkp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rkp__price { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.rkp__price-val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--rkp-ink); }
.rkp__price-note { font-size: 11px; color: var(--rkp-soft); font-weight: 600; }

/* Accroche affichee a la place du prix : evite que le CTA s etire sur
   toute la largeur des cards pleine page (effet "barre" peu engageant). */
.rkp__hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rkp-soft);
}
.rkp__hint-ico { width: 15px; height: 15px; flex-shrink: 0; }

/* -------- CTA -------- */
.rkp__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 54px;
    min-width: 230px;
    padding: 0 30px;
    border-radius: 999px;
    overflow: hidden;
    white-space: nowrap;
    /* !important : le reset ".rkp a { background: none }" plus bas ecrasait
       le degrade et le bouton ressortait blanc sur les pages listings. */
    background: linear-gradient(115deg, #ff7a00 0%, #ffb100 45%, #ff8a00 100%) !important;
    background-size: 220% 100% !important;
    color: #241500 !important;
    text-decoration: none !important;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 10px 22px -10px rgba(255, 138, 0, .75), inset 0 -2px 0 rgba(0, 0, 0, .12);
    transition: transform .22s cubic-bezier(.2, .7, .3, 1), filter .22s ease, background-position .5s ease;
    animation: rkp-cta-glow 3.8s ease-in-out infinite;
}

/* Halo qui respire : attire l oeil sans clignoter */
@keyframes rkp-cta-glow {
    0%, 100% { box-shadow: 0 10px 22px -10px rgba(255, 138, 0, .75), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 0 0 0 rgba(255, 145, 0, .32); }
    55%      { box-shadow: 0 12px 26px -10px rgba(255, 138, 0, .85), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 0 0 10px rgba(255, 145, 0, 0); }
}

.rkp__cta:hover {
    transform: translateY(-2px) scale(1.015);
    filter: saturate(1.08) brightness(1.03);
    background-position: 100% 0 !important;
    animation-play-state: paused;
}

.rkp__cta:active { transform: translateY(0) scale(.99); }

.rkp__cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 138, 0, .85);
    animation: none;
}

.rkp__cta-label { position: relative; z-index: 1; }

.rkp__cta-arrow {
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    transition: transform .22s cubic-bezier(.2, .7, .3, 1);
}
.rkp__cta:hover .rkp__cta-arrow { transform: translateX(4px); }

.rkp__cta-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: rkp-shine 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rkp-shine {
    0%, 25%   { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

/* -------- Reassurance + mention legale -------- */
.rkp__trust {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 11.5px;
    color: #8a94a4;
}
.rkp__trust span { display: inline-flex; align-items: center; gap: 5px; }
.rkp__trust .rkp__check { width: 13px; height: 13px; margin: 0; }
.rkp__trust b { color: var(--rkp-muted); font-weight: 700; }

.rkp__legal {
    margin: 10px 0 0;
    font-size: 10.5px;
    line-height: 1.5;
    color: #a3abb8;
}

/* =======================================================================
   VARIANTE HERO : 2 colonnes image + texte (desktop), stack mobile
   ======================================================================= */
.rkp--hero {
    display: grid;
    /* clamp au lieu d un pourcentage : sur les listings pleine largeur
       (~1500 px) la colonne image plafonne a 460 px au lieu d occuper
       600 px, et le texte recupere la place. Sur une colonne etroite
       (fiche resto ~720 px) elle redescend a ~250 px. Un seul reglage,
       pas de media query intermediaire. */
    grid-template-columns: clamp(240px, 34%, 460px) minmax(0, 1fr);
    align-items: stretch;
}

.rkp--hero .rkp__media { min-height: 300px; }

/* Le kicker demarre un peu plus haut : le bloc texte respire mieux en
   haut de card sans toucher aux marges laterales. */
.rkp--hero .rkp__body { padding-top: 12px; }

/* Le titre grandit avec la place disponible, sans jamais devenir enorme */
.rkp--hero .rkp__title {
    font-size: clamp(20px, 0.9vw + 14px, 23px);
    margin-bottom: 10px !important;
}

/* Confort de lecture : au-dela, les lignes deviennent trop longues */
.rkp--hero .rkp__subtitle { max-width: 80ch; }
.rkp--hero .rkp__features { max-width: 1000px; }

@media (max-width: 768px) {
    .rkp--hero { grid-template-columns: 1fr; border-radius: 20px; }
    /* align-self: start est indispensable ici. Le parent est en
       "align-items: stretch" : l etirement l emporte sur aspect-ratio, et
       comme l image est en position absolute elle ne contribue a aucune
       hauteur — le visuel se retrouvait ecrase a 0 px en mobile. */
    .rkp--hero .rkp__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
        align-self: start;
        width: 100%;
    }
    .rkp--hero .rkp__body { padding: 18px; }
    .rkp--hero .rkp__title { font-size: 18.5px; line-height: 1.3; margin-bottom: 10px; }
    .rkp--hero .rkp__subtitle { font-size: 13.5px; margin-bottom: 12px; }
    .rkp--hero .rkp__features { grid-template-columns: 1fr; gap: 9px; margin-bottom: 16px; }
    .rkp--hero .rkp__features li:nth-child(n+4) { display: none; }
    .rkp--hero .rkp__action { gap: 12px; padding-top: 16px; }
    .rkp--hero .rkp__price-val { font-size: 24px; }
    /* Prix et CTA restent cote a cote : le prix ne sort pas de l ecran
       au moment ou l on clique. */
    .rkp--hero .rkp__cta { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; }
    /* Sans prix, l accroche cede la place : le CTA occupe toute la largeur,
       qui est la bonne ergonomie au pouce sur petit ecran. */
    .rkp--hero .rkp__hint { display: none; }
    .rkp--hero .rkp__trust { gap: 10px; font-size: 11px; }
}

/* Colonne de texte etroite au-dela de 768 px (fiche resto en 2 colonnes
   vers 1 024 px : 310 px utiles) : accroche (~90 px) + gap + CTA a
   230 px minimum ne tenaient pas, le CTA debordait de 8 px et etait
   rogne. On mesure la place reelle du bloc texte, pas l ecran, et on
   applique la meme regle qu en mobile. */
.rkp--hero .rkp__body { container: rkp-body / inline-size; }
@container rkp-body (max-width: 400px) {
    .rkp--hero .rkp__hint { display: none; }
    .rkp--hero .rkp__cta { flex: 1; min-width: 0; padding: 0 18px; }
}

/* =======================================================================
   VARIANTE SIDEBAR : colonne verticale compacte
   ======================================================================= */
.rkp--sidebar { max-width: 320px; }
.rkp--sidebar .rkp__media { aspect-ratio: 4 / 3; }
.rkp--sidebar .rkp__body { padding: 18px; }
.rkp--sidebar .rkp__title { font-size: 16.5px; line-height: 1.3; }
.rkp--sidebar .rkp__subtitle { font-size: 13px; margin-bottom: 12px; -webkit-line-clamp: 3; }
.rkp--sidebar .rkp__features { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
.rkp--sidebar .rkp__features li { font-size: 12.5px; }
.rkp--sidebar .rkp__features li:nth-child(n+4) { display: none; }
.rkp--sidebar .rkp__action { flex-direction: column; align-items: stretch; gap: 12px; }
.rkp--sidebar .rkp__price { align-items: center; }
.rkp--sidebar .rkp__cta { width: 100%; min-height: 48px; font-size: 14.5px; }
.rkp--sidebar .rkp__trust { font-size: 11px; gap: 10px; }
.rkp--sidebar .rkp__legal { font-size: 10px; }

/* =======================================================================
   VARIANTE INLINE : bandeau horizontal compact
   ======================================================================= */
.rkp--inline {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
    margin: 28px 0;
    border-radius: 20px;
}

.rkp--inline .rkp__media { min-height: 100%; }
.rkp--inline .rkp__media::after { height: 70px; }
.rkp--inline .rkp__badge { top: 10px; left: 10px; font-size: 9.5px; padding: 5px 9px 5px 7px; }
.rkp--inline .rkp__badge-ico { width: 11px; height: 11px; }
/* Colonne de 150 px : la mention doit tenir sans deborder */
.rkp--inline .rkp__ai { right: 6px; bottom: 6px; font-size: 8.5px; padding: 3px 7px 3px 5px; gap: 4px; }
.rkp--inline .rkp__ai-ico { width: 9px; height: 9px; }

.rkp--inline .rkp__body {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
    align-items: center;
}

.rkp--inline .rkp__kicker,
.rkp--inline .rkp__title,
.rkp--inline .rkp__subtitle,
.rkp--inline .rkp__proof { grid-column: 1; }

.rkp--inline .rkp__action {
    grid-column: 2;
    grid-row: 1 / span 99;
    align-self: center;
    margin: 0;
    padding: 0;
    border-top: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.rkp--inline .rkp__kicker { margin-bottom: 6px; }
.rkp--inline .rkp__title { font-size: 16.5px; margin-bottom: 4px; }
.rkp--inline .rkp__subtitle { font-size: 13px; margin-bottom: 6px; }
.rkp--inline .rkp__proof { margin-bottom: 0; font-size: 12px; }
.rkp--inline .rkp__price-val { font-size: 21px; }
.rkp--inline .rkp__cta { min-height: 46px; padding: 0 22px; font-size: 14.5px; }
.rkp--inline .rkp__features,
.rkp--inline .rkp__trust,
.rkp--inline .rkp__legal { display: none; }

@media (max-width: 640px) {
    .rkp--inline { grid-template-columns: 1fr; }
    /* Meme piege que le hero mobile : sans align-self, l etirement de la
       grille annule aspect-ratio et le visuel disparait. */
    .rkp--inline .rkp__media { min-height: 0; aspect-ratio: 16 / 9; align-self: start; width: 100%; }
    .rkp--inline .rkp__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
    .rkp--inline .rkp__subtitle { -webkit-line-clamp: 2; }
    .rkp--inline .rkp__action {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-top: 8px;
    }
    .rkp--inline .rkp__cta { flex: 1; min-height: 50px; justify-content: center; }
}

/* =======================================================================
   RESET : neutralise les styles parents (corps d article) qui bavent
   dans la card — lettrine, fleche lien externe, puces de liste...
   ======================================================================= */
.rkp p:first-of-type::first-letter {
    float: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    font-weight: inherit !important;
    color: inherit !important;
}
.rkp a[target="_blank"]::after,
.rkp a[target="_blank"]:not(.rk-share__btn)::after { content: none !important; }
/* :not(.rkp__cta) — sans cette exclusion le bouton perd son degrade et
   ressort blanc (constate sur les pages listings). */
.rkp a:not(.rkp__cta) { background: none !important; }
.rkp ul, .rkp ol { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }
.rkp ul li, .rkp ol li { padding-left: 0 !important; }
.rkp ul li::before, .rkp ol li::before { content: none !important; }

/* =======================================================================
   ANIMATIONS D ENTREE — pilotees par le scroll, sans JavaScript
   (animation-timeline: view()). Sous @supports : les navigateurs qui ne
   gerent pas les timelines de scroll affichent la card normalement, il n y
   a jamais de contenu bloque en opacity 0.
   On anime "translate" et non "transform", pour ne pas entrer en conflit
   avec le translateY du survol.
   ======================================================================= */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .rkp {
            animation: rkp-in linear both;
            animation-timeline: view();
            animation-range: entry 4% cover 20%;
        }

        .rkp__body > * {
            animation: rkp-rise linear both;
            animation-timeline: view();
        }
        .rkp__kicker    { animation-range: entry 8%  cover 20%; }
        .rkp__title     { animation-range: entry 10% cover 22%; }
        .rkp__subtitle  { animation-range: entry 12% cover 24%; }
        .rkp__proof     { animation-range: entry 14% cover 26%; }
        .rkp__features  { animation-range: entry 16% cover 28%; }
        .rkp__action    { animation-range: entry 18% cover 30%; }
        .rkp__trust,
        .rkp__legal     { animation-range: entry 20% cover 32%; }

        /* Les benefices apparaissent en cascade */
        .rkp__features li {
            animation: rkp-rise linear both;
            animation-timeline: view();
        }
        .rkp__features li:nth-child(1) { animation-range: entry 16% cover 26%; }
        .rkp__features li:nth-child(2) { animation-range: entry 18% cover 28%; }
        .rkp__features li:nth-child(3) { animation-range: entry 20% cover 30%; }
        .rkp__features li:nth-child(4) { animation-range: entry 22% cover 32%; }
    }
}

@keyframes rkp-in {
    from { opacity: 0; translate: 0 30px; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes rkp-rise {
    from { opacity: 0; translate: 0 12px; }
    to   { opacity: 1; translate: 0 0; }
}

/* -------- Accessibilite : mouvement reduit -------- */
@media (prefers-reduced-motion: reduce) {
    .rkf,
    .rkf *,
    .rks,
    .rks *,
    .rkp,
    .rkp__body > *,
    .rkp__features li,
    .rkp__badge::after,
    .rkp__cta,
    .rkp__cta-arrow,
    .rkp__cta-shine,
    .rkp__media img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        translate: none !important;
        opacity: 1 !important;
    }
}

/* =======================================================================
   GARDE ANTI-RESET DE LA PAGE HOTE — a laisser en fin de feuille
   -----------------------------------------------------------------------
   La card est deposee dans des gabarits qui resetent l espacement des
   titres et paragraphes avec une specificite superieure a la sienne.
   Constate sur les fiches restaurants (single-restaurant-new.css) :

     body.single-restaurants.wp-singular .rk-root h1,h2,h3,h4 { margin:0 }
                                                      -> (0,3,2)
     .rkp--hero .rkp__title                           -> (0,2,0)  perdu

   Le titre (h3), le sous-titre (p) et la mention legale (p) perdaient
   ainsi toutes leurs marges : la card paraissait tassee, et les reglages
   d espacement du composant restaient sans effet.

   Pas de surenchere de specificite ici : le composant doit rester
   previsible quel que soit le gabarit qui l accueille, donc il reaffirme
   son propre rythme vertical. Tous les cas responsive sont regroupes
   dans ce bloc pour que l ordre des declarations reste lisible.
   ======================================================================= */
.rkp .rkp__title            { margin: 0 0 12px !important; }
.rkp .rkp__subtitle         { margin: 0 0 14px !important; }
.rkp .rkp__legal            { margin: 10px 0 0 !important; }

.rkp--hero .rkp__title      { margin-bottom: 12px !important; }
.rkp--sidebar .rkp__title   { margin-bottom: 10px !important; }
.rkp--sidebar .rkp__subtitle{ margin-bottom: 12px !important; }
.rkp--inline .rkp__title    { margin-bottom: 4px !important; }
.rkp--inline .rkp__subtitle { margin-bottom: 6px !important; }

@media (max-width: 768px) {
    .rkp--hero .rkp__title    { margin-bottom: 10px !important; }
    .rkp--hero .rkp__subtitle { margin-bottom: 12px !important; }
}

/* =======================================================================
   REFONTE 01/11/2026 — volontairement APRES la garde ci-dessus
   -----------------------------------------------------------------------
   Palette alignee sur la fiche 2026 (encre chaude), CTA en aplat franc,
   mention legale lisible, badge du hero sorti de la photo (rkp__eyebrow)
   et, en mobile, hero compact : vignette a gauche, texte a droite, CTA
   pleine largeur (~320 px de haut au lieu de ~670).
   ======================================================================= */
.rkp {
    --rkp-ink: #1a1612;
    --rkp-muted: #4a4239;
    --rkp-soft: #6f665a;
    --rkp-line: rgba(26, 22, 18, .10);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(20, 15, 10, .05),
        0 8px 24px -12px rgba(20, 15, 10, .14),
        inset 0 0 0 1px rgba(26, 22, 18, .10);
}
.rkp:hover { transform: translateY(-2px); }

.rkp__tag { font-size: 10.5px; letter-spacing: .12em; font-weight: 700; color: var(--rkp-soft); }
.rkp__prime { background: #f4f1ea; color: var(--rkp-ink); }
.rkp__features li { color: #3d362f; }
.rkp__check { color: #12a150; }
.rkp__hint { color: var(--rkp-soft); }
.rkp__media::after { display: none; }

.rkp__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 750;
    color: #a35a00;
}
.rkp__eyebrow svg { width: 13px; height: 13px; color: #f08a00; flex-shrink: 0; }

.rkp--hero .rkp__title { font-size: clamp(19px, 0.6vw + 15px, 22px); line-height: 1.25; letter-spacing: -.015em; }

/* CTA : aplat franc, sans reflet ni halo en boucle */
.rkp__cta {
    min-height: 50px;
    background: #ffa41c !important;
    color: #1a1200 !important;
    font-size: 15px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 6px 16px -8px rgba(240, 130, 0, .7);
    animation: none;
}
.rkp__cta:hover { background: #f59300 !important; transform: translateY(-1px); filter: none; }
.rkp__cta-shine { display: none; }

.rkp__legal { font-size: 11px; color: var(--rkp-soft); }

/* Entree au scroll : chaque element est entierement opaque des qu il est
   entierement visible (avant : seulement a ~30 % de la traversee de
   l ecran, le CTA restait a demi transparent en bas d ecran). */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .rkp__body > *,
        .rkp__features li { animation-range: entry 0% entry 100% !important; }
    }
}
.rkp--sidebar .rkp__legal { font-size: 10.5px; }
/* 320 px de large : l accroche + le CTA a 230 px minimum debordaient */
.rkp--sidebar .rkp__hint { display: none; }
.rkp--sidebar .rkp__cta { flex: 1; min-width: 0; padding: 0 18px; }

@media (max-width: 768px) {
    .rkp.rkp--hero {
        grid-template-columns: 112px minmax(0, 1fr);
        column-gap: 14px;
        padding: 14px;
        border-radius: 16px;
    }
    .rkp--hero .rkp__media {
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: start;
        aspect-ratio: auto;
        min-height: 0;
        width: 112px;
        background: none;
        overflow: visible;
    }
    .rkp--hero .rkp__media img {
        position: static;
        width: 112px;
        height: 112px;
        border-radius: 12px;
    }
    .rkp--hero:hover .rkp__media img { transform: none; }
    /* Visuels CSS (recherche, ventes flash) : pas d image pour donner la
       hauteur, on fixe la vignette. */
    .rkp--hero .rkp__media--search,
    .rkp--hero .rkp__media--flash {
        height: 112px;
        border-radius: 12px;
        overflow: hidden;
    }
    .rkp--hero .rkp__media--search { background: #16202e; }
    .rkp--hero .rkp__media--flash  { background: #0a1526; }
    .rkp--hero .rkp__ai {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 6px;
        padding: 0;
        background: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        color: var(--rkp-soft);
        font-size: 10px;
        font-weight: 600;
    }
    .rkp--hero .rkp__ai-ico { display: none; }

    /* Le corps se dissout dans la grille de la card */
    .rkp--hero .rkp__body { display: contents; }
    .rkp--hero .rkp__kicker,
    .rkp--hero .rkp__eyebrow,
    .rkp--hero .rkp__title,
    .rkp--hero .rkp__proof,
    .rkp--hero .rkp__features { grid-column: 2; }
    .rkp--hero .rkp__kicker { margin-bottom: 6px; }
    .rkp--hero .rkp__tag { font-size: 9.5px; letter-spacing: .1em; }
    .rkp--hero .rkp__tag-l,
    .rkp--hero .rkp__prime,
    .rkp--hero .rkp__subtitle { display: none; }
    .rkp--hero .rkp__eyebrow { margin-bottom: 4px; font-size: 11.5px; }
    .rkp.rkp--hero .rkp__title { font-size: 16px; line-height: 1.3; margin-bottom: 8px !important; }
    .rkp--hero .rkp__features { gap: 5px; margin-bottom: 0; }
    .rkp--hero .rkp__features li { grid-template-columns: 14px 1fr; gap: 6px; font-size: 12.5px; }
    .rkp--hero .rkp__features li:nth-child(n+3) { display: none; }
    .rkp--hero .rkp__features .rkp__check { width: 14px; height: 14px; }
    .rkp--hero .rkp__action,
    .rkp--hero .rkp__trust,
    .rkp--hero .rkp__legal { grid-column: 1 / -1; }
    .rkp--hero .rkp__action { border-top: 0; padding-top: 14px; }
    .rkp--hero .rkp__cta { min-height: 46px; }
    .rkp.rkp--hero .rkp__legal { margin: 8px 0 0 !important; font-size: 10.5px; }
}
