/*
 * CookinBreak : page d'accueil (/). Balisage : app/views/home/page.php · comportement : static/js/pages/home.js
 * ------------------------------------------------------------------
 * Préfixe hp-. Deux bandeaux au choix (constante CB_HOME_HERO, app/lib/home.php) :
 *   - hp-mo, « moment » : fond clair chaleureux, question selon l'heure, pastilles et paquet de cartes d'idées ;
 *   - hp-hero, « classique » : l'identité d'origine, fond encre, titre « qui vous correspond » en turquoise clair, mosaïque
 *     de photos inclinée qui défile (teintes fixes : fond toujours sombre, même en mode clair).
 * Tout le reste lit les tokens du design system (mode sombre automatique).
 * La feuille globale (g-style) pose `* { font-family: Poppins }` : tout élément en Unbounded, liens compris, déclare sa police.
 */

.hp {
  --hp-ink: #111827;
  --hp-ink-2: #172426;
  --hp-teal-mid: #a8dfe3;
  --hp-gutter: 24px;
  /* teintes des régimes (icône sur fond doux) */
  --hp-orange: #c2410c; --hp-orange-bg: #fff1e6;
  --hp-green: #15803d;  --hp-green-bg: #e7f7ec;
  --hp-amber: #a16207;  --hp-amber-bg: #fdf3dc;
  --hp-blue: #1d4ed8;   --hp-blue-bg: #e8effd;
  --hp-rose: #be185d;   --hp-rose-bg: #fde7f1;
  --hp-teal: var(--ds-primary-text); --hp-teal-bg: var(--ds-primary-soft);

  display: block;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--ds-space-12);
}
.dark-mode .hp {
  --hp-orange: #fdba74; --hp-orange-bg: rgba(253, 186, 116, 0.14);
  --hp-green: #86efac;  --hp-green-bg: rgba(134, 239, 172, 0.13);
  --hp-amber: #fcd34d;  --hp-amber-bg: rgba(252, 211, 77, 0.13);
  --hp-blue: #93c5fd;   --hp-blue-bg: rgba(147, 197, 253, 0.14);
  --hp-rose: #f9a8d4;   --hp-rose-bg: rgba(249, 168, 212, 0.14);
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp :focus-visible { outline: none; box-shadow: var(--ds-focus-ring); }
.hp img { max-width: 100%; }
@media (max-width: 599px) { .hp { --hp-gutter: 16px; } }

/* ==================================================================
 * Bandeau
 * ================================================================== */
@keyframes hp-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Le paquet de cartes (plus gros élément de la page sur mobile) monte sans transparence ni délai : sa photo compte dès son affichage */
@keyframes hp-rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes hp-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.hp-hero {
  position: relative; display: flex; align-items: center; min-height: 560px; overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, var(--hp-ink) 0%, var(--hp-ink-2) 100%); color: #fff;
}
/* voile qui fond la mosaïque dans l'encre, côté texte */
.hp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--hp-ink) 45%, transparent 100%);
}
.hp-hero__content { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px var(--hp-gutter) 80px; }
.hp-hero__content > * { animation: hp-fade-up 0.6s ease both; }
.hp-hero__content > :nth-child(2) { animation-delay: 0.1s; }
.hp-hero__content > :nth-child(3) { animation-delay: 0.2s; }
.hp-hero__content > :nth-child(n+4) { animation-delay: 0.3s; }

.hp-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 6px 14px;
  background: rgba(0, 130, 142, 0.15); border: 1px solid rgba(0, 130, 142, 0.3); border-radius: 100px;
  color: var(--hp-teal-mid); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.hp-hero__title {
  margin: 0 0 20px; max-width: 650px; font-family: var(--ds-font-display); font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1; color: #fff;
}
.hp-hero__title em { font-family: var(--ds-font-display); font-style: normal; color: var(--hp-teal-mid); }
.hp-hero__subtitle { margin: 0 0 40px; max-width: 500px; color: rgba(255, 255, 255, 0.7); font-size: 16px; line-height: 1.6; }

.hp-hero__search {
  display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 6px 6px 6px 24px;
  background: #fff; border-radius: 100px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hp-hero__search:focus-within { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(168, 223, 227, 0.35); }
.hp-hero__search > .cb-icon { color: #374151; font-size: 16px; }
.hp .hp-hero__search input {
  flex: 1; min-width: 0; padding: 8px 0; background: transparent; border: 0; outline: none; box-shadow: none;
  color: var(--hp-ink); font-family: var(--ds-font-body); font-size: 15px; font-weight: 500;
  -webkit-appearance: none; appearance: none;
}
.hp-hero__search input::placeholder { color: #9ca3af; font-weight: 400; }
.hp-hero__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hp-hero__search-btn {
  flex-shrink: 0; padding: 12px 28px; background: var(--ds-primary); color: #fff; border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--ds-font-display); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hp-hero__search-btn:hover { background: #006b75; transform: scale(1.02); }

.hp-hero__trending { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; max-width: 560px; margin: 16px 0 0 4px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.hp-hero__trending a { color: rgba(255, 255, 255, 0.85); text-decoration: none; border-bottom: 1px solid rgba(168, 223, 227, 0.35); transition: color 0.2s, border-color 0.2s; }
.hp-hero__trending a:hover { color: #fff; border-color: var(--hp-teal-mid); }

.hp-hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; }
.hp-hero__stat { color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.hp-hero__stat strong { display: block; margin-bottom: 4px; font-family: var(--ds-font-display); font-size: 24px; font-weight: 700; color: #fff; }

/* Mosaïque inclinée : deux colonnes qui défilent en sens inverse (chaque colonne est doublée pour boucler sans saut) */
.hp-hero__mosaic {
  position: absolute; top: -20%; bottom: -20%; right: 0; z-index: 0; display: flex; gap: 16px; width: 45%;
  transform: rotate(6deg); opacity: 0.8; pointer-events: none;
}
.hp-hero__track { display: flex; flex-direction: column; gap: 16px; width: 50%; animation: hp-scroll 40s linear infinite; will-change: transform; }
.hp-hero__track--reverse { animation-direction: reverse; animation-duration: 45s; }
.hp-hero__track img { display: block; width: 100%; height: 280px; flex-shrink: 0; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); background: rgba(255, 255, 255, 0.06); }
.hp-hero.is-paused .hp-hero__track { animation-play-state: paused; }

@media (max-width: 900px) {
  .hp-hero__mosaic { width: 80%; right: -20%; opacity: 0.3; }
  .hp-hero::after { background: linear-gradient(to right, var(--hp-ink) 20%, rgba(17, 24, 39, 0.8) 100%); }
}
@media (max-width: 600px) {
  .hp-hero { min-height: 0; }
  .hp-hero__content { padding-top: 28px; padding-bottom: 56px; }
  .hp-hero__search { padding: 4px 4px 4px 16px; gap: 8px; }
  .hp-hero__search-btn { padding: 10px 20px; }
  .hp .hp-hero__search input { font-size: 16px; } /* 16 px : iOS ne zoome pas au toucher */
  .hp-hero__stats { flex-wrap: nowrap; justify-content: space-between; gap: 12px; margin-top: 32px; }
  .hp-hero__stat { font-size: 11px; }
  .hp-hero__stat strong { font-size: 18px; }
}

/* ==================================================================
 * Bandeau « moment » (hp-mo)
 * ================================================================== */

.hp-mo {
  --hp-mo-bg: #fff8f2;
  --hp-mo-glow-1: rgba(242, 107, 75, 0.16);
  --hp-mo-glow-2: rgba(0, 130, 142, 0.14);
  --hp-mo-dots: rgba(28, 28, 28, 0.07);
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 88% 18%, var(--hp-mo-glow-1), transparent 70%),
    radial-gradient(ellipse 55% 60% at 6% 100%, var(--hp-mo-glow-2), transparent 70%),
    var(--hp-mo-bg);
  border-bottom: 1px solid var(--ds-border);
}
.dark-mode .hp-mo {
  --hp-mo-bg: #151716;
  --hp-mo-glow-1: rgba(255, 132, 99, 0.16);
  --hp-mo-glow-2: rgba(82, 203, 214, 0.12);
  --hp-mo-dots: rgba(255, 255, 255, 0.06);
}
/* trame de points discrète, fondue vers le bas */
.hp-mo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--hp-mo-dots) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hp-mo__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 56px;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 56px var(--hp-gutter) 72px;
}
.hp-mo__text > * { animation: hp-fade-up 0.6s var(--ds-ease) both; }
.hp-mo__text > :nth-child(2) { animation-delay: 0.08s; }
.hp-mo__text > :nth-child(3) { animation-delay: 0.16s; }
.hp-mo__text > :nth-child(n+4) { animation-delay: 0.24s; }

.hp-mo__kicker {
  display: inline-flex; align-items: center; margin: 0 0 22px; padding: 7px 14px;
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-pill); box-shadow: var(--ds-shadow-sm);
  color: var(--ds-text-2); font-size: 0.82rem; font-weight: 500;
}
.hp-mo__title {
  margin: 0 0 18px; max-width: 640px; font-family: var(--ds-font-display); font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.1rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--ds-text);
}
/* les mots du moment, soulignés d'un trait de pinceau */
.hp-mo__title em {
  position: relative; display: inline-block; font-family: var(--ds-font-display); font-style: normal; color: var(--ds-accent-text);
  padding-bottom: 0.06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 3, 90 3, 120 7 S 180 12, 197 5' fill='none' stroke='%23f26b4b' stroke-width='4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") left bottom / 100% 0.32em no-repeat;
}
.hp-mo__lead { margin: 0 0 30px; max-width: 520px; color: var(--ds-text-2); font-size: 1.02rem; line-height: 1.65; }

.hp-mo__search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 7px 7px 7px 22px;
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-pill);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.22); transition: box-shadow 0.3s var(--ds-ease), border-color 0.3s;
}
.hp-mo__search:focus-within { border-color: var(--ds-primary); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.22), var(--ds-focus-ring); }
.hp-mo__search > .cb-icon { color: var(--ds-text-3); }
.hp .hp-mo__search input {
  flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: none; background: transparent; box-shadow: none;
  color: var(--ds-text); font-family: var(--ds-font-body); font-size: 1rem;
}
.hp-mo__search input::placeholder { color: var(--ds-text-3); }
.hp-mo__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hp-mo__search-btn {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ds-primary); color: var(--ds-on-primary); font-size: 1.05rem;
  cursor: pointer; transition: background 0.2s, transform 0.2s var(--ds-ease);
}
.hp-mo__search-btn:hover { background: var(--ds-primary-hover); }
.hp-mo__search-btn:hover .cb-icon { transform: translateX(3px); }
.hp-mo__search-btn .cb-icon { transition: transform 0.2s var(--ds-ease); }

.hp-mo__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.hp-mo__chips li { margin: 0; }
.hp .hp-mo__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; white-space: nowrap;
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-pill);
  color: var(--ds-text); font-size: 0.88rem; font-weight: 500; text-decoration: none;
  transition: transform 0.2s var(--ds-ease), border-color 0.2s, box-shadow 0.2s;
}
.hp-mo__chip .cb-icon { color: var(--ds-primary-text); font-size: 0.85em; }
.hp .hp-mo__chip--event { background: var(--ds-accent-soft); border-color: transparent; color: var(--ds-accent-text); font-weight: 600; }
@media (hover: hover) {
  .hp .hp-mo__chip:hover { transform: translateY(-2px); border-color: var(--ds-primary); box-shadow: var(--ds-shadow-md); }
}

.hp-mo__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ds-text-2); font-size: 0.85rem; }
.hp-mo__facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hp-mo__facts .cb-icon { color: var(--ds-success); }

/* Paquet de cartes d'idées : la carte du dessus (data-pos 0) est cliquable, les suivantes dépassent derrière */
.hp-mo__deck { display: flex; flex-direction: column; align-items: center; gap: 26px; animation: hp-rise 0.6s var(--ds-ease) both; }
.hp-mo__stack { position: relative; width: min(400px, 100%); aspect-ratio: 5 / 6; }

.hp .hp-mo__card {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--ds-radius-lg);
  background: var(--ds-surface-2); color: #fff; text-decoration: none; box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ds-ease), opacity 0.45s var(--ds-ease);
}
.hp-mo__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ds-ease); }
.hp-mo__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 14, 0.85) 0%, rgba(8, 12, 14, 0.25) 45%, rgba(8, 12, 14, 0) 70%); }
.hp-mo__card[data-pos="0"] { z-index: 5; transform: rotate(-2deg); }
.hp-mo__card[data-pos="1"] { z-index: 4; transform: translate(28px, 6px) rotate(5deg) scale(0.94); pointer-events: none; }
.hp-mo__card[data-pos="2"] { z-index: 3; transform: translate(-26px, 14px) rotate(-8deg) scale(0.9); pointer-events: none; }
.hp-mo__card[data-pos="3"], .hp-mo__card[data-pos="4"], .hp-mo__card[data-pos="5"] { z-index: 1; opacity: 0; transform: scale(0.85); pointer-events: none; }
.hp-mo__card[data-pos="1"]::after, .hp-mo__card[data-pos="2"]::after { background: rgba(8, 12, 14, 0.25); }
.hp-mo__card[data-pos="1"] .hp-mo__info, .hp-mo__card[data-pos="2"] .hp-mo__info { opacity: 0; }
.hp .hp-mo__card.is-leaving { z-index: 6; opacity: 0; transform: translate(-70%, -4%) rotate(-22deg); }
@media (hover: hover) {
  .hp .hp-mo__card[data-pos="0"]:hover { transform: rotate(0deg) translateY(-6px); }
  .hp-mo__card[data-pos="0"]:hover img { transform: scale(1.05); }
}

.hp-mo__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 24px; transition: opacity 0.3s; }
.hp-mo__tag {
  align-self: flex-start; padding: 5px 11px; border-radius: var(--ds-radius-pill);
  background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.hp-mo__name {
  display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-family: var(--ds-font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 500; line-height: 1.2; color: #fff;
}
.hp-mo__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.9); }
.hp-mo__meta .cb-icon { margin-right: 3px; }
.hp-mo__meta .fa-star { color: #fbbf24; }

.hp-mo__next {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  background: var(--ds-surface); border: 1px solid var(--ds-border-strong); border-radius: var(--ds-radius-pill); box-shadow: var(--ds-shadow-sm);
  color: var(--ds-text); font-family: var(--ds-font-body); font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: transform 0.2s var(--ds-ease), border-color 0.2s, box-shadow 0.2s;
}
.hp-mo__next .cb-icon { color: var(--ds-accent); transition: transform 0.4s var(--ds-ease); }
.hp-mo__next:hover { border-color: var(--ds-accent); box-shadow: var(--ds-shadow-md); }
.hp-mo__next:hover .cb-icon { transform: rotate(180deg); }
.hp-mo__next:active { transform: scale(0.97); }

@media (max-width: 959px) {
  .hp-mo__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .hp-mo__title, .hp-mo__lead, .hp-mo__search { max-width: none; }
  .hp-mo__stack { width: min(440px, 100%); aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) {
  .hp-mo__inner { gap: 34px; padding-top: 28px; padding-bottom: 44px; }
  .hp-mo__kicker { margin-bottom: 16px; font-size: 0.78rem; }
  .hp-mo__lead { margin-bottom: 22px; font-size: 0.95rem; }
  .hp-mo__search { padding: 5px 5px 5px 16px; gap: 8px; }
  .hp .hp-mo__search input { font-size: 16px; } /* 16 px : iOS ne zoome pas au toucher */
  .hp-mo__search-btn { width: 44px; height: 44px; }
  /* pastilles : une ligne qu'on fait glisser, jusqu'au bord de l'écran */
  .hp-mo__chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--hp-gutter)); padding-right: var(--hp-gutter); scrollbar-width: none; }
  .hp-mo__chips::-webkit-scrollbar { display: none; }
  .hp-mo__facts { gap: 8px 16px; margin-top: 20px; font-size: 0.8rem; }
  .hp-mo__stack { width: calc(100% - 28px); }
  .hp-mo__info { padding: 18px; }
}

/* ==================================================================
 * Mise en page commune
 * ================================================================== */
.hp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--hp-gutter); }
.hp-sec { margin-top: clamp(56px, 7vw, 96px); }
.hp-wrap > .hp-sec:first-child { margin-top: clamp(32px, 5vw, 56px); }

.hp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: var(--ds-space-6); }
.hp-head > div { min-width: 0; }
.hp-h2 {
  margin: 0; font-family: var(--ds-font-display); font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.25rem); font-weight: 500;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--ds-text); text-wrap: balance;
}
.hp-h2 em { font-family: var(--ds-font-display); font-style: normal; color: var(--ds-primary-text); }
.hp-lead { margin: 10px 0 0; max-width: 62ch; color: var(--ds-text-2); font-size: 1rem; line-height: 1.6; }
.hp-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ds-primary-text);
}
.hp-kicker--light { color: var(--hp-teal-mid); }
.hp .hp-more {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; white-space: nowrap;
  font-size: 0.95rem; font-weight: 600; color: var(--ds-primary-text); text-decoration: none; transition: gap 0.25s var(--ds-ease);
}
.hp .hp-more:hover { gap: 12px; }

/* ==================================================================
 * Reprendre (membre)
 * ================================================================== */
.hp-resume__row {
  /* 6 vignettes visibles sur ordinateur, les suivantes au défilement ; sur téléphone la rangée va d'un bord à l'autre */
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * var(--ds-space-4)) / 6); gap: var(--ds-space-4);
  padding: 4px 0 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
@media (max-width: 959px) { .hp-resume__row { grid-auto-columns: minmax(180px, 210px); margin: 0 calc(var(--hp-gutter) * -1); padding: 4px var(--hp-gutter) 12px; scroll-padding: 0 var(--hp-gutter); } }
.hp-resume__row::-webkit-scrollbar { display: none; }
.hp .hp-mini {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 14px; scroll-snap-align: start;
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md);
  color: var(--ds-text); text-decoration: none; transition: transform 0.3s var(--ds-ease), box-shadow 0.3s var(--ds-ease);
}
.hp .hp-mini:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow-md); }
.hp-mini__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: 4px; overflow: hidden; border-radius: var(--ds-radius-sm); background: var(--ds-surface-2); color: var(--ds-text-3); font-size: 1.8rem; }
.hp-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.hp-mini__name { padding: 0 4px; font-weight: 600; font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-mini__meta { padding: 0 4px; font-size: 0.82rem; color: var(--ds-text-3); }

/* ==================================================================
 * Aujourd'hui : menu du jour + Breaky
 * ================================================================== */
.hp-today { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--ds-space-6); align-items: stretch; }
@media (max-width: 899px) { .hp-today { grid-template-columns: minmax(0, 1fr); } }

.hp-menu {
  display: flex; flex-direction: column; padding: 28px; background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-sm);
}
.hp-menu__head { margin-bottom: 18px; }
.hp-menu__head .hp-kicker { margin-bottom: 8px; }
.hp-menu__title { margin: 0; font-family: var(--ds-font-display); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); font-weight: 500; line-height: 1.25; color: var(--ds-text); }
.hp-menu__total { margin: 6px 0 0; color: var(--ds-text-3); font-size: 0.9rem; }
.hp-menu__list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; flex: 1; }
.hp-menu__list li { margin: 0; padding: 0; list-style: none; }
.hp .hp-menu__item {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 16px 10px 10px;
  background: var(--ds-surface-2); border-radius: var(--ds-radius-md); color: var(--ds-text); text-decoration: none;
  transition: background 0.25s var(--ds-ease), transform 0.25s var(--ds-ease);
}
.hp .hp-menu__item:hover { background: var(--ds-surface-hover); transform: translateX(3px); }
.hp-menu__img { display: block; width: 80px; height: 80px; overflow: hidden; border-radius: var(--ds-radius-sm); background: var(--ds-border); }
.hp-menu__img img { width: 100%; height: 100%; object-fit: cover; }
.hp-menu__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-menu__type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ds-accent-text); }
.hp-menu__name { font-weight: 600; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-menu__meta { font-size: 0.82rem; color: var(--ds-text-3); }
.hp-menu__go { color: var(--ds-text-3); font-size: 0.85rem; }
@media (max-width: 599px) {
  .hp-menu { padding: 20px 16px; }
  .hp .hp-menu__item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .hp-menu__img { width: 64px; height: 64px; }
}

.hp-breaky {
  position: relative; display: flex; flex-direction: column; padding: 28px; overflow: hidden; isolation: isolate;
  border-radius: var(--ds-radius-lg); color: #fff; box-shadow: var(--ds-shadow-sm);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 130, 142, 0.45) 0%, transparent 55%),
    linear-gradient(145deg, var(--hp-ink) 0%, var(--hp-ink-2) 100%);
}
.hp-breaky .hp-kicker { margin-bottom: 8px; }
.hp-breaky__title { margin: 0; font-family: var(--ds-font-display); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); font-weight: 500; line-height: 1.25; color: #fff; }
.hp-breaky__text { margin: 8px 0 18px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.55; }
.hp-breaky__chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.hp-bubble { max-width: 88%; margin: 0; padding: 10px 14px; font-size: 0.88rem; line-height: 1.45; }
.hp-bubble--me { align-self: flex-end; background: var(--ds-primary); border-radius: 18px 18px 4px 18px; }
.hp-bubble--bot { align-self: flex-start; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px 18px 18px 4px; color: rgba(255, 255, 255, 0.88); }
.hp-bubble--bot span { display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hp-teal-mid); }
.hp-breaky__ideas { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.hp-breaky__ideas li { margin: 0; padding: 0; list-style: none; }
.hp .hp-breaky__ideas a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86); font-size: 0.9rem; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.hp .hp-breaky__ideas a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hp-breaky__ideas .cb-icon { flex: none; width: 18px; height: 18px; color: var(--hp-teal-mid); }
.hp .hp-breaky__btn { align-self: flex-start; margin-top: auto; background: #fff; color: var(--hp-ink); }
.hp .hp-breaky__btn:hover { background: var(--hp-teal-mid); color: var(--hp-ink); }
@media (max-width: 599px) { .hp-breaky { padding: 22px 18px; } .hp .hp-breaky__btn { align-self: stretch; justify-content: center; } }

/* ==================================================================
 * Événement / saison
 * ================================================================== */
.hp-spot__kicker { padding: 6px 12px; border-radius: var(--ds-radius-badge); background: var(--ds-primary-soft); }
.hp-spot--event .hp-spot__kicker { background: var(--ds-accent-soft); color: var(--ds-accent-text); }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .hp-spot--event .hp-spot__kicker { background: color-mix(in srgb, var(--hp-spot) 13%, transparent); color: var(--hp-spot); }
  .dark-mode .hp-spot--event .hp-spot__kicker { color: color-mix(in srgb, var(--hp-spot) 55%, #fff); }
}

/* Sur téléphone, les grilles de cartes deviennent un carrousel horizontal (une carte et demie visible) */
@media (max-width: 599px) {
  .hp .hp-rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
    margin: 0 calc(var(--hp-gutter) * -1); padding: 4px var(--hp-gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--hp-gutter); scrollbar-width: none;
  }
  .hp .hp-rail::-webkit-scrollbar { display: none; }
  .hp .hp-rail > .ds-recipe { aspect-ratio: 4 / 5; scroll-snap-align: start; }
}

/* ==================================================================
 * Explorer : tuiles photo
 * ================================================================== */
.hp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-4); }
@media (max-width: 959px) { .hp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.hp .hp-tile {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; border-radius: var(--ds-radius-md);
  background: var(--ds-surface-2); color: #fff; text-decoration: none; box-shadow: var(--ds-shadow-sm);
  transition: transform 0.3s var(--ds-ease), box-shadow 0.3s var(--ds-ease);
}
.hp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ds-ease); }
.hp-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 18, 0.82) 0%, rgba(10, 16, 18, 0.25) 55%, rgba(10, 16, 18, 0) 100%); }
.hp-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.hp-tile__name { font-family: var(--ds-font-display); font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem); font-weight: 500; line-height: 1.2; color: #fff; }
.hp-tile__count { font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); }
@media (hover: hover) {
  .hp .hp-tile:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-lg); }
  .hp .hp-tile:hover img { transform: scale(1.06); }
}
@media (max-width: 599px) { .hp-tile__body { padding: 12px 14px; } }

/* ==================================================================
 * Classement des recettes les plus consultées
 * ================================================================== */
.hp-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--ds-space-6); margin: 0; padding: 0; list-style: none; counter-reset: hp-rank; }
@media (max-width: 767px) { .hp-top { grid-template-columns: minmax(0, 1fr); } }
.hp-top li { margin: 0; padding: 0; list-style: none; counter-increment: hp-rank; }
.hp .hp-rank {
  display: grid; grid-template-columns: 44px 96px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 18px 10px 10px;
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md);
  color: var(--ds-text); text-decoration: none; transition: transform 0.25s var(--ds-ease), box-shadow 0.25s var(--ds-ease);
}
.hp .hp-rank:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow-md); }
.hp-rank::before {
  content: counter(hp-rank); justify-self: center; font-family: var(--ds-font-display); font-size: 1.9rem; font-weight: 600; line-height: 1;
  color: var(--ds-primary-text); font-variant-numeric: tabular-nums;
}
.hp-top li:nth-child(-n+3) .hp-rank::before { color: var(--ds-accent); }
.hp-rank__img { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; overflow: hidden; border-radius: var(--ds-radius-sm); background: var(--ds-surface-2); color: var(--ds-text-3); font-size: 1.8rem; }
.hp-rank__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ds-ease); }
.hp .hp-rank:hover .hp-rank__img img { transform: scale(1.07); }
.hp-rank__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hp-rank__name { font-family: var(--ds-font-display); font-size: 1rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-rank__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--ds-text-3); }
.hp-rank__meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hp-rank__meta .fa-star { color: var(--ds-accent); }
@media (max-width: 599px) {
  .hp .hp-rank { grid-template-columns: 30px 76px minmax(0, 1fr); gap: 12px; padding-right: 12px; }
  .hp-rank::before { font-size: 1.5rem; }
  .hp-rank__img { width: 76px; height: 76px; }
  .hp-rank__name { font-size: 0.95rem; }
}

/* ==================================================================
 * Nouveautés : onglets en texte souligné
 * ================================================================== */
.hp-tabs { display: flex; gap: 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ds-border); }
.hp-tabs::-webkit-scrollbar { display: none; }
.hp .hp-tab {
  flex-shrink: 0; margin: 0 0 -1px; padding: 10px 2px; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; cursor: pointer;
  font-family: var(--ds-font-body); font-size: 0.95rem; font-weight: 600; color: var(--ds-text-3); transition: color 0.2s, border-color 0.2s;
}
.hp .hp-tab:hover { color: var(--ds-text); }
.hp .hp-tab[aria-selected="true"] { color: var(--ds-text); border-bottom-color: var(--ds-primary); }
.hp .hp-tab:focus-visible { box-shadow: none; outline: 2px solid var(--ds-primary); outline-offset: 2px; border-radius: 4px; }
.hp-panel[hidden] { display: none; }
.hp-panel.is-entering .ds-recipe { animation: hp-fade-up 0.45s var(--ds-ease) both; }
.hp-panel.is-entering .ds-recipe:nth-child(2) { animation-delay: 0.05s; }
.hp-panel.is-entering .ds-recipe:nth-child(3) { animation-delay: 0.1s; }
.hp-panel.is-entering .ds-recipe:nth-child(n+4) { animation-delay: 0.15s; }

/* ==================================================================
 * Cuisines du monde : panneau encre, comme le bandeau
 * ================================================================== */
.hp-world {
  position: relative; padding: clamp(28px, 4vw, 56px); overflow: hidden; isolation: isolate; border-radius: var(--ds-radius-lg);
  background:
    radial-gradient(circle at 0% 100%, rgba(0, 130, 142, 0.28) 0%, transparent 50%),
    linear-gradient(145deg, var(--hp-ink) 0%, var(--hp-ink-2) 100%);
}
.dark-mode .hp-world { border: 1px solid var(--ds-border); }
.hp-world .hp-h2 { color: #fff; }
.hp-world .hp-h2 em { color: var(--hp-teal-mid); }
.hp-world .hp-lead { color: rgba(255, 255, 255, 0.65); }
.hp-world .hp-more { color: var(--hp-teal-mid); }
.hp-world__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-4); }
@media (max-width: 959px) { .hp-world__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.hp .hp-country {
  position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate; border-radius: var(--ds-radius-md);
  background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; transition: transform 0.3s var(--ds-ease), box-shadow 0.3s var(--ds-ease);
}
.hp-country__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ds-ease); }
.hp-country::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 18, 0.85) 0%, rgba(10, 16, 18, 0.2) 60%, rgba(10, 16, 18, 0) 100%); }
.hp-country__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.hp-country__body > span { display: flex; flex-direction: column; min-width: 0; }
.hp-country__flag { flex-shrink: 0; width: 28px; height: 28px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.hp-country__name { font-family: var(--ds-font-display); font-size: 1rem; font-weight: 500; line-height: 1.2; color: #fff; }
.hp-country__count { font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); }
@media (hover: hover) {
  .hp .hp-country:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6); }
  .hp .hp-country:hover .hp-country__photo { transform: scale(1.06); }
}

/* ==================================================================
 * Régimes et allergies
 * ================================================================== */
.hp-diets { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 899px) { .hp-diets { grid-template-columns: minmax(0, 1fr); } }
.hp-diets__intro .ds-btn { margin-top: 22px; }
.hp-diets__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 599px) { .hp-diets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp-diets__grid li { margin: 0; padding: 0; list-style: none; }
.hp .hp-diet {
  --tone: var(--hp-teal); --tone-bg: var(--hp-teal-bg);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 18px;
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md);
  color: var(--ds-text); text-decoration: none; transition: transform 0.25s var(--ds-ease), box-shadow 0.25s var(--ds-ease), border-color 0.25s;
}
.hp .hp-diet:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow-md); border-color: var(--tone); }
.hp .hp-diet--orange { --tone: var(--hp-orange); --tone-bg: var(--hp-orange-bg); }
.hp .hp-diet--green { --tone: var(--hp-green); --tone-bg: var(--hp-green-bg); }
.hp .hp-diet--amber { --tone: var(--hp-amber); --tone-bg: var(--hp-amber-bg); }
.hp .hp-diet--blue { --tone: var(--hp-blue); --tone-bg: var(--hp-blue-bg); }
.hp .hp-diet--rose { --tone: var(--hp-rose); --tone-bg: var(--hp-rose-bg); }
.hp-diet__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; background: var(--tone-bg); color: var(--tone); font-size: 1.45rem; }
.hp-diet__name { font-weight: 600; font-size: 1rem; }
.hp-diet__count { font-size: 0.82rem; color: var(--ds-text-3); }

/* ==================================================================
 * Outils (bento)
 * ================================================================== */
.hp-bento { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: var(--ds-space-4); }
.hp-bento__item--qualyy { grid-row: span 2; }
.hp-bento > :last-child { grid-column: 2 / span 2; }
@media (max-width: 899px) {
  .hp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-bento__item--qualyy { grid-column: 1 / -1; grid-row: auto; }
  .hp-bento > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .hp-bento { grid-template-columns: minmax(0, 1fr); } }
.hp .hp-bento__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 28px;
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg);
  color: var(--ds-text); text-decoration: none; transition: transform 0.3s var(--ds-ease), box-shadow 0.3s var(--ds-ease);
}
.hp .hp-bento__item:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-lg); }
.hp-bento__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 16px; background: var(--ds-primary-soft); color: var(--ds-primary-text); font-size: 1.5rem; }
.hp-bento__icon--accent { background: var(--ds-accent-soft); color: var(--ds-accent-text); }
.hp-bento__title { font-family: var(--ds-font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.25; }
.hp-bento__text { color: var(--ds-text-2); font-size: 0.93rem; line-height: 1.55; }
.hp .hp-bento__item--qualyy {
  justify-content: flex-end; min-height: 320px; border: 0; color: #fff; overflow: hidden; position: relative; isolation: isolate;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 130, 142, 0.5) 0%, transparent 60%),
    linear-gradient(145deg, var(--hp-ink) 0%, var(--hp-ink-2) 100%);
}
.hp-bento__item--qualyy .hp-kicker { margin-bottom: auto; }
.hp-bento__big { font-family: var(--ds-font-display); font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--hp-teal-mid); }
.hp-bento__item--qualyy .hp-bento__title { font-size: 1.2rem; color: #fff; }
.hp-bento__item--qualyy .hp-bento__text { max-width: 44ch; color: rgba(255, 255, 255, 0.7); }
.hp-bento__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: #fff; transition: gap 0.25s var(--ds-ease); }
.hp-bento__item--qualyy:hover .hp-bento__link { gap: 12px; }

/* ==================================================================
 * Inscription (visiteur)
 * ================================================================== */
.hp-join {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg);
  background: radial-gradient(circle at 100% 0%, var(--ds-accent-soft) 0%, transparent 45%), linear-gradient(135deg, var(--ds-primary-soft) 0%, var(--ds-surface) 70%);
}
.hp-join__title { margin: 0; font-family: var(--ds-font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 500; line-height: 1.2; color: var(--ds-text); }
.hp-join__gift { display: flex; align-items: center; gap: 8px; margin: 10px 0 18px; font-weight: 600; color: var(--ds-accent-text); }
.hp-join__perks { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.hp-join__perks li { display: flex; align-items: center; gap: 10px; margin: 0; list-style: none; color: var(--ds-text-2); font-size: 0.95rem; }
.hp-join__perks .cb-icon { box-sizing: border-box; flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 8px; background: var(--ds-primary); color: #fff; }
.hp-join__actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; min-width: 220px; }
.hp-join__actions .ds-btn { justify-content: center; }
@media (max-width: 767px) {
  .hp-join { flex-direction: column; align-items: stretch; }
  .hp-join__perks { grid-template-columns: minmax(0, 1fr); }
  .hp-join__actions { min-width: 0; }
}

/* ==================================================================
 * À propos + questions fréquentes
 * ================================================================== */
.hp-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 899px) { .hp-about { grid-template-columns: minmax(0, 1fr); } }
.hp-about__text p { margin: 16px 0 0; color: var(--ds-text-2); font-size: 1rem; line-height: 1.75; }
.hp-about__text .hp-h2 { margin-bottom: 4px; }
.hp .hp-about__text a { color: var(--ds-primary-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hp-faq { padding: 8px 28px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); }
.hp-faq__title { margin: 18px 0 6px; font-family: var(--ds-font-display); font-size: 1.1rem; font-weight: 500; color: var(--ds-text); }
.hp-faq details { border-top: 1px solid var(--ds-border); }
.hp-faq details:first-of-type { border-top: 0; }
.hp-faq summary {
  position: relative; display: block; padding: 18px 36px 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 0.98rem; line-height: 1.4; color: var(--ds-text);
}
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ds-text-3); border-bottom: 2px solid var(--ds-text-3); transform: rotate(45deg); transition: transform 0.25s var(--ds-ease);
}
.hp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hp-faq summary:focus-visible { box-shadow: none; outline: 2px solid var(--ds-primary); outline-offset: 2px; border-radius: 6px; }
.hp-faq details p { margin: 0 0 18px; color: var(--ds-text-2); font-size: 0.95rem; line-height: 1.7; }
@media (max-width: 599px) { .hp-faq { padding: 4px 18px; } }

/* ==================================================================
 * Publicités (étiquetées, retirées pour les membres sans pub par head.php)
 * ================================================================== */
.hp-ad.ds-recipes__ad { margin: clamp(48px, 6vw, 72px) 0 0; }

/* ==================================================================
 * Rappel de parrainage (membre)
 * ================================================================== */
.hp-ref {
  position: fixed; inset: 0; z-index: var(--ds-z-modal); display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--ds-overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ds-ease);
}
.hp-ref[hidden] { display: none; }
.hp-ref.is-open { opacity: 1; }
.hp-ref__box {
  position: relative; width: 100%; max-width: 420px; padding: 36px 28px 28px; text-align: center; font-family: var(--ds-font-body);
  background: var(--ds-surface); color: var(--ds-text); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-lg);
  transform: translateY(12px) scale(0.96); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hp-ref.is-open .hp-ref__box { transform: none; }
.hp-ref__close {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  background: var(--ds-surface-2); color: var(--ds-text-2); border: 0; border-radius: 12px; cursor: pointer;
}
.hp-ref__icon { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 22px; background: var(--ds-primary-soft); font-size: 30px; }
.hp-ref__title { margin: 0 0 10px; font-family: var(--ds-font-display); font-size: 1.25rem; font-weight: 500; color: var(--ds-text); }
.hp-ref__text { margin: 0 0 22px; color: var(--ds-text-2); line-height: 1.6; }
.hp-ref__text strong { color: var(--ds-primary-text); }

/* ==================================================================
 * Apparition au défilement (posée par le JavaScript : sans lui, tout est visible)
 * ================================================================== */
.hp.hp-js .hp-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ds-ease), transform 0.6s var(--ds-ease); }
.hp.hp-js .hp-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hp-hero__content > *, .hp-panel.is-entering .ds-recipe, .hp-mo__text > *, .hp-mo__deck { animation: none; }
  .hp .hp-mo__card, .hp-mo__card img { transition: none; }
  .hp-hero__track { animation: none; }
  .hp.hp-js .hp-reveal { opacity: 1; transform: none; transition: none; }
  .hp .hp-tile, .hp .hp-country, .hp .hp-bento__item, .hp .hp-diet, .hp .hp-mini, .hp .hp-menu__item, .hp .hp-rank, .hp-rank__img img,
  .hp-tile img, .hp-country__photo { transition: none; }
}
