/* ============ Le carnet de voyage (sentimental) et la communauté (succès entre amis) ============ */

/* --- Carnet : des polaroïds qui se retournent pour raconter leur histoire --- */
.journal { padding-bottom: clamp(70px, 11vh, 110px); }
.jr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pols { list-style: none; margin: 0; padding: 10px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px) clamp(12px, 1.8vw, 22px); }
.pol { transform: rotate(var(--r)); transition: transform .5s var(--ease-out); }
.pol:nth-child(4) { margin-left: 18%; } .pol:nth-child(5) { margin-right: -18%; }
@media (hover: hover) and (pointer: fine) { .pol:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 2; } }
.pol-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.9; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; font: inherit; color: inherit; text-align: left; }
.pol-front, .pol-back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9px 9px 0; border-radius: 4px; background: #fffdf8; box-shadow: 0 1px 0 rgba(19, 33, 27, .05), 0 22px 34px -22px rgba(58, 40, 18, .55);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .8s var(--ease-drawer); }
.pol-front img { width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: 2px; }
.pol-cap { padding: 9px 2px 12px; font-size: .78rem; font-style: italic; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.pol-back { transform: rotateY(180deg); justify-content: space-between; padding: 18px 16px 14px; background: #fbf5e9; }
.pol-back::before { content: ""; position: absolute; left: 50%; top: -10px; width: 64px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(231, 167, 74, .35); }
.pol-note { font-size: .86rem; font-style: italic; line-height: 1.5; color: var(--ink); }
.pol-sign { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 500; color: var(--ink-soft); }
.pol-sign img { width: 10px; }
.pol-card[aria-pressed="true"] .pol-front { transform: rotateY(-180deg); }
.pol-card[aria-pressed="true"] .pol-back { transform: rotateY(0); }
.pol-front::after { content: ""; position: absolute; left: 50%; top: -9px; width: 56px; height: 18px; transform: translateX(-50%) rotate(2deg); background: rgba(205, 187, 152, .55); }
.jr-hint { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .84rem; color: var(--ink-soft); }
.jr-hint i { color: var(--amber-deep); font-size: 1.05rem; }
.jr-side { display: grid; gap: 16px; }
.jr-mem { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: #fffdf8; box-shadow: 0 24px 44px -30px rgba(16, 36, 28, .6); }
.jr-mem-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--forest); }
.jr-mem-ico img { width: 13px; filter: brightness(0) invert(88%) sepia(40%) saturate(500%) hue-rotate(350deg); }
.jr-mem small { display: block; font-size: .72rem; color: var(--ink-soft); }
.jr-mem b { display: block; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.jr-mem-link { display: inline-block; margin-top: 2px; font-size: .78rem; font-weight: 500; color: var(--amber-deep); }
.jr-mem-img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.jr-map { padding: 16px 16px 10px; border-radius: 22px; background: #fffdf8; box-shadow: 0 24px 44px -30px rgba(16, 36, 28, .6); }
.jr-map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.jr-map-head b { font-size: 1rem; font-weight: 500; }
.jr-map-head small { font-size: .76rem; color: var(--ink-soft); }
.jr-map svg { display: block; width: 100%; height: auto; border-radius: 12px; background: #d8e5e6; }
.jm-route { fill: none; stroke: var(--forest); stroke-width: 3; stroke-dasharray: 5 9; stroke-linecap: round; opacity: .7; }
.jm-home { fill: var(--amber-deep); }
.jm-pt { fill: var(--forest); stroke: #fffdf8; stroke-width: 4; }

/* --- Communauté : passeport, classement, badges, défi, année --- */
.club { margin: 0 12px; border-radius: 28px; background: var(--g-forest); color: var(--ivory); overflow: hidden; }
.club-inner { max-width: 1280px; margin: 0 auto; padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 56px); }
.club .caption { color: rgba(244, 239, 228, .75); } .club .caption i { color: var(--amber-hi); }
.club .block-title em { background: var(--g-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.club .block-lead { color: rgba(244, 239, 228, .75); }
.club-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cl-card { padding: 20px; border-radius: 24px; background: rgba(244, 239, 228, .07); box-shadow: inset 0 0 0 1px rgba(244, 239, 228, .1); }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.cl-head b { font-size: 1.02rem; font-weight: 500; }
.cl-head small { font-size: .74rem; color: rgba(244, 239, 228, .6); }

/* tampons du passeport */
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stamp { --ink: var(--amber-hi); position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; width: 100%; aspect-ratio: 1; padding: 6px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink);
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0) 59%), rgba(244, 239, 228, .04);
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 5px rgba(0, 0, 0, 0), inset 0 0 0 6px var(--ink); transform: rotate(var(--r)); transition: transform .4s var(--ease-out); }
.stamp[data-ink="forest"] { --ink: #9fd0b4; } .stamp[data-ink="rust"] { --ink: #f0a07a; }
.stamp b { font-size: 1.25rem; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.stamp span { font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.stamp small { font-size: .56rem; opacity: .8; }
.stamp.is-lock { --ink: rgba(244, 239, 228, .28); border-radius: 50%; }
.stamp.is-lock em { position: absolute; bottom: -18px; left: 0; right: 0; font-size: .56rem; font-style: normal; text-align: center; color: rgba(244, 239, 228, .45); }
.stamp.is-stamped { animation: stampIn .5s var(--ease-out); }
@keyframes stampIn { 0% { transform: rotate(var(--r)) scale(1.5); opacity: .2; } 60% { transform: rotate(var(--r)) scale(.94); opacity: 1; } 100% { transform: rotate(var(--r)) scale(1); } }
.stamps li:nth-child(n+4) { margin-bottom: 14px; }

/* classement entre amis */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rk { display: grid; grid-template-columns: 18px 32px 1fr 70px 22px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; transition: background-color .4s; }
.rk.is-me { background: rgba(244, 239, 228, .1); box-shadow: inset 0 0 0 1px rgba(245, 208, 140, .45); }
.rk-pos { font-size: .82rem; font-weight: 600; color: rgba(244, 239, 228, .6); }
.rk:first-child .rk-pos { color: var(--amber-hi); }
.rk .avatar { width: 32px; height: 32px; font-size: .72rem; box-shadow: none; }
.rk-name { font-size: .9rem; font-weight: 500; line-height: 1.2; }
.rk-name small { display: block; font-size: .64rem; font-weight: 500; color: var(--amber-hi); }
.rk-bar { height: 6px; border-radius: 6px; background: rgba(244, 239, 228, .12); overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--g-amber); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.club.is-in .rk-bar i { transform: scaleX(var(--v)); }
.rk-val { font-size: .9rem; font-weight: 600; text-align: right; }

/* mon année : la carte qu'on a envie de partager */
.cl-year { grid-row: span 2; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(160deg, #f5d08c 0%, #e7a74a 45%, #c77a2c 100%); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(199, 122, 44, .6); }
.cy-k { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; }
.cy-k img { width: 12px; }
.cy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.cy-stats p { display: grid; }
.cy-stats b { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.cy-stats span { margin-top: 4px; font-size: .8rem; font-weight: 500; color: rgba(19, 33, 27, .72); }
.cy-stats .wide { grid-column: 1 / -1; }
.cy-top { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(19, 33, 27, .9); color: var(--amber-hi); font-size: .84rem; font-weight: 500; }
.cl-year .pill-lg { margin-top: auto; align-self: stretch; justify-content: center; background: var(--forest); color: var(--ivory); box-shadow: none; border: 0; cursor: pointer; font-family: inherit; }

/* badges rares */
.rb { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rb li { display: flex; align-items: center; gap: 12px; }
.rb-ico { position: relative; overflow: hidden; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(150deg, var(--forest-hi), var(--forest)); color: var(--amber-hi); font-size: 1.2rem; box-shadow: inset 0 0 0 2px #d39a4a; }
.rb-ico::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-160%) rotate(20deg); animation: shine 3.4s ease-in-out infinite; }
.rb li:nth-child(2) .rb-ico::after { animation-delay: .6s; } .rb li:nth-child(3) .rb-ico::after { animation-delay: 1.2s; }
.rb b { display: block; font-size: .92rem; font-weight: 500; }
.rb small { display: block; font-size: .74rem; color: rgba(244, 239, 228, .6); }

/* défi du mois */
.cg-d { font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.cg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 12px; }
.cg-steps i { height: 8px; border-radius: 8px; background: rgba(244, 239, 228, .14); }
.cg-steps i.on { background: var(--g-amber); }
.cg-p { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--amber-hi); }
.club-note { margin-top: 20px; font-size: .74rem; color: rgba(244, 239, 228, .5); }

@media (max-width: 1000px) {
  .jr-grid { grid-template-columns: 1fr; }
  .club-grid { grid-template-columns: 1fr 1fr; }
  .cl-year { grid-row: auto; grid-column: 1 / -1; order: -1; }
}
@media (max-width: 760px) {
  .journal.block { padding-top: 64px; }
  .pols { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -20px; padding: 16px 20px 18px; }
  .pols::-webkit-scrollbar { display: none; }
  .pol { flex: 0 0 64%; scroll-snap-align: center; margin: 0 !important; }
  .jr-hint { justify-content: center; margin-top: 6px; }
  .club { margin: 0 10px; border-radius: 24px; }
  .club-inner { padding: 64px 16px; }
  .club-grid { grid-template-columns: 1fr; gap: 12px; }
  .cl-card { padding: 16px; border-radius: 22px; }
  .stamps { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .rb-ico::after { animation: none; } .pol-front, .pol-back { transition: none; } }

/* --- Le sac : l'argument écologique, en trois temps --- */
.eco { max-width: 1280px; margin: clamp(40px, 8vh, 90px) auto 0; padding: 0 clamp(8px, 3vw, 44px); }
.eco-head { max-width: 46rem; margin-bottom: 30px; }
.eco-title { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.eco-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); }
.eco-steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: calc(clamp(160px, 16vw, 220px) / 2); height: 2px; background: repeating-linear-gradient(90deg, rgba(29, 59, 48, .35) 0 6px, transparent 6px 12px); z-index: 0; }
.eco-steps li { position: relative; z-index: 1; }
.eco-img { position: relative; margin: 0; height: clamp(160px, 16vw, 220px); border-radius: 20px; overflow: hidden; background: var(--sand); box-shadow: 0 26px 50px -38px rgba(16, 36, 28, .6); }
.eco-img img { width: 100%; height: 100%; object-fit: cover; }
.eco-steps li:first-child .eco-img img { filter: grayscale(.6) brightness(.95); }
.eco-ico { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fffdf8; color: var(--forest); font-size: 1.15rem; box-shadow: 0 10px 20px -10px rgba(16, 36, 28, .6); }
.eco-steps li:last-child .eco-ico { background: var(--forest); color: var(--amber-hi); }
.eco-sk { margin-top: 14px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-deep); }
.eco-steps li:first-child .eco-sk { color: var(--ink-soft); }
.eco-steps h4 { margin: 4px 0 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; }
.eco-sb { margin-top: 4px; font-size: .92rem; color: var(--ink-soft); }
.eco-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.eco-points li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(29, 59, 48, .07); font-size: .88rem; font-weight: 500; color: var(--forest); }
.eco-points i { font-size: 1.1rem; }
@media (max-width: 760px) {
  .eco { padding: 0 4px; margin-top: 40px; }
  .eco-steps { grid-template-columns: 1fr; gap: 18px; padding-left: 26px; }
  .eco-steps::before { left: 7px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(29, 59, 48, .35) 0 6px, transparent 6px 12px); }
  .eco-steps li::before { content: ""; position: absolute; left: -24px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); box-shadow: inset 0 0 0 2px var(--forest); }
  .eco-steps li:last-child::before { background: var(--amber); box-shadow: none; }
  .eco-img { height: 150px; }
}

/* --- Chiffres publics, qui montent à l'arrivée --- */
.fstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 6vh, 56px); padding-top: clamp(28px, 4vh, 40px); border-top: 1px solid rgba(19, 33, 27, .1); }
.stat-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.stat-n { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat-v span { font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 500; color: var(--amber-deep); }
.stat-t { margin-top: 10px; max-width: 30ch; font-size: .95rem; color: var(--ink-soft); }
.stats-src { grid-column: 1 / -1; font-size: .74rem; color: var(--ink-soft); opacity: .85; }
.stats-src a { color: inherit; }
@media (max-width: 760px) {
  .fstats { grid-template-columns: 1fr; gap: 22px; }
  .stat { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
  .stat-v { flex-direction: column; gap: 2px; min-width: 104px; }
  .stat-n { font-size: 2.6rem; }
  .stat-v span { font-size: .86rem; }
  .stat-t { margin-top: 0; font-size: .9rem; }
}
/* bandeau : 4 chiffres liés au problème de feetch */
.fstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fstats-k { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--forest); }
.fstats-k i { color: var(--amber-deep); font-size: 1.1rem; }
.stat-v .stat-pre { width: 100%; font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.stat-n { font-size: clamp(2.6rem, 4.4vw, 4rem); }
@media (max-width: 1000px) { .fstats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .fstats { grid-template-columns: 1fr; }
  .stat-v .stat-pre { font-size: .72rem; }
}
.stat-v [data-i18n="stats.1.u"], .stat-v [data-i18n="stats.2.u"] { font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-left: -4px; }
@media (min-width: 761px) {
  .fstats-k { margin-bottom: 10px; }
  .stat-v { position: relative; }
  .stat-v .stat-pre { position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; }
}
@media (max-width: 760px) {
  .stat { grid-template-columns: 138px 1fr; }
  .stat-v { flex-direction: row; align-items: baseline; gap: 2px 8px; min-width: 0; }
  .stat-v [data-i18n="stats.1.u"], .stat-v [data-i18n="stats.2.u"] { font-size: 1.7rem; }
}

/* v10.3 : passeport feetch, une vraie page de papier et les vrais modèles de tampons d'entrée */
.pp-page { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; padding: 16px 12px 20px; border-radius: 14px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .55), transparent 60%),
    repeating-radial-gradient(circle at 110% 120%, rgba(120, 96, 52, .06) 0 1px, transparent 1px 9px),
    #efe6d1;
  box-shadow: inset 0 0 0 1px rgba(90, 70, 30, .12), inset 0 -24px 40px -30px rgba(90, 70, 30, .35); }
.pp-page::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: rgba(90, 70, 30, .12); display: none; }
.pstamp { position: relative; display: grid; place-items: center; aspect-ratio: 1.2; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(var(--r)); touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.ps-art { display: block; width: 100%; mix-blend-mode: multiply; opacity: .86; }
.ps-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.ps-art .ink { filter: url(#stamp-ink); font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; }
.pstamp[data-c="MX"] .ps-art { width: 84%; }
.pstamp.is-lock { border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(90, 70, 30, .28); background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(90, 70, 30, .05) 6px 7px); transform: rotate(0); align-content: center; gap: 2px; }
.pstamp.is-lock .pl-name { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(60, 46, 20, .6); }
.pstamp.is-lock em { font-size: .6rem; font-style: normal; color: rgba(60, 46, 20, .5); }
.pstamp:not(.is-lock) .pl-name, .pstamp:not(.is-lock) em { display: none; }
.pstamp.is-stamped .ps-art { animation: ppStamp .55s var(--ease-out); }
@keyframes ppStamp { 0% { transform: scale(1.35); opacity: 0; } 45% { transform: scale(.94); opacity: 1; } 70% { transform: scale(1.02); } 100% { transform: none; } }
.pstamp.is-stamped { animation: ppThud .55s var(--ease-out); }
@keyframes ppThud { 0%, 40% { transform: rotate(var(--r)); } 50% { transform: rotate(var(--r)) translateY(1.5px); } 100% { transform: rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .pstamp.is-stamped, .pstamp.is-stamped .ps-art { animation: none; } }
@media (hover: hover) and (pointer: fine) { .pstamp.is-lock:hover { box-shadow: inset 0 0 0 1.5px rgba(90, 70, 30, .5); } }
.ps-art { opacity: .92; }
.pstamp.is-lock { font-family: "Poppins", sans-serif; }
