/* Galerie de modeles de CV — style editorial en bandes alternees, jetons --jh-* du theme. */
.jh2-cvg { background: #fff; }
.jh2-cvg [hidden], .jh2-cvg-modal [hidden], .jh2-cvg-modal[hidden] { display: none !important; }

/* Bandeau hero + vagues */
.jh2-cvg-hero {
  position: relative;
  background: linear-gradient(135deg, #00282a 0%, var(--jh-blue-700, #095255) 55%, var(--jh-blue-500, #228a8f) 100%);
  color: #fff;
  padding: 2.75rem 0 4.75rem;
  overflow: hidden;
}
.jh2-cvg-hero__inner { max-width: 980px; margin: 0 auto; position: relative; z-index: 2; }
.jh2-cvg-hero__kicker { margin: 0 0 .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.jh2-cvg-hero h1 { margin: 0 0 .75rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.15; color: #fff; }
.jh2-cvg-hero__lead { margin: 0; max-width: 40rem; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.jh2-cvg-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 58px; display: block; pointer-events: none; z-index: 1; }
@media (min-width: 768px) {
  .jh2-cvg-hero { padding: 3.5rem 0 5.75rem; }
  .jh2-cvg-hero__wave { height: 82px; }
}

/* Bandes alternees */
.jh2-cvg-rows { display: flex; flex-direction: column; }
.jh2-cvg-row { position: relative; padding: 2.5rem 1rem 3rem; background: #fff; }
.jh2-cvg-row.is-even { background: #f2f4f7; }
@media (min-width: 768px) { .jh2-cvg-row { padding: 3.25rem 1.5rem 3.75rem; } }

.jh2-cvg-row__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 720px) {
  .jh2-cvg-row__inner { grid-template-columns: 200px minmax(0, 1fr); gap: 2.75rem; }
  .jh2-cvg-row.is-even .jh2-cvg-row__inner { grid-template-columns: minmax(0, 1fr) 200px; }
  .jh2-cvg-row.is-even .jh2-cvg-row__media { order: 2; }
  .jh2-cvg-row.is-even .jh2-cvg-row__body { order: 1; text-align: right; align-items: flex-end; }
  .jh2-cvg-row.is-even .jh2-cvg-row__head { justify-content: flex-end; }
}

.jh2-cvg-row__media { display: flex; justify-content: center; }
.jh2-cvg-thumb {
  display: block;
  width: 175px;
  padding: 0;
  border: 1px solid var(--jh-gray-200, #e5e7eb);
  border-top: 3px solid var(--row-accent, #1e3a8a);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .11), 0 2px 6px rgba(15, 23, 42, .06);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 720px) { .jh2-cvg-thumb { width: 196px; } }
.jh2-cvg-thumb:hover, .jh2-cvg-thumb:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15, 23, 42, .16); }
.jh2-cvg-thumb:focus-visible { outline: 3px solid var(--jh-blue-400, #38abb1); outline-offset: 3px; }
.jh2-cvg-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: top center; }

.jh2-cvg-row__body { display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 720px) { .jh2-cvg-row__body { align-items: flex-start; text-align: left; } }

.jh2-cvg-row__head { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
@media (min-width: 720px) { .jh2-cvg-row__head { justify-content: flex-start; } }
.jh2-cvg-row__title { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--jh-gray-900, #111827); }

.jh2-cvg-badge {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--row-accent, #1e3a8a);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
}
.jh2-cvg-color {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--jh-gray-600, #4b5563);
  background: rgba(15, 23, 42, .05);
  padding: .2rem .6rem;
  border-radius: 999px;
}
.jh2-cvg-color i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.jh2-cvg-rule { display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--row-accent, #1e3a8a); margin: .7rem 0 .85rem; }
.jh2-cvg-row__desc { margin: 0 0 1.2rem; max-width: 36rem; font-size: .98rem; line-height: 1.6; color: var(--jh-gray-600, #4b5563); }

.jh2-cvg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.3rem;
  border-radius: 8px;
  border: 0;
  background: var(--jh-blue-600, #0c6468);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.jh2-cvg-cta:hover, .jh2-cvg-cta:focus-visible { background: var(--jh-blue-700, #095255); transform: translateY(-1px); }

/* Petits triangles de transition entre bandes, comme sur la maquette */
.jh2-cvg-notch {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.jh2-cvg-notch span {
  display: block;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #f2f4f7;
}
.jh2-cvg-row.is-even .jh2-cvg-notch span { border-bottom-color: #fff; }
.jh2-cvg-row:last-child .jh2-cvg-notch { display: none; }

/* Modale */
.jh2-cvg-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.jh2-cvg-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .65); backdrop-filter: blur(2px); }
.jh2-cvg-modal__panel { position: relative; z-index: 1; width: 100%; max-width: 820px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px rgba(15, 23, 42, .25); padding: 1.25rem; }
@media (min-width: 720px) { .jh2-cvg-modal__panel { padding: 1.75rem; } }

.jh2-cvg-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--jh-gray-200, #e5e7eb); margin-bottom: 1.25rem; }
.jh2-cvg-modal__model { display: flex; align-items: center; gap: .75rem; }
.jh2-cvg-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.jh2-cvg-modal__kicker { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--jh-gray-500, #6b7280); }
.jh2-cvg-modal__head h2 { margin: 0; font-size: 1.3rem; color: var(--jh-gray-900, #111827); }
.jh2-cvg-modal__close { min-width: 44px; min-height: 44px; border: 1px solid var(--jh-gray-200, #e5e7eb); border-radius: 10px; background: #fff; font-size: 1.15rem; cursor: pointer; color: var(--jh-gray-700, #374151); }
.jh2-cvg-modal__close:hover { background: var(--jh-gray-100, #f3f4f6); }

.jh2-cvg-modal__content { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .jh2-cvg-modal__content { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.jh2-cvg-modal__thumb { display: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--jh-gray-200, #e5e7eb); background: #f8fafc; }
@media (min-width: 720px) { .jh2-cvg-modal__thumb { display: block; } }
.jh2-cvg-modal__thumb img { display: block; width: 100%; height: auto; }

.jh2-cvg-modal__intro { margin: 0 0 .9rem; font-weight: 600; color: var(--jh-gray-800, #1f2937); font-size: .98rem; }
.jh2-cvg-modal__choices { display: grid; gap: .75rem; }

.jh2-cvg-choice { display: flex; gap: .85rem; align-items: flex-start; padding: .95rem 1rem; border: 1.5px solid var(--jh-gray-200, #e5e7eb); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
a.jh2-cvg-choice:hover, a.jh2-cvg-choice:focus-visible { border-color: var(--jh-blue-600, #0c6468); background: var(--jh-blue-50, #e3f6f7); outline: none; }
.jh2-cvg-choice__ico { font-size: 1.35rem; line-height: 1.2; flex: none; }
.jh2-cvg-choice strong { display: block; font-size: .98rem; color: var(--jh-gray-900, #111827); margin-bottom: .15rem; }
.jh2-cvg-choice small { display: block; font-size: .85rem; color: var(--jh-gray-600, #4b5563); line-height: 1.4; }

.jh2-cvg-choice--saved { flex-direction: column; gap: .75rem; background: var(--jh-gray-50, #f9fafb); }
.jh2-cvg-choice__head { display: flex; gap: .85rem; align-items: flex-start; }
.jh2-cvg-saved-form { width: 100%; display: grid; gap: .6rem; }
.jh2-cvg-saved-form select { width: 100%; padding: .6rem .75rem; border: 1px solid var(--jh-gray-300, #d1d5db); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--jh-gray-900, #111827); }
.jh2-cvg-saved-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.jh2-cvg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem .95rem; border-radius: 10px; border: 1px solid var(--jh-blue-600, #0c6468); background: var(--jh-blue-600, #0c6468); color: #fff; font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer; flex: 1 1 auto; text-align: center; }
.jh2-cvg-btn:hover { background: var(--jh-blue-700, #095255); }
.jh2-cvg-btn--ghost { background: #fff; color: var(--jh-blue-700, #095255); }
.jh2-cvg-btn--ghost:hover { background: var(--jh-blue-50, #e3f6f7); }
