/* ============================================
   PAGE KIT MÉDIA — 91 FM
   ============================================ */

/* ── Hero (pattern standard pages listantes) ── */
.km-hero {
  position: relative;
  overflow: hidden; /* repli pour les navigateurs sans `clip` */
  overflow: clip;
  padding: 72px 0 64px;
}
.km-hero::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: linear-gradient(135deg, #0f1726 0%, #1a0a0c 50%, #0d1420 100%);
  z-index: 0;
}
.km-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(217,19,25,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(255,255,255,.03) 0%, transparent 60%);
  z-index: 1;
}
.km-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.km-h1 { margin: 0 0 18px; }
.km-hero-sub {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

/* ── Corps ── */
.km-body {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}
.km-section { margin-bottom: 56px; }
.km-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  color: #0B0B0D;
}
.km-section-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
  max-width: 70ch;
}

/* ── Logos ── */
.km-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.km-logo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ECEEF3;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.km-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 38, .10);
  border-color: #E2E5EC;
}
.km-logo-preview {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.km-logo-preview.km-bg-dark  { background: #121216; }
.km-logo-preview.km-bg-light { background: #f4f6fb; }
.km-logo-preview img {
  max-width: 78%;
  max-height: 72%;
  object-fit: contain;
}
.km-logo-noPreview {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(255,255,255,.4);
}
.km-logo-preview.km-bg-light .km-logo-noPreview { color: rgba(11,11,13,.35); }
.km-logo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #ECEEF3;
}
.km-logo-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0B0B0D;
}
.km-logo-formats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.km-logo-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #0f1726;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
  flex-shrink: 0;
}
.km-logo-dl svg { width: 13px; height: 13px; }
.km-logo-card:hover .km-logo-dl { background: var(--brand, #D91319); }
.km-logo-dl, .km-logo-dl:visited { color: #fff; }

.km-empty {
  text-align: center;
  font-size: 15px;
  color: #6b7280;
  padding: 32px 0;
}

/* ── Photos ── */
.km-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.km-photo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ECEEF3;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.km-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 38, .10);
  border-color: #E2E5EC;
}
.km-photo-preview {
  height: 160px;
  background: #f4f6fb;
  overflow: hidden;
  cursor: zoom-in;
}
.km-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.km-photo-card:hover .km-photo-preview img { transform: scale(1.05); }
.km-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #ECEEF3;
}
.km-photo-caption {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}
.km-photo-dl, .km-photo-dl:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #0f1726;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
  flex-shrink: 0;
}
.km-photo-dl svg { width: 13px; height: 13px; }
.km-photo-card:hover .km-photo-dl { background: var(--brand, #D91319); }

/* ── Lightbox photo ── */
.km-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.km-lightbox.km-open { display: flex; }
.km-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,10,16,.82);
}
.km-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.km-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(8,10,16,.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.km-lightbox-imgwrap {
  position: relative;
  background: #0B0B0D;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.km-lightbox-imgwrap img {
  max-width: 100%;
  max-height: 65vh;
  display: block;
}
.km-lightbox-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='130'%3E%3Ctext x='0' y='80' font-family='Arial, sans-serif' font-size='26' font-weight='800' fill='white' fill-opacity='0.22' transform='rotate(-24 110 65)'%3E91 FM%3C/text%3E%3C/svg%3E");
}
.km-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}
.km-lightbox-caption {
  font-size: 13.5px;
  color: #374151;
}

/* ── Couleurs ── */
.km-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.km-color-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ECEEF3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: left;
  padding: 0;
  font: inherit;
}
.km-color-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(15, 23, 38, .12);
}
.km-color-swatch {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 128px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.km-color-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
}
.km-color-label { font-size: 14px; font-weight: 800; color: #0B0B0D; letter-spacing: -.01em; }
.km-color-hex {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f6fb;
  transition: background .2s ease, color .2s ease;
}
.km-color-hex svg { width: 12px; height: 12px; opacity: .6; }
.km-color-card.km-copied .km-color-hex { color: #16a34a; background: #ecfdf3; }

/* ── Typographie ── */
.km-typo-card {
  border: 1px solid #ECEEF3;
  border-radius: 16px;
  background: #fff;
  padding: 32px;
}
.km-typo-sample {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  color: #0B0B0D;
  margin: 0 0 18px;
  line-height: 1;
}
.km-typo-name {
  font-size: 15px;
  font-weight: 800;
  color: #0B0B0D;
}
.km-typo-weights, .km-typo-note {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.55;
  margin: 4px 0 0;
}
.km-typo-link, .km-typo-link:visited {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand, #D91319);
  text-decoration: none;
}
.km-typo-link:hover { text-decoration: underline; }

/* ── Note d'usage ── */
.km-usage {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1.5px solid rgba(217,19,25,.28);
  border-radius: 14px;
  background: #fff;
  padding: 22px 28px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.65;
  color: #4b5563;
}

/* ── CTA contact presse ── */
.km-cta {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f1726 0%, #1a0a0c 60%, #0d1420 100%);
}
.km-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 130%, rgba(217,19,25,.22) 0%, transparent 70%);
}
.km-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px;
}
.km-cta-title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.km-cta-desc {
  margin: 0 0 16px;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
}
.km-cta-btn, .km-cta-btn:visited {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--brand, #D91319);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.km-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217,19,25,.35);
}

@media (max-width: 600px) {
  .km-body { padding: 40px 0 56px; }
  .km-logo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .km-logo-preview { height: 110px; }
  .km-typo-card { padding: 22px; }
}
