/* =========================================================
   KIIP — pages de contenu : blog, articles, 404
   (s'ajoute à base.css ; aucune animation lourde, tout est en CSS)
   ========================================================= */

/* ---------- en-tête de page (fond nuit) ---------- */
.phead { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 9svh) var(--gutter) 9svh; text-align: center; }
.phead::before { content: ""; position: absolute; left: 50%; top: 30%; width: min(90vw, 900px); aspect-ratio: 2; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(253, 0, 84, .28), transparent); pointer-events: none; }
.phead__inner { position: relative; max-width: 980px; margin: 0 auto; }
.phead__title { font: 400 clamp(40px, min(6.4vw, 11svh), 104px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--cream); }
.phead__title em { font-style: normal; color: var(--rose); }
/* le logo Kiip à la place du mot, calé sur la ligne du titre */
.phead__logo { display: inline-block; height: 1.05em; aspect-ratio: 335.5 / 199; margin-left: .12em; vertical-align: -.12em; background: var(--rose); -webkit-mask: url("../assets/img/wordmark.svg") center / contain no-repeat; mask: url("../assets/img/wordmark.svg") center / contain no-repeat; }
.phead__lede { max-width: 54ch; margin: 3svh auto 0; font-size: clamp(1.02rem, 1.3vw, 1.2rem); font-weight: 500; line-height: 1.55; color: rgba(255, 249, 230, .78); }
.phead__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 3svh; font: 600 .82rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 249, 230, .55); }
.phead__meta span + span::before { content: "·"; margin-right: 18px; color: var(--blush); }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 3svh; padding: 0; list-style: none; font: 600 .78rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 249, 230, .5); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--blush); }
.crumbs a { text-decoration: none; color: rgba(255, 249, 230, .78); }
.crumbs a:hover { color: var(--blush); }
/* entrée douce, sans JS */
.phead__inner > * { animation: rise .9s var(--ease) both; }
.phead__inner > :nth-child(2) { animation-delay: .08s; } .phead__inner > :nth-child(3) { animation-delay: .16s; } .phead__inner > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- liste des articles ---------- */
.bloglist { padding: 10svh 0 14svh; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.card { position: relative; display: flex; flex-direction: column; border-radius: 26px; background: var(--cream); box-shadow: var(--neu-cream); text-decoration: none; overflow: hidden; transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover, .card:focus-visible { translate: 0 -6px; box-shadow: 16px 18px 34px rgba(160, 138, 96, .34), -12px -12px 26px rgba(255, 255, 255, .95); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.card:hover .card__img img { scale: 1.05; }
.card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 26px; }
.card__tag { font: 400 .74rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--rose-ink); }
.card__title { font: 400 clamp(1.5rem, 2vw, 1.9rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.card__txt { font-size: .98rem; line-height: 1.55; color: #5d6168; }
.card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 800 .8rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--rose-ink); }
.card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.card--lead .card__img { aspect-ratio: auto; min-height: 340px; }
.card--lead .card__body { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.card--lead .card__title { font-size: clamp(2rem, 3.4vw, 3.2rem); }
@media (max-width: 760px) { .card--lead { grid-template-columns: 1fr; } .card--lead .card__img { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- article ---------- */
.post { padding: 9svh var(--gutter) 12svh; }
.prose { max-width: 720px; margin: 0 auto; font-size: clamp(1.05rem, 1.15vw, 1.15rem); line-height: 1.75; color: #3f444c; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font: 400 clamp(1.7rem, 2.6vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.prose h2 em { font-style: normal; color: var(--rose-ink); }
.prose h3 { margin-top: 1.8em; font: 800 1.2rem/1.3 var(--text); color: var(--ink); }
.prose p strong, .prose li strong { color: var(--ink); }
.prose a { color: var(--rose-ink); font-weight: 700; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose ul li::marker { color: var(--rose); }
.prose ol li::marker { font-family: var(--label); color: var(--rose-ink); }
.prose .intro { font-size: 1.18em; font-weight: 500; line-height: 1.6; color: var(--ink); }
.prose figure img { width: 100%; border-radius: 22px; box-shadow: var(--neu-cream); }
.prose figcaption { margin-top: 10px; font-size: .85rem; text-align: center; color: #7a7d84; }
/* comparatifs : tout le tableau est creusé d'un seul bloc dans la page ; la dernière ligne, Kiip, porte le logo */
.prose table { width: 100%; font-size: .95rem; line-height: 1.4; }
.prose table, .prose thead, .prose tbody { display: block; }
.prose tbody { margin-top: 10px; padding: 6px 4px; border-radius: 22px; background: var(--cream); box-shadow: inset 6px 6px 14px rgba(160, 138, 96, .26), inset -6px -6px 14px rgba(255, 255, 255, .95); }
.prose tr { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr 1.35fr; align-items: center; }
.prose tbody tr { min-height: 62px; }
.prose tbody tr + tr { border-top: 1px solid rgba(160, 138, 96, .16); }
.prose tr.is-kiip td { color: var(--ink); font-weight: 700; }
.prose tr.is-kiip td:not(:first-child)::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' fill='none' stroke='%23FFF9E6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.kiip-logo { display: block; width: 64px; aspect-ratio: 335.5 / 199; background: var(--rose); -webkit-mask: url("../assets/img/wordmark.svg") left center / contain no-repeat; mask: url("../assets/img/wordmark.svg") left center / contain no-repeat; }
.prose th, .prose td { display: block; padding: 12px 16px; text-align: left; }
.prose th { padding-top: 0; padding-bottom: 0; background: none; color: var(--rose-ink); font: 400 .72rem/1.2 var(--label); letter-spacing: .16em; text-transform: uppercase; }
.prose td { color: #6a6e75; }
.prose td:first-child { color: var(--ink); }
/* duel (deux colonnes) : la colonne Kiip est écrite en rose */
.prose table.vs tr { grid-template-columns: 1fr 1.25fr 1.25fr; }
.prose table.vs td:last-child { color: var(--rose-ink); font-weight: 700; }
.prose table.vs th .kiip-logo { width: 54px; }
/* le tableau défile sur petit écran ; la marge intérieure laisse la place à son ombre en relief (sinon elle est coupée) */
.tablewrap { overflow-x: auto; padding: 30px 40px 46px; margin: -8px -40px -24px; scrollbar-width: none; }
.tablewrap::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .tablewrap { padding: 22px var(--gutter) 34px; margin: -4px calc(var(--gutter) * -1) -14px; } .prose table { min-width: 560px; } }
/* encadré « en bref » */
.tldr { padding: 22px 26px; border-radius: 22px; background: var(--cream); box-shadow: var(--neu-cream-in); }
.tldr b { display: block; margin-bottom: 8px; font: 400 .78rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--rose-ink); }
.tldr ul { margin: 0; }
/* appel à l'action, en relief */
/* appel à l'action : une carte crème en relief (comme la FAQ), deux tirages Polaroid et une pastille prix */
.cta { position: relative; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(20px, 4vw, 44px); margin: 3.4em 0 0; padding: clamp(26px, 4vw, 44px); border-radius: 30px; background: var(--grain), var(--cream); box-shadow: var(--neu-cream); line-height: 1.5; }
.cta__visual { position: relative; aspect-ratio: 1 / 1; }
.cta__pola { position: absolute; width: 64%; margin: 0; padding: 5% 5% 0; background: #FFFDF5; box-shadow: 0 18px 36px rgba(60, 40, 20, .25), 0 2px 4px rgba(60, 40, 20, .08); }
.cta__pola img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; box-shadow: none; }
.cta__pola figcaption { margin: 0; padding: 8% 2px 11%; text-align: left; font: italic 500 clamp(.7rem, 1.1vw, .82rem)/1 var(--text); color: var(--ink); }
.cta__pola--1 { left: 0; top: 4%; rotate: -8deg; }
.cta__pola--2 { right: 0; bottom: 0; rotate: 6deg; }
.cta__pola--2::before { content: ""; position: absolute; left: 50%; top: -5%; width: 36%; height: 9%; translate: -50% 0; rotate: -4deg; background: rgba(255, 138, 171, .85); }
.cta__body { min-width: 0; }
.cta__kicker { margin: 0 0 12px; font: 400 .74rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--rose-ink); }
.prose .cta .cta__title { margin: 0; font: 400 clamp(2rem, 3.6vw, 3rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.cta__title em { display: block; font-style: normal; color: var(--rose); }
.prose .cta .cta__txt { margin: 14px 0 24px; max-width: 34ch; font-size: 1rem; line-height: 1.55; color: #5d6168; }
/* le lien se place sous le bouton, centré sur lui */
.cta__row { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; }
.prose .cta .btn { color: var(--fg); font-weight: 800; text-decoration: none; }
.prose .cta .cta__link { display: inline-flex; align-items: center; gap: 8px; font: 800 .8rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.cta__link:hover { color: var(--rose-ink) !important; }
@media (max-width: 640px) {
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta__visual { width: min(78%, 280px); margin: 0 auto; }
  .prose .cta .cta__txt { margin-left: auto; margin-right: auto; }
  .cta__row { justify-content: center; }
}
/* à lire aussi */
.related { max-width: 1120px; margin: 12svh auto 0; }
.related__title { margin-bottom: 4svh; text-align: center; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); text-transform: uppercase; color: var(--ink); }

@media (max-width: 960px) {
  .phead { padding: calc(var(--nav-h) + 6svh) var(--gutter) 7svh; }
  .phead__title { font-size: min(11vw, 8svh); }
  .post { padding: 7svh var(--gutter) 10svh; }
  .prose th, .prose td { padding: 12px 12px; }
}

/* =========================================================
   404 — « cette photo n'a pas été prise »
   ========================================================= */
.lost { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw; padding: calc(var(--nav-h) + 4svh) var(--gutter) 6svh; overflow: hidden; }
.lost::before { content: ""; position: absolute; right: 10%; top: 50%; width: min(60vw, 720px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(253, 0, 84, .3), transparent); pointer-events: none; }
.lost__copy { position: relative; z-index: 2; max-width: 600px; }
.lost__code { font: 400 clamp(110px, min(18vw, 30svh), 260px)/.8 var(--display); letter-spacing: -.01em; color: var(--rose); text-shadow: .03em .03em 0 var(--cream); }
.lost__title { margin-top: 3svh; font: 400 clamp(34px, min(4.4vw, 7svh), 72px)/.98 var(--display); text-transform: uppercase; color: var(--cream); }
.lost__txt { margin-top: 2.4svh; max-width: 40ch; font-size: 1.1rem; font-weight: 500; line-height: 1.55; color: rgba(255, 249, 230, .75); }
.lost__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4svh; }
.lost .btn--ghost { --bg: transparent; --sh: transparent; box-shadow: inset 0 0 0 2px rgba(255, 249, 230, .35); }
.lost .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.lost__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 5svh; padding: 0; list-style: none; }
.lost__links a { font: 700 .8rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: rgba(255, 249, 230, .7); }
.lost__links a:hover { color: var(--blush); }
.lost__stage { position: relative; z-index: 1; display: grid; place-items: center; min-height: 60svh; }
/* le Polaroid qu'on secoue : il « se développe »… et reste vide */
.ghostpola { --pw: min(30vw, 46svh); position: relative; width: var(--pw); padding: calc(var(--pw) * .055) calc(var(--pw) * .055) 0; background: #FFFDF5; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); rotate: -6deg; transform-origin: 50% 0; animation: shake 3.6s var(--ease) infinite; }
.ghostpola__img { position: relative; aspect-ratio: 1; overflow: hidden; background: #24170f; }
.ghostpola__img::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 40% 35%, #5a3a2a, #1c120d 70%); animation: develop 3.6s ease-in-out infinite; }
.ghostpola__img::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 calc(var(--pw) * .42)/1 var(--display); color: rgba(255, 249, 230, .14); }
.ghostpola__flash { position: absolute; inset: 0; z-index: 2; background: #fff; animation: pflash 3.6s ease-out infinite; }
.ghostpola figcaption { padding: calc(var(--pw) * .06) 4px calc(var(--pw) * .09); font: italic 500 calc(var(--pw) * .062)/1 var(--text); color: var(--ink); }
.lost__tape { position: absolute; z-index: 3; left: 50%; top: calc(var(--pw) * -.04); width: 34%; height: 9%; translate: -50% 0; rotate: -4deg; background: rgba(255, 138, 171, .85); }
@keyframes shake { 0%, 52%, 100% { transform: rotate(0); } 56% { transform: rotate(5deg); } 60% { transform: rotate(-4deg); } 64% { transform: rotate(3deg); } 68% { transform: rotate(-2deg); } 72% { transform: rotate(0); } }
@keyframes pflash { 0% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes develop { 0% { opacity: 0; } 40%, 100% { opacity: 1; } }
@media (max-width: 960px) {
  .lost { grid-template-columns: 1fr; text-align: center; gap: 2svh; padding-top: calc(var(--nav-h) + 3svh); }
  .lost__copy { margin: 0 auto; }
  .lost__txt { margin-left: auto; margin-right: auto; }
  .lost__ctas, .lost__links { justify-content: center; }
  .lost__stage { order: -1; min-height: 0; }
  .ghostpola { --pw: min(46vw, 26svh); }
}
@media (prefers-reduced-motion: reduce) { .ghostpola, .ghostpola__flash, .ghostpola__img::before, .phead__inner > * { animation: none; } .ghostpola__flash { opacity: 0; } }

/* pages légales : informations encore à fournir, bien visibles tant qu'elles manquent */
.prose mark.todo { padding: 1px 6px; border-radius: 6px; background: #FFE3EC; color: var(--rose-ink); font-weight: 700; }
.legal__more { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid rgba(160, 138, 96, .25); font-size: .92rem; color: #7a7d84; }
