/*
Theme Name: Mk3D — Divi Child
Theme URI: https://mk3d.ch
Description: Charte graphique Mk3D pour Divi.
Author: Mk3D
Template: Divi
Version: 0.1.0
Text Domain: mk3d-divi
*/

:root {
  --mk3d-anthracite: #222625;
  --mk3d-copper: #B17C5C;
  --mk3d-copper-text: #875B40;
  --mk3d-ivory: #F6F4F0;
  --mk3d-white: #FFFFFF;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/dm-serif-display.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }

body,
input,
textarea,
select,
button {
  font-family: "Manrope", Arial, sans-serif;
  color: var(--mk3d-anthracite);
}

h1,
h2,
.mk3d-serif {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

h3,
h4,
h5,
h6 {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 700;
}

.mk3d-eyebrow {
  color: var(--mk3d-copper);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mk3d-hero {
  min-height: clamp(520px, 72vh, 820px);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.mk3d-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 23, 22, 0.82) 0%, rgba(20, 23, 22, 0.34) 58%, rgba(20, 23, 22, 0.10) 100%);
  pointer-events: none;
}

.mk3d-hero > .et_pb_row {
  z-index: 1;
  padding-bottom: clamp(42px, 7vw, 92px);
}

.mk3d-hero h1,
.mk3d-hero p {
  color: var(--mk3d-white);
}

.mk3d-hero h1 {
  font-size: clamp(3rem, 6.5vw, 6.7rem);
  line-height: 0.94;
  max-width: 900px;
}

.mk3d-button,
body .et_pb_button {
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.mk3d-button:hover,
body .et_pb_button:hover {
  transform: translateY(-2px);
}

.mk3d-section-ivory { background: var(--mk3d-ivory); }
.mk3d-section-dark { background: var(--mk3d-anthracite); color: var(--mk3d-white); }
.mk3d-section-dark h2,
.mk3d-section-dark h3,
.mk3d-section-dark p { color: var(--mk3d-white); }

@media (max-width: 767px) {
  .mk3d-hero {
    min-height: 580px;
    background-position: 62% center;
  }

  .mk3d-hero::before {
    background: linear-gradient(0deg, rgba(20, 23, 22, 0.90) 0%, rgba(20, 23, 22, 0.26) 72%, rgba(20, 23, 22, 0.10) 100%);
  }

  .mk3d-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }
}
