/* ==========================================================================
   Presse et médias page (template-presse-medias.php)
   Hero over a photo + downloadable-resources grid + media feature + CTA.
   Static UI ported from demo/générique.html. Scroll-reveal in js/presse-medias.js.
   ========================================================================== */

/* ---- Scroll reveal (armed by JS; visible by default without JS) ----------- */
.gen-reveal.js-armed {
  opacity: 0;
  transform: translateY(24px);
}

.gen-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* ---- Hero ---------------------------------------------------------------- */
.gen-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 58vh, 660px);
  background: #111;
  display: flex;
  align-items: flex-end;
}

.gen-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.gen-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(76deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.78) 46%, rgba(17, 17, 17, 0.28) 100%);
}

.gen-hero-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: clamp(44px, 5.5vw, 92px) clamp(20px, 4vw, 30px) clamp(30px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.gen-hero-eyebrow {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #c3ff74;
}

.gen-hero-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 76px);
  line-height: 0.92;
  letter-spacing: -2.6px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: #fff;
}

.gen-hero-rule {
  height: 8px;
  max-width: 180px;
  background: #c3ff74;
}

.gen-hero-lead {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  color: #dcdcdc;
}

/* ---- Resources ----------------------------------------------------------- */
.gen-resources {
  background: #111;
  padding: clamp(36px, 4.5vw, 72px) clamp(20px, 4vw, 30px) clamp(40px, 5vw, 72px);
}

.gen-res-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  border-top: 1px solid #575757;
  padding-top: 18px;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}

.gen-res-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: #fff;
}

.gen-res-link {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #c3ff74;
  text-decoration: none;
}

.gen-res-link:hover {
  text-decoration: underline;
}

.gen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.gen-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 34px);
  background: #161616;
  border: 1px solid #575757;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.gen-card:hover {
  transform: translateY(-4px);
  border-color: var(--ac, #c3ff74);
}

.gen-card-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ac, #c3ff74);
}

.gen-card-desc {
  margin: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  line-height: 155%;
  color: #a8a8a8;
}

.gen-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--ac, #c3ff74);
  color: var(--ac, #c3ff74);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.gen-btn svg {
  flex: none;
}

.gen-btn:hover {
  background: var(--ac, #c3ff74);
  color: #111;
}

/* ---- Accréditation média ------------------------------------------------- */
.gen-accred {
  background: #111;
  padding: clamp(48px, 6.5vw, 110px) clamp(20px, 4vw, 30px);
}

.gen-accred-text {
  margin: 0 auto;
  max-width: 1000px;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #fff;
  text-align: center;
  text-wrap: pretty;
}

.gen-accred-text p {
  margin: 0;
}

.gen-accred-text a {
  color: inherit;
  text-decoration: none;
}

.gen-accred-text a:hover {
  text-decoration: underline;
}

/* ---- Media feature ------------------------------------------------------- */
.gen-media {
  background: #161616;
  padding: clamp(36px, 4.5vw, 72px) clamp(20px, 4vw, 30px) clamp(32px, 4vw, 56px);
}

.gen-media-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 48px);
  background: #161616;
  border: 1px solid #575757;
  border-top: 8px solid #c3ff74;
}

.gen-media-body {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
}

.gen-media-eyebrow {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #c3ff74;
}

.gen-media-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -1.4px;
  color: #fff;
}

.gen-media-text {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  font-weight: 500;
  line-height: 160%;
  color: #a8a8a8;
}

.gen-media-text sup {
  font-size: 0.6em;
}

.gen-send {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #c3ff74;
  color: #111;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.gen-send svg {
  flex: none;
}

.gen-media-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border: 1px solid #575757;
}

.gen-media-figure img,
.gen-media-figure video,
.gen-media-figure iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* ---- Closing CTA --------------------------------------------------------- */
.gen-cta {
  padding: 0 clamp(20px, 4vw, 30px) clamp(48px, 6vw, 90px);
  background: #111;
}

.gen-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
  background: #c3ff74;
}

.gen-cta-text {
  max-width: 760px;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  text-transform: uppercase;
  color: #111;
}

.gen-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #111;
  color: #c3ff74;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
}

.gen-cta-btn svg {
  flex: none;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .gen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gen-media-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .gen-media-figure {
    order: -1;
  }
}

@media (max-width: 560px) {
  .gen-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
