/* Journal — portage variation Journal.dc.html */

.jr-page {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: #fff;
  color: var(--color-navy, #1E3557);
}

.jr-blob {
  position: absolute;
  left: 0;
  top: 0;
  width: min(58vw, 900px);
  height: min(86vh, 780px);
  background: var(--color-sky, #EDF4FF);
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 0 L176 0 C 166 26 132 30 118 54 C 102 82 126 106 98 128 C 70 148 38 120 20 142 C 6 158 12 186 0 198 Z%22/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 0 L176 0 C 166 26 132 30 118 54 C 102 82 126 106 98 128 C 70 148 38 120 20 142 C 6 158 12 186 0 198 Z%22/%3E%3C/svg%3E');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

.jr-hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 7vh, 96px) clamp(20px, 4vw, 56px) clamp(40px, 6vh, 64px);
}

.jr-eyebrow {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.jr-eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--color-coral, #FF8D7A);
}

.jr-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 56px;
}

.jr-title {
  margin: 0;
  font-size: clamp(64px, 11vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.jr-title-line {
  display: block;
  overflow: visible;
  padding-top: 0.08em;
  padding-bottom: 0.12em;
  line-height: 1;
}

.jr-title-line--pad {
  padding: 0.14em 0.12em 0.12em 0.16em;
}

.jr-title-line > span {
  display: inline-block;
  font-weight: 900;
}

.jr-title-italic {
  font-weight: 200;
  font-style: italic;
}

.jr-title-dot {
  color: var(--color-coral, #FF8D7A);
  font-style: normal;
  font-weight: 900;
}

.jr-hero-side {
  flex: 0 1 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jr-hero-lead {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  font-weight: 600;
  text-wrap: pretty;
}

.jr-search label {
  position: relative;
  display: block;
}

.jr-search input {
  width: 100%;
  padding: 16px 52px 16px 22px;
  border: 1.5px solid var(--color-navy, #1E3557);
  border-radius: 999px;
  background: #fff;
  color: var(--color-navy, #1E3557);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  outline: none;
  transition: box-shadow 0.25s ease;
}

.jr-search input:focus {
  box-shadow: 0 0 0 4px var(--color-coral, #FF8D7A);
}

.jr-search input::placeholder {
  color: #6b7f9c;
  font-style: italic;
  font-weight: 400;
}

.jr-search-ico {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
}

.jr-feat {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(56px, 8vw, 100px);
}

.jr-feat-card {
  display: flex;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--color-sky, #EDF4FF);
  background: var(--color-navy, #1E3557);
  border-radius: 6px 64px 6px 64px;
  overflow: hidden;
  min-height: clamp(360px, 52vh, 560px);
}

.jr-feat-media {
  position: relative;
  flex: 1.2 1 460px;
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
}

.jr-feat-cover {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jr-feat-card:hover .jr-feat-cover {
  transform: scale(1.06);
}

/* Parallax scroll (journal.js) — ne pas laisser le hover écraser */
.jr-page.is-fine-motion .jr-feat-card:hover .jr-feat-cover {
  transform: none;
}

.jr-feat-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  background: var(--color-coral, #FF8D7A);
  color: var(--color-navy, #1E3557);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px 12px 2px 12px;
}

.jr-feat-body {
  flex: 1 1 380px;
  min-width: 0;
  padding: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.jr-feat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
  font-weight: 700;
}

.jr-pill {
  padding: 6px 12px;
  border: 1.5px solid var(--color-sky, #EDF4FF);
  border-radius: 999px;
}

.jr-feat-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 3.8vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.jr-feat-excerpt {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  text-wrap: pretty;
}

.jr-feat-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-coral, #FF8D7A);
  color: var(--color-navy, #1E3557);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 2px 22px 2px 22px;
}

.jr-list {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(96px, 12vw, 160px);
}

.jr-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  padding-bottom: 20px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 2px solid var(--color-navy, #1E3557);
}

.jr-list-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.jr-list-count {
  font-weight: 200;
  font-style: italic;
  font-variant-numeric: tabular-nums;
}

.jr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jr-chip {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--color-navy, #1E3557);
  border-radius: 999px;
  background: transparent;
  color: var(--color-navy, #1E3557);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.jr-chip.is-active,
.jr-chip:hover {
  background: var(--color-navy, #1E3557);
  color: var(--color-sky, #EDF4FF);
}

.jr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.jr-empty {
  padding: 60px 0;
  text-align: center;
}

.jr-empty-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.03em;
}

.jr-empty-hand {
  margin: 10px 0 0;
  font-size: 26px;
}

.jr-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2.2vw, 32px);
}

.jr-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--color-navy, #1E3557);
}

.jr-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  transition: border-radius 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jr-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Fallback tactile / reduced-motion : scale mockup (pas de translateY) */
.jr-card:hover .jr-card-img {
  transform: scale(1.08);
}

/* Pointeur fin + motion : tilt 3D / scale gérés en JS */
.jr-page.is-fine-motion .jr-card:hover .jr-card-img {
  transform: none;
}

.jr-page.is-fine-motion .jr-card:hover .jr-card-go {
  transform: scale(0);
}

.jr-card-img--type {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.05em;
  color: var(--color-navy, #1E3557);
  background: var(--color-sky, #EDF4FF);
}

.jr-card-cat {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #faf9f7;
  color: var(--color-navy, #1E3557);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 2px 10px 2px 10px;
}

.jr-card-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-coral, #FF8D7A);
  color: var(--color-navy, #1E3557);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jr-card:hover .jr-card-go {
  transform: scale(1);
}

.jr-card-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
}

.jr-card-title {
  font-weight: 900;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.jr-card-excerpt {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  text-wrap: pretty;
}

.jr-pager {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jr-cta {
  position: relative;
  background: var(--color-navy, #1E3557);
  color: var(--color-sky, #EDF4FF);
}

.jr-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(80px, 8vw, 120px) clamp(20px, 4vw, 56px) clamp(90px, 12vw, 170px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
}

.jr-cta-title {
  margin: 0;
  font-size: clamp(48px, 8vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.jr-cta-strong {
  display: block;
  font-weight: 900;
}

.jr-cta-italic {
  display: block;
  font-weight: 200;
  font-style: italic;
  color: var(--color-coral, #FF8D7A);
}

.jr-cta-side {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jr-cta-side p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

/* Article */
.jr-article {
  background: #fff;
  color: var(--color-navy, #1E3557);
}

.jr-article-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 53, 87, 0.08);
}

.jr-article-top-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.jr-back {
  text-decoration: none;
  border: 1.5px solid var(--color-navy, #1E3557);
  background: transparent;
  color: var(--color-navy, #1E3557);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.jr-back:hover {
  background: var(--color-navy, #1E3557);
  color: var(--color-sky, #EDF4FF);
}

.jr-article-hero {
  position: relative;
  overflow: hidden;
}

.jr-article-hero-blob {
  position: absolute;
  left: 0;
  top: 0;
  width: min(58vw, 880px);
  height: 100%;
  background: var(--color-sky, #EDF4FF);
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 0 L176 0 C 166 26 132 30 118 54 C 102 82 126 106 98 128 C 70 148 38 120 20 142 C 6 158 12 186 0 198 Z%22/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 0 L176 0 C 166 26 132 30 118 54 C 102 82 126 106 98 128 C 70 148 38 120 20 142 C 6 158 12 186 0 198 Z%22/%3E%3C/svg%3E');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.jr-article-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 6vh, 80px) clamp(20px, 4vw, 56px) clamp(32px, 5vh, 56px);
}

.jr-article-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  background: #fff;
  border: 1.5px solid var(--color-navy, #1E3557);
  border-radius: 2px 12px 2px 12px;
}

.jr-article-title {
  margin: 24px 0 0;
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.jr-article-dek {
  margin: clamp(20px, 3vh, 32px) 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5;
  font-weight: 600;
}

.jr-article-by {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-size: 14px;
  font-weight: 700;
}

.jr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy, #1E3557);
  color: var(--color-coral, #FF8D7A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.jr-article-cover-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.4vw, 40px);
}

.jr-article-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 240px;
  max-width: 100%; /* sinon min-height × 21/9 élargit le cadre à 560px sur mobile */
  border-radius: 6px 64px 6px 64px;
  overflow: hidden;
  background: var(--color-sky, #EDF4FF);
}

.jr-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jr-article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 88px) clamp(20px, 4vw, 56px) clamp(64px, 9vh, 110px);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 500;
}

.jr-article-body .blog-prose h2 {
  margin: 1.9em 0 0.5em;
  font-weight: 900;
  font-size: 1.65em;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.jr-article-body .blog-prose p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

.jr-article-body .blog-prose blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 24px;
  border-left: 4px solid var(--color-coral, #FF8D7A);
  font-family: Bimbo, 'Gochi Hand', cursive;
  font-size: 1.55em;
  line-height: 1.25;
}

.jr-author-box {
  margin-top: 56px;
  padding: 26px;
  border-radius: 6px 40px 6px 40px;
  background: var(--color-navy, #1E3557);
  color: var(--color-sky, #EDF4FF);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.jr-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-coral, #FF8D7A);
  color: var(--color-navy, #1E3557);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
  flex: none;
}

.jr-author-box a {
  text-decoration: none;
  background: var(--color-coral, #FF8D7A);
  color: var(--color-navy, #1E3557);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 2px 18px 2px 18px;
}

.jr-related {
  background: #faf9f7;
}

.jr-related-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 4vw, 56px);
}

.jr-related-title {
  margin: 0 0 28px;
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 52px);
  letter-spacing: -0.04em;
}

.jr-related-title em {
  font-weight: 200;
  font-style: italic;
}

.jr-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.jr-related-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1.5px solid var(--color-navy, #1E3557);
  border-radius: 4px 28px 4px 28px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jr-related-card:hover {
  transform: translateY(-4px);
}

.jr-related-thumb {
  flex: none;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 4px 18px 4px 18px;
  background: var(--color-sky, #EDF4FF);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  overflow: hidden;
}

.jr-related-meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jr-related-card-title {
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-navy, #1E3557);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 899px) {
  .jr-page {
    overflow-x: clip;
  }

  .jr-title {
    font-size: clamp(44px, 14vw, 80px);
    letter-spacing: -0.04em;
  }

  .jr-title-line--pad {
    padding-left: 0.22em;
  }

  .jr-hero {
    padding-top: clamp(40px, 8vh, 72px);
  }

  .jr-feat-card {
    min-height: 0;
  }

  .jr-feat-body {
    padding: clamp(20px, 5vw, 36px);
  }

  .jr-feat-title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .jr-list-title,
  .jr-related-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .jr-article-title {
    font-size: clamp(32px, 9vw, 64px);
  }

  /* Mobile : image de l'article entière, sans recadrage */
  .jr-article-cover {
    aspect-ratio: auto;
    min-height: 0;
  }

  .jr-article-cover img {
    height: auto;
  }
}
