/* =========================================================
   DANY HENZER — DH GRAPHICS
   Charte : rouge #e30b17 · noir #1c1c1c · blanc #ffffff
   Titres : Teko Bold · Texte : Oswald Regular
   ========================================================= */

:root {
  --red: #e30b17;
  --black: #1c1c1c;
  --white: #ffffff;
  --card: #242424;          /* noir légèrement éclairci pour les cartes */
  --line: rgba(255, 255, 255, .12);
  --muted: rgba(255, 255, 255, .65);

  --title: "Teko", "Arial Narrow", sans-serif;
  --text: "Oswald", "Arial Narrow", sans-serif;
  /* Les polices sont déclarées dans css/fonts.css (fichiers dans /fonts) */

  --slant: 14px;            /* inclinaison des formes, comme le logo */
  --container: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
strong { font-weight: 400; color: var(--red); }

::selection { background: var(--red); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.red { color: var(--red); }
.star { color: var(--red); }

/* ---------- Typo ---------- */
.title {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 110px);
  line-height: .85;
  text-transform: uppercase;
  transform: skewX(-8deg);
  transform-origin: left bottom;
}

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- Boutons (forme inclinée comme le logo) ---------- */
.btn {
  display: inline-block;
  font-family: var(--title);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 16px 34px 12px;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--white); color: var(--black); }
.btn--outline { background: var(--red); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--white); color: var(--black); }
.btn--cv { background: #2e2e2e; color: var(--white); }
.btn--cv:hover { background: var(--red); color: var(--white); }
.btn--cv span { color: var(--red); transition: color .25s; }
.btn--cv:hover span { color: var(--white); }
.btn--small { font-size: 20px; padding: 10px 24px 7px; }
.btn--big { font-size: clamp(24px, 3.4vw, 40px); padding: 20px 44px 15px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  transition: background .3s, padding .3s;
}
.header.is-scrolled {
  background: rgba(28, 28, 28, .96);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav > a:not(.btn) {
  font-family: var(--title);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  padding-top: 4px;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0) skewX(-30deg);
  transition: transform .25s;
}
.nav > a:not(.btn):hover::after,
.nav > a.is-active::after { transform: scaleX(1) skewX(-30deg); }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; }
.burger span {
  position: absolute; left: 0; height: 3px; width: 100%;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 11px; width: 70%; left: 30%; background: var(--red); }
.burger span:nth-child(3) { top: 20px; }
.burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Présentation ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero__stripes {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: repeating-linear-gradient(-62deg, transparent 0 22px, rgba(227, 11, 23, .09) 22px 26px);
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent);
          mask-image: linear-gradient(to left, #000 20%, transparent);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__grid > * { min-width: 0; }

.hero__name {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(90px, 13vw, 190px);
  line-height: .78;
  text-transform: uppercase;
  transform: skewX(-8deg);
  transform-origin: left bottom;
  margin-bottom: 36px;
}
.hero__name span { display: block; }

.plates { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.plate {
  display: flex; flex-direction: column;
  background: var(--white);
  color: var(--black);
  padding: 12px 38px 8px;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.plate--red { background: var(--white); color: var(--black); }
.plate__label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.plate__value {
  font-family: var(--title);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}

.hero__intro { max-width: 470px; color: var(--muted); font-size: 18px; margin-bottom: 34px; }
.hero__intro strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { font-size: 22px; padding: 15px 26px 11px; }

/* Visuel */
.hero__visual {
  position: relative;
  display: flex; justify-content: center;
}
.hero__number {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-58%, -54%) skewX(-8deg);
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(300px, 38vw, 560px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  opacity: .5;
  z-index: 0;
  user-select: none;
}

.frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  z-index: 1;
}
.frame__back,
.frame__img {
  position: absolute; inset: 0;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}
.frame__back {
  background: var(--red);
  transform: translate(18px, 18px);
}
.frame__img {
  background: var(--white);
  padding: 5px 5px;
}
.frame__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0%;   /* cadrage : 0% = haut de la photo (augmente pour descendre) */
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}

.hero__badge {
  position: absolute;
  right: 0; bottom: -20px;
  width: clamp(110px, 12vw, 160px);
  z-index: 2;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
}

/* ---------- Bande ---------- */
.band {
  background: var(--red);
  transform: skewY(-2.5deg);
  margin: 20px 0;
  overflow: hidden;
  border-top: 4px solid var(--white);
  border-bottom: 4px solid var(--white);
}
.band__inner {
  display: flex; align-items: center; gap: 28px;
  white-space: nowrap;
  padding: 16px 24px 10px;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  text-transform: uppercase;
  transform: skewY(2.5deg);
}
.band .star { color: var(--black); font-size: .7em; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { border-top: 1px solid var(--line); }
.section__head { margin-bottom: 60px; }

/* ---------- Profil ---------- */
.profil {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.profil__body p { color: var(--muted); margin-bottom: 18px; }
.profil__body .lead {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--white);
}
.facts {
  display: flex; gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.facts li {
  flex: 1;
  padding: 22px 0 0;
  display: flex; align-items: baseline; gap: 8px;
}
.facts li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.facts__num {
  font-family: var(--title);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--red);
}
.facts__txt { text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--muted); }

/* ---------- Compétences ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill {
  background: var(--card);
  padding: 30px 30px 32px;
  border-left: 5px solid var(--red);
  transition: transform .25s, background .25s;
}
.skill:hover { transform: translateY(-4px); background: #2a2a2a; }
.skill h3 {
  font-family: var(--title);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.skill p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

.meter { display: flex; gap: 5px; }
.meter span {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, .1);
  transform: skewX(-20deg);
  transition: background .3s;
}
.meter span.is-on { background: var(--red); }

/* ---------- Projets ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--card);
  margin-bottom: 30px;
}
.featured__visual {
  background:
    repeating-linear-gradient(-62deg, transparent 0 22px, rgba(0, 0, 0, .12) 22px 26px),
    var(--red);
  display: grid; place-items: center;
  padding: 60px 40px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.featured__visual img {
  width: min(70%, 320px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35));
  transition: transform .4s;
}
.featured:hover .featured__visual img { transform: scale(1.05) rotate(-3deg); }
.featured__info {
  padding: 50px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.featured__info h3 {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(50px, 6vw, 80px);
  line-height: .9;
  text-transform: uppercase;
  margin: 8px 0 14px;
}
.featured__info p { color: var(--muted); }
.swatches { display: flex; gap: 10px; margin-top: 24px; }
.swatches span {
  width: 54px; height: 34px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  outline: 1px solid var(--line);
}
.swatches span:nth-child(2) { background: #1c1c1c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

.cat {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project { display: block; }
.project__img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--card);
  overflow: hidden;
  margin-bottom: 16px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  transition: background .3s;
}
.project__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .5s;
}
.project__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 60px;
  color: rgba(255, 255, 255, .12);
  transition: color .3s;
}
.project:hover .project__img { background: var(--red); }
.project:hover .project__ph { color: var(--white); }
.project:hover .project__img img { transform: scale(1.06); }
.project h3 {
  font-family: var(--title);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 4px;
  transition: color .25s;
}
.project:hover h3 { color: var(--red); }
.project__note { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Parcours ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  padding-left: 50px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 10px; bottom: 10px;
  width: 3px;
  background: linear-gradient(var(--red), rgba(227, 11, 23, .15));
}
.timeline__item { position: relative; padding-bottom: 50px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "★";
  position: absolute;
  left: -50px; top: -2px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--black);
  color: var(--red);
  font-size: 22px;
  line-height: 1;
}
.timeline__year {
  font-family: var(--title);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--red);
  text-transform: uppercase;
}
.timeline__item h3 {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  margin: 6px 0 4px;
}
.timeline__item p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact__box {
  background:
    repeating-linear-gradient(-62deg, transparent 0 22px, rgba(0, 0, 0, .1) 22px 26px),
    var(--red);
  text-align: center;
  padding: 90px 40px;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}
.contact__box .title { transform: skewX(-8deg); transform-origin: center; margin-bottom: 40px; }
.tag--light { color: rgba(255, 255, 255, .85); }
.tag--light .star { color: var(--black); }
.socials {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
}
.socials a {
  font-family: var(--title);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: border-color .25s;
}
.socials a:hover { border-color: var(--white); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  color: var(--muted);
  font-size: 15px;
}
.footer__logo { height: 64px; width: auto; }
.footer__top { font-family: var(--title); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--white); }
.footer__top:hover { color: var(--red); }

.footer__legal { color: var(--white); border-bottom: 1px solid var(--red); }
.footer__legal:hover { color: var(--red); }

/* ---------- Page mentions légales ---------- */
.legal { padding: 150px 0 100px; }
.legal .container { max-width: 860px; }
.legal__back {
  display: block;
  width: fit-content;
  font-family: var(--title); font-weight: 700;
  font-size: 22px; text-transform: uppercase;
  margin-bottom: 40px;
}
.legal__back:hover { color: var(--red); }
.legal .title { font-size: clamp(48px, 7vw, 90px); }
.legal__updated { color: var(--muted); font-size: 15px; margin-top: 24px; }
.legal__toc {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 40px 0 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal__toc a {
  font-family: var(--title); font-weight: 700;
  font-size: 22px; text-transform: uppercase;
}
.legal__toc a:hover { color: var(--red); }
.legal__section { padding-top: 60px; }
.legal__section h2 {
  font-family: var(--title); font-weight: 700;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1; text-transform: uppercase;
  border-left: 5px solid var(--red);
  padding: 6px 0 0 16px;
  margin-bottom: 26px;
}
.legal__section h3 {
  font-family: var(--title); font-weight: 700;
  font-size: 28px; line-height: 1; text-transform: uppercase;
  color: var(--red);
  margin: 30px 0 10px;
}
.legal__section p { color: var(--muted); margin-bottom: 14px; }
.legal__section p a, .legal__list a { color: var(--white); border-bottom: 1px solid var(--red); }
.legal__section strong { color: var(--white); }
.legal__list { margin: 0 0 14px; }
.legal__list li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--muted); }
.legal__list li::before { content: "★"; position: absolute; left: 0; color: var(--red); }

/* Texte à compléter : bien visible tant qu'il n'est pas remplacé */
.todo { background: var(--red); color: var(--white); padding: 0 6px; }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .skills { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured__visual { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    background: var(--black);
    border-bottom: 3px solid var(--red);
    padding: 28px 24px 32px;
    transform: translateY(-10px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) { font-size: 34px; }
  .header { background: rgba(28, 28, 28, .96); }
  .header__logo img { height: 32px; }

  .hero { padding-top: 110px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 70px; }
  .hero__visual { order: -1; }
  .frame { width: min(78%, 340px); }
  .hero__number { font-size: 90vw; }
  .hero__name { font-size: 24vw; }

  .profil { grid-template-columns: 1fr; gap: 30px; }
  .profil > * { min-width: 0; }
  .section { padding: 90px 0; }
  .section__head { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .skills, .projects { grid-template-columns: 1fr; }
  .plate { padding: 10px 30px 6px; }
  .plate__value { font-size: 32px; }
  .facts__num { font-size: 48px; }
  .facts li + li { padding-left: 14px; }
  .facts li { flex-direction: column; gap: 2px; }
  .contact__box { padding: 70px 24px; clip-path: none; }
  .btn--big { font-size: 22px; padding: 16px 26px 12px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
