/* ============================================================
   INVprod — Hub Yan Bolle
   Aligné sur le style du portfolio « mon travail » (app.css)
   Charte INVprod v9 : noir/blanc/gris, Montserrat, sobre & contrasté.
   ============================================================ */

:root {
  --black: #000000;
  --dark: #1a1a1a;
  --mid: #707070;
  --light: #d9d9d9;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.16);
  --muted: #9b9b9b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(52px, 10vw, 138px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(34px, 5vw, 70px);
}

h3 {
  font-size: 22px;
}

/* ===== Eyebrow / labels ===== */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Header fixe ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  height: 34px;
  width: auto;
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 34px;
}

.site-nav a {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 132px 32px 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #000 0%,
    rgba(0, 0, 0, 0.82) 48%,
    rgba(0, 0, 0, 0.32) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.hero-content > div {
  max-width: 980px;
}

.hero h1 {
  margin-top: 16px;
}

.hero-subtitle {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.55;
  color: #ececec;
}

/* ===== Boutons ===== */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.button.primary:hover {
  background: var(--light);
  border-color: var(--light);
}

/* ===== Sections ===== */
.section-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 32px;
}

.section-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

/* ===== Mise en avant : Portfolio + Liens ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 280px;
  padding: 40px;
  border: 1px solid var(--border);
  background: #050505;
  transition: background 200ms ease, color 200ms ease,
    border-color 200ms ease, transform 200ms ease;
}

.feature-card h3 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
}

.feature-card p {
  margin: 0;
  max-width: 38ch;
  color: #c6c6c6;
  font-size: 15px;
  line-height: 1.7;
  transition: color 200ms ease;
}

.feature-go {
  margin-top: auto;
  align-self: start;
  padding-top: 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.feature-card:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-4px);
}

.feature-card:hover .eyebrow,
.feature-card:hover p {
  color: var(--mid);
}

/* ===== Bac à sable : grille de projets ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.mini-card {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--border);
  background: #050505;
  transition: border-color 180ms ease, background 180ms ease,
    color 180ms ease, transform 180ms ease;
}

.mini-card h3 {
  font-size: 20px;
  line-height: 1.05;
}

.mini-card .badge {
  justify-self: start;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  transition: inherit;
}

.mini-card:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-3px);
}

.mini-card:hover .badge {
  border-color: var(--black);
  color: var(--black);
}

/* ===== Footer ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-mark {
  height: 44px;
  width: auto;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    min-height: 70px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav a {
    font-size: 10px;
  }

  .hero {
    padding: 150px 18px 48px;
  }

  .section-shell {
    padding-inline: 18px;
  }

  .section-title-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .feature-card {
    padding: 28px;
    min-height: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
}

/* ===== Anti-débordement : le texte reste dans les cartes ===== */
.hero-content,
.hero-content > div,
.feature-card,
.mini-card {
  min-width: 0;
}

h1,
h2,
h3,
.feature-card p,
.mini-card h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}
