/* =========================================================
   EROKINK - PAGE D'ACCUEIL
   Hero + Catégories + Blocs confiance
   Charte : noir / blanc / rouge premium
========================================================= */


/* =========================================================
   CORRECTIONS THEME PRESTASHOP - HOME
========================================================= */

html,
body {
  overflow-x: hidden;
}

/* Supprime les espaces parasites du thème sur la page d'accueil */
body#index #wrapper,
body#index #content-wrapper,
body#index #main,
body#index #content,
body#index .page-content,
body#index .page-home,
body#index .cms-block,
body#index .custom-html,
body#index .elementor,
body#index .elementor-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Supprime les éventuels titres / fils d'Ariane invisibles */
body#index .breadcrumb,
body#index .page-header,
body#index h1.page-title {
  display: none !important;
}

/* Colle le footer au contenu précédent */
body#index footer,
body#index #footer {
  margin-top: 0 !important;
}


/* =========================================================
   RESET LOCAL HOME
========================================================= */

.ek-home-hero,
.ek-home-categories,
.ek-home-proof {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ek-home-hero *,
.ek-home-categories *,
.ek-home-proof * {
  box-sizing: border-box;
}


/* =========================================================
   HERO PRINCIPAL
========================================================= */

.ek-home-hero {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 440px;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.ek-home-copy {
  padding: 58px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #ffffff;
  text-align: left;
}

.ek-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: #111111;
  text-transform: uppercase;
}

.ek-home-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(48px, 5.2vw, 82px);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: -0.06em;
  color: #050505;
  text-transform: uppercase;
}

.ek-home-copy > p:not(.ek-eyebrow) {
  max-width: 560px;
  margin: 28px 0 34px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  color: #2b2b2b;
}

.ek-home-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ek-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border-radius: 0;
}

.ek-btn-primary {
  background: #c4211f;
  color: #ffffff;
  border: 1px solid #c4211f;
}

.ek-btn-primary:hover {
  background: #9f1716;
  border-color: #9f1716;
  color: #ffffff;
  text-decoration: none;
}

.ek-btn-secondary {
  background: transparent;
  color: #111111;
  border: 1px solid #111111;
}

.ek-btn-secondary:hover {
  background: #111111;
  color: #ffffff;
  text-decoration: none;
}


/* =========================================================
   IMAGE HERO DROITE
========================================================= */

.ek-home-visual {
  position: relative;
  min-height: 440px;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0)),
    url("/img/cms/erokink-hero-premium-kink.png");
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Ancienne carte logo masquée */
.ek-home-brand-card {
  display: none !important;
}


/* =========================================================
   SECTION CATEGORIES
========================================================= */

.ek-home-categories {
  display: grid;
  grid-template-columns: 28% 72%;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ek-home-intro {
  padding: 48px 3vw;
  background:
    linear-gradient(135deg, rgba(196, 33, 31, 0.28) 0%, rgba(0, 0, 0, 0.92) 42%, #000000 100%);
  color: #ffffff;
}

.ek-home-intro .ek-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.ek-home-intro h2 {
  margin: 0;
  max-width: 360px;
  font-size: clamp(36px, 3.8vw, 60px);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.ek-home-intro p:not(.ek-eyebrow) {
  max-width: 330px;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.ek-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #050505;
}

.ek-home-cat {
  min-height: 190px;
  padding: 54px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #050505;
  transition: all 0.25s ease;
}

.ek-home-cat:hover {
  background:
    radial-gradient(circle at bottom left, rgba(196, 33, 31, 0.22), transparent 44%),
    #0b0b0b;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

.ek-home-cat span {
  display: block;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: uppercase;
}

.ek-home-cat small {
  display: block;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.ek-home-cat::after {
  content: "→";
  display: block;
  margin-top: 28px;
  font-size: 22px;
  line-height: 1;
  color: #c4211f;
  transition: transform 0.25s ease;
}

.ek-home-cat:hover::after {
  transform: translateX(6px);
}


/* =========================================================
   BLOCS CONFIANCE / PREUVES
========================================================= */

.ek-home-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
}

.ek-proof-card {
  position: relative;
  min-height: 145px;
  padding: 28px 34px;
  background: #ffffff;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.ek-proof-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(196, 33, 31, 0.055);
  pointer-events: none;
}

.ek-proof-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 950;
  color: #c4211f;
  letter-spacing: 0.08em;
}

.ek-proof-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #080808;
  text-transform: uppercase;
}

.ek-proof-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 330px;
  font-size: 14px;
  line-height: 1.55;
  color: #444444;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1024px) {
  .ek-home-hero {
    grid-template-columns: 48% 52%;
    min-height: 420px;
  }

  .ek-home-copy {
    padding: 52px 5vw;
  }

  .ek-home-visual {
    min-height: 420px;
    background-position: 68% center;
  }

  .ek-home-categories {
    grid-template-columns: 1fr;
  }

  .ek-home-intro {
    padding: 44px 32px;
  }

  .ek-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ek-home-proof {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .ek-home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ek-home-copy {
    padding: 46px 24px;
    text-align: left;
  }

  .ek-home-copy h1 {
    max-width: 100%;
    font-size: clamp(42px, 13vw, 58px);
    line-height: 0.9;
  }

  .ek-home-copy > p:not(.ek-eyebrow) {
    max-width: 100%;
    margin: 24px 0 28px;
    font-size: 15px;
    line-height: 1.6;
  }

  .ek-home-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ek-btn {
    width: 100%;
    min-height: 50px;
  }

  .ek-home-visual {
    min-height: 260px;
    background-size: cover;
    background-position: 62% center;
  }

  .ek-home-intro {
    padding: 42px 24px;
  }

  .ek-home-intro h2 {
    max-width: 100%;
    font-size: clamp(38px, 12vw, 54px);
  }

  .ek-home-intro p:not(.ek-eyebrow) {
    max-width: 100%;
  }

  .ek-home-grid {
    grid-template-columns: 1fr;
  }

  .ek-home-cat {
    min-height: 150px;
    padding: 34px 24px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ek-home-cat small {
    max-width: 100%;
  }

  .ek-home-proof {
    grid-template-columns: 1fr;
  }

  .ek-proof-card {
    padding: 30px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .ek-proof-card p {
    max-width: 100%;
  }
}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 420px) {
  .ek-home-copy {
    padding: 42px 20px;
  }

  .ek-home-copy h1 {
    font-size: 40px;
  }

  .ek-home-visual {
    min-height: 240px;
    background-position: 60% center;
  }

  .ek-home-intro,
  .ek-home-cat,
  .ek-proof-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* =========================================================
   EROKINK - SUPPRESSION ENCADREMENT PAGE D'ACCUEIL
   À placer tout en bas du CSS
========================================================= */

/* Empêche toute barre horizontale */
html,
body {
  overflow-x: hidden !important;
}

/* Supprime le container PrestaShop uniquement sur la home */
body#index #wrapper,
body#index #content-wrapper,
body#index #main,
body#index #content,
body#index .page-content,
body#index .page-home {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force les containers internes du thème à devenir pleine largeur sur la home */
body#index #wrapper .container,
body#index #wrapper .container-fluid,
body#index #content-wrapper .container,
body#index #content-wrapper .container-fluid,
body#index #main .container,
body#index #main .container-fluid,
body#index #content .container,
body#index #content .container-fluid {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Supprime les marges/paddings des modules CMS autour de la home */
body#index .cms-block,
body#index .custom-html,
body#index .elementor,
body#index .elementor-section,
body#index .elementor-container,
body#index .czservicecmsblock,
body#index .czservice-cmsblock,
body#index .cz-cmsblock,
body#index .block-cms {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Supprime breadcrumb/titre de page éventuels */
body#index .breadcrumb,
body#index .page-header,
body#index h1.page-title {
  display: none !important;
}

/* Les blocs EROKINK doivent occuper toute la largeur disponible */
body#index .ek-home-hero,
body#index .ek-home-categories,
body#index .ek-home-proof {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Colle le footer après la section preuve */
body#index footer,
body#index #footer {
  margin-top: 0 !important;
}