/* =====================================================================
   KEYTECH — Hero / promos (provisoire — pas encore validé)
   Le menu est dans keytech-menu.css — ne pas y toucher ici.
   Couleurs : aliases vers keytech-brand.css
   ===================================================================== */
:root {
  /* aliases temporairement pour l’ancien hero — à revoir étape 2 */
  --kt-navy: var(--kt-blue-deep);
  --kt-navy-2: var(--kt-blue-deeper);
  --kt-navy-3: var(--kt-blue);
  --kt-cyan-hover: var(--kt-blue-mid);
  --kt-orange: var(--kt-green);
  --kt-orange-hover: var(--kt-green-mid);
  --kt-muted: #c5d0dc;
  --kt-tab: #f3f5f7;
  --kt-tab-text: #4a5560;
  --kt-banner-h: 500px;
  --kt-link: var(--kt-blue-mid);
}

/* Hero banner + tabs — toujours sous le menu */
.kt-hero {
  position: relative;
  z-index: 0 !important;
  background: #eef1f4;
  padding: 1rem 0 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.kt-hero__frame,
.kt-hero__viewport,
.kt-hero__slide,
.kt-hero__slide-hit {
  z-index: 0 !important;
}

.kt-hero__frame {
  position: relative;
  width: min(100% - 32px, var(--kt-max));
  margin-inline: auto;
}

.kt-hero__viewport {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: var(--kt-banner-h);
  max-height: var(--kt-banner-h);
  background: #000;
}

.kt-hero__slide {
  display: none;
  position: absolute;
  inset: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--kt-white);
  background-size: cover;
  background-position: center right;
}

.kt-hero__slide.is-active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 1rem;
}

.kt-hero__slide--1 {
  background:
    radial-gradient(800px 420px at 70% 40%, rgba(0, 174, 1, 0.28), transparent 55%),
    linear-gradient(110deg, #00052e 0%, #0018b4 55%, #000a4a 100%);
}

.kt-hero__slide--2 {
  background:
    radial-gradient(700px 380px at 75% 35%, rgba(79, 218, 251, 0.35), transparent 50%),
    linear-gradient(120deg, #00052e 0%, #244ec4 55%, #000a4a 100%);
}

.kt-hero__slide--3 {
  background:
    radial-gradient(700px 380px at 80% 50%, rgba(0, 24, 180, 0.4), transparent 55%),
    linear-gradient(115deg, #000000 0%, #0018b4 50%, #000a4a 100%);
}

.kt-hero__slide--4 {
  background:
    radial-gradient(700px 380px at 70% 40%, rgba(35, 146, 52, 0.3), transparent 55%),
    linear-gradient(115deg, #00052e 0%, #239234 55%, #000a4a 100%);
}

.kt-hero__slide--5 {
  background:
    radial-gradient(700px 380px at 75% 40%, rgba(0, 15, 243, 0.35), transparent 55%),
    linear-gradient(115deg, #000000 0%, #000ff3 45%, #000a4a 100%);
}

.kt-hero__slide--6 {
  background:
    radial-gradient(700px 380px at 70% 40%, rgba(79, 218, 251, 0.25), transparent 55%),
    linear-gradient(115deg, #00052e 0%, #0018b4 55%, #000000 100%);
}

/* Encarts 1500×500 — plein cadre, sans texte Keytech par-dessus */
.kt-hero--encart .kt-hero__slide--1,
.kt-hero--encart .kt-hero__slide--2,
.kt-hero--encart .kt-hero__slide--3,
.kt-hero--encart .kt-hero__slide--4,
.kt-hero--encart .kt-hero__slide--5,
.kt-hero--encart .kt-hero__slide--6 {
  background-color: #000;
}

.kt-hero--encart .kt-hero__slide {
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.kt-hero--encart .kt-hero__slide.is-active {
  display: block;
}

.kt-hero__copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.kt-hero__copy h2 em {
  font-style: italic;
  color: var(--kt-green);
  display: block;
}

.kt-hero__slide--2 h2 em,
.kt-hero__slide--3 h2 em,
.kt-hero__slide--6 h2 em {
  color: var(--kt-cyan);
}

.kt-hero__copy p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}

.kt-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--kt-green);
  color: var(--kt-white);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.kt-hero__cta:hover {
  background: var(--kt-green-mid);
  color: var(--kt-white);
}

.kt-hero__cta--cyan {
  background: var(--kt-blue);
}

.kt-hero__cta--cyan:hover {
  background: var(--kt-blue-mid);
}

.kt-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.kt-hero__visual img {
  max-width: min(100%, 480px);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.kt-hero__tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--kt-tab);
  border: 1px solid #e2e7ec;
  border-top: 0;
  overflow: hidden;
}

.kt-hero__tabs button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-right: 1px solid #dde3ea;
  background: var(--kt-tab);
  color: var(--kt-tab-text);
  font: inherit;
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  padding: 0.65rem 0.55rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.kt-hero__tabs li:last-child button {
  border-right: 0;
}

.kt-hero__tabs button.is-active,
.kt-hero__tabs button:hover {
  background: var(--kt-green);
  color: var(--kt-white);
}

.kt-hero__tabs button.is-active {
  background: var(--kt-green);
}

.kt-hero__tabs button:hover:not(.is-active) {
  background: var(--kt-green-mid);
}

/* Archive home */
.kt-home-archive {
  background: #fff;
  padding: 1.5rem 0 3rem;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.kt-home-archive__inner {
  width: min(100% - 24px, var(--kt-max));
  margin: 0 auto;
}

.kt-home-title {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.65rem;
}

.kt-home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.kt-home-card {
  text-align: center;
  text-decoration: none;
  color: #333;
  padding: 1rem;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.2s;
}

.kt-home-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.kt-home-card img {
  max-height: 120px;
  width: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.kt-home-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--kt-blue-mid);
}

.kt-home-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
}

.kt-home-block {
  margin-bottom: 2rem;
}

.kt-home-block h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: #444;
}

.kt-home-block h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--kt-green);
}

.kt-home-block--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.kt-home-block a {
  color: var(--kt-blue);
}

@media (max-width: 900px) {
  .kt-home-cards,
  .kt-home-block--grid {
    grid-template-columns: 1fr;
  }

  .kt-hero__viewport {
    height: auto;
    min-height: 360px;
    max-height: none;
  }

  .kt-hero--encart .kt-hero__viewport {
    aspect-ratio: 3 / 1;
    min-height: 200px;
  }

  .kt-hero__slide.is-active {
    grid-template-columns: 1fr;
  }

  .kt-hero__visual {
    order: -1;
  }

  .kt-hero__visual img {
    max-height: 180px;
  }

  .kt-hero__tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .kt-hero__tabs button {
    border-bottom: 1px solid #dde3ea;
  }
}

@media (max-width: 560px) {
  .kt-hero__tabs {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================================
   Page Nouveautés — header LDLC (1792 × 305)
   ===================================================================== */

.landing {
  --corail: #e85d4c;
  --blanc: #ffffff;
  --nuit: #1e2b50;
  --ldlc-blue: #0a3782;
  --ldlc-cyan: #0096c8;
  --ldlc-grey: #969696;
  --ldlc-panel: #eef5f8;
}

.landing .cartouche {
  text-align: center;
  position: absolute;
  display: inline-block;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 0 0 20px 20px !important;
  text-transform: uppercase;
  z-index: 5;
}

.landing .bg-corail {
  background-color: var(--corail) !important;
}

.landing .txt-blanc {
  color: var(--blanc) !important;
}

.landing section {
  padding: 40px 0;
}

.landing section#header {
  position: relative;
  background: #c6b1ec;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Même flou que le bandeau Services (blur 10px) */
.landing section#header::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url('../images/header-page-nouveautes.jpg') center top / cover no-repeat;
  filter: blur(10px);
  transform: scale(1.06);
  z-index: 0;
  pointer-events: none;
}

.landing section#header .container {
  position: relative;
  z-index: 1;
  max-width: 1792px;
  width: 100%;
  height: 305px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 28px;
  box-sizing: border-box;
}

.landing section#header .container img {
  margin: 0 auto;
  max-width: 100%;
}

.landing section#header img.back-pic {
  position: absolute;
  top: -110px;
  left: 50%;
  margin-left: -790px;
  max-width: 370px;
  width: auto;
  height: auto;
  filter: blur(10px);
  transform: scale(1.06);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.landing section#header h1,
.landing section#header h1.txt-blanc {
  position: relative;
  z-index: 2;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 10;
  font-size: 60px;
  line-height: 65px;
  font-weight: 800;
  max-width: 850px;
  margin: 0 auto !important;
  padding: 0;
  text-transform: none !important;
  text-align: center;
  letter-spacing: 0 !important;
  color: var(--blanc) !important;
}

.landing section#header .subtitle {
  position: relative;
  z-index: 2;
  margin: 0 0 0.9rem;
  color: #243b5a;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 32rem;
}

.landing section#header .btn-nuit.btn-center {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--nuit);
  border-radius: 999px;
  background: var(--nuit);
  color: var(--blanc) !important;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.landing section#header .btn-nuit.btn-center:hover {
  background: #1a2d45;
  border-color: #1a2d45;
  color: #fff !important;
}

/* =====================================================================
   Page Nouveautés — blocs catégories (calque capture LDLC)
   ===================================================================== */
.landing section.blocs.tag {
  background: #f4f4f4;
  padding: 50px 0 60px;
}

.landing section.blocs.tag .container {
  /* 740 + 20 + 740 = 1500 — même logique que LDLC, centré */
  max-width: 1500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.landing section.blocs span.pre-title {
  display: block;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 36px;
  font-weight: 500;
  color: #6b6b6b;
}

.landing .txt-nuit {
  color: var(--nuit) !important;
}

.landing section.blocs > .container > h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 40px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 15;
  text-align: center;
  text-transform: initial;
  margin: 0 0 30px;
  letter-spacing: 0;
  color: var(--nuit) !important;
}

.landing section.blocs div.container div.flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}

.landing section.tag div.flex {
  margin-bottom: 20px;
}

.landing section.blocs div.container div.flex > .bloc {
  flex: 0 0 740px;
  width: 740px;
  max-width: 740px;
  height: 436.5px;
  text-align: center;
  background-color: #fff !important;
  border-radius: 8px;
  padding: 35px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.landing .big-br-tl {
  border-radius: 70px 8px 8px 8px !important;
}

.landing .big-br-br {
  border-radius: 8px 8px 70px 8px !important;
}

.landing .bg-blanc {
  background-color: #fff !important;
}

.landing section.blocs .bloc > h3,
.landing section.blocs .bloc > h3.txt-nuit {
  font-size: 26px;
  font-weight: 600;
  line-height: 26px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 15;
  text-align: center;
  text-transform: none;
  margin: 0 0 20px !important;
  width: 100%;
  color: var(--nuit) !important;
}

/* Zone deals */
.landing section.tag div.container div.deals {
  flex: 1 1 auto !important;
  width: 100%;
  padding-top: 0 !important;
  position: relative;
  border-radius: 8px;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
}

.landing section.blocs .container a {
  color: var(--nuit);
}

.landing section.blocs a.btn-center {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.landing section.blocs a.btn-nuit {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  background-color: transparent;
  border: 2px solid var(--nuit);
  color: var(--nuit) !important;
  text-decoration: none;
  transition: 0.3s;
  margin: 0 auto;
  width: auto;
}

.landing section.blocs a.btn-nuit:hover {
  background-color: var(--nuit);
  color: #fff !important;
}

@media (max-width: 1540px) {
  .landing section.blocs.tag .container {
    max-width: calc(100% - 40px);
    padding-inline: 0;
  }

  .landing section.blocs div.container div.flex > .bloc {
    flex: 1 1 calc(50% - 10px);
    width: auto;
    max-width: 740px;
    height: auto;
    min-height: 436.5px;
  }
}

@media (max-width: 991px) {
  .landing section#header h1 {
    font-size: clamp(2.25rem, 8vw, 3.75rem);
    line-height: 1.08;
  }

  .landing section.blocs > .container > h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.15;
  }

  .landing section.blocs div.container div.flex > .bloc {
    flex: 1 1 100%;
    width: 100%;
    max-width: 740px;
    height: auto;
    min-height: 0;
  }

  .landing section#header .container {
    height: auto;
    min-height: 280px;
    padding: 2rem 15px 2.25rem;
  }

  .landing section#header img.back-pic {
    top: -70px;
    margin-left: -890px;
    max-width: 300px;
    filter: blur(6px);
    transform: scale(1.04) rotate(-15deg);
  }
}

@media (max-width: 640px) {
  .landing section#header::before {
    inset: -12px;
    filter: blur(6px);
  }

  .landing section#header .subtitle {
    font-size: 0.9rem;
  }

  .landing section.blocs div.container div.flex > .bloc {
    padding: 24px 18px;
  }

  .landing .big-br-tl,
  .landing .big-br-br {
    border-radius: 24px 8px 8px 8px !important;
  }
}
