/* ==========================================================
   Gerald Verstraeten — CV
   Palette : rouge profond, noir, blanc
   ========================================================== */

:root {
  --red: #a4161a;
  --red-dark: #7a0e12;
  --red-light: #d63a3f;
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --grey-900: #222;
  --grey-700: #4a4a4a;
  --grey-500: #777;
  --grey-200: #e6e6e6;
  --grey-100: #f4f4f4;
  --white: #fff;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0; }

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

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--red); color: var(--white);
  font-weight: 800; font-size: .95rem; letter-spacing: .04em;
  border-radius: 6px;
}
.brand-name { font-weight: 600; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-current { color: var(--white); }
.nav a.is-current:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav .nav-cta { background: var(--red); color: var(--white); margin-left: 8px; }
.nav .nav-cta:hover { background: var(--red-light); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 70px;
  color: var(--white);
  background:
    radial-gradient(1000px 600px at 85% 15%, rgba(164, 22, 26, .45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(164, 22, 26, .18), transparent 60%),
    var(--black);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; }
.hero .eyebrow { color: var(--red-light); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--red-light); }
.hero-role {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
}
.hero-role i { font-style: normal; color: var(--red-light); margin: 0 6px; }
.hero-lead { max-width: 640px; margin: 22px 0 0; color: rgba(255, 255, 255, .7); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); border: 2px solid var(--red); }
.btn-primary:hover { background: var(--red-light); border-color: var(--red-light); }
.btn-ghost { color: var(--white); border: 2px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { border-color: var(--white); }

.hero-stats {
  list-style: none; padding: 0; margin: 64px 0 0;
  display: flex; flex-wrap: wrap; gap: 48px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 30px;
}
.hero-stats li { display: flex; align-items: center; gap: 14px; }
.hero-stats strong { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .6); line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--grey-100); }
.section-dark { background: var(--black); color: var(--white); }
.section-head { margin-bottom: 50px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; }
.section-head h2::after {
  content: ""; display: block;
  width: 56px; height: 4px; margin-top: 18px;
  background: var(--red);
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-intro { max-width: 640px; color: var(--grey-700); margin: 22px 0 0; }

/* ---------- Profil ---------- */
.profil { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.profil-body p { margin: 0 0 18px; color: var(--grey-700); }
.profil-body strong { color: var(--ink); }
.profil-facts {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.profil-facts li {
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: var(--grey-100);
  font-weight: 600; font-size: .95rem;
}
.profil-facts span {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 4px;
}

/* ---------- Missions ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-top-color: var(--red); }
.card-featured { background: var(--black); color: var(--white); border-top-color: var(--red); }
.card-featured p { color: rgba(255, 255, 255, .72) !important; }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(164, 22, 26, .1);
  margin-bottom: 22px;
}
.card-featured .card-icon { background: var(--red); }
.card-icon svg { width: 28px; height: 28px; fill: var(--red); }
.card-featured .card-icon svg { fill: var(--white); }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--grey-700); margin: 0 0 20px; font-size: .97rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--grey-200); color: var(--grey-700);
}
.card-featured .tags li { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute;
  left: 200px; top: 8px; bottom: 8px; width: 2px;
  background: var(--grey-200);
}
.tl-item { display: grid; grid-template-columns: 200px 1fr; position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute;
  left: 194px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--grey-500);
}
.tl-current::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 6px rgba(164, 22, 26, .15); }
.tl-date { font-weight: 700; color: var(--grey-500); font-size: .92rem; padding-right: 30px; }
.tl-current .tl-date { color: var(--red); }
.tl-content { padding-left: 40px; }
.tl-content h3 { font-size: 1.2rem; }
.tl-org { margin: 4px 0 10px; font-weight: 600; color: var(--red); font-size: .95rem; }
.tl-content p:last-child { margin: 0; color: var(--grey-700); }

/* ---------- Compétences ---------- */
.section-dark .section-head h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--red-light); }
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.skill-group {
  flex: 0 1 calc((100% - 48px) / 3);
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s, background .25s;
}
.skill-group:hover { border-color: var(--red); background: rgba(164, 22, 26, .07); }
.skill-group h3 { font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; }
.skill-group h3 span { color: var(--red-light); font-size: .85rem; font-weight: 800; }
.skill-group ul { list-style: none; margin: 0; padding: 0; }
.skill-group li {
  padding: 7px 0 7px 20px;
  position: relative;
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.skill-group li:last-child { border-bottom: 0; }
.skill-group li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 2px; background: var(--red-light);
}
.skill-group:last-child { opacity: .85; }

/* ---------- Formations ---------- */
.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.edu-item {
  padding: 30px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  position: relative;
  transition: box-shadow .25s, border-color .25s;
}
.edu-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.edu-item:first-child { border-color: var(--red); }
.edu-year {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--white); background: var(--black);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 16px;
}
.edu-item:first-child .edu-year { background: var(--red); }
.edu-item h3 { font-size: 1.2rem; }
.edu-school { margin: 6px 0 12px; font-weight: 600; color: var(--red); font-size: .95rem; }
.edu-item p:last-child { margin: 0; color: var(--grey-700); font-size: .96rem; }

/* ---------- Réalisations ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.tab {
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600;
  padding: 10px 20px; border-radius: 6px; color: var(--grey-700);
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--black); color: var(--white); }
.panel-note { color: var(--grey-700); font-size: .95rem; margin: 0 0 24px; max-width: 760px; }

.pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pair {
  margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--white); padding: 6px 6px 0; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pair a { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.pair img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pair a:hover img { transform: scale(1.05); }
.pair figcaption { grid-column: 1 / -1; padding: 12px 8px 14px; font-weight: 600; font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.g-item { position: relative; overflow: hidden; border-radius: 8px; background: var(--black); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .4s; }
.g-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  color: var(--white); font-size: .88rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.g-item:hover img { transform: scale(1.06); opacity: .85; }
.g-item:hover span, .g-item:focus-visible span { opacity: 1; transform: none; }
.g-tall { grid-row: span 2; }
.gallery .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 255, 255, .08), transparent 60%),
    var(--red-dark);
  color: var(--white);
}
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-contact .eyebrow { color: rgba(255, 255, 255, .7); }
.section-contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.contact-lead { color: rgba(255, 255, 255, .8); margin: 16px 0 0; max-width: 440px; }
.contact-links { display: grid; gap: 14px; }
.contact-link {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  color: var(--white); text-decoration: none;
  font-weight: 600;
  transition: background .2s, transform .2s;
  overflow-wrap: anywhere;
}
a.contact-link:hover { background: var(--black); transform: translateX(4px); }
.contact-link svg { flex: none; width: 26px; height: 26px; fill: var(--white); }
.contact-link small {
  display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, .55); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.footer-inner p { margin: 0; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .94);
  padding: 40px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); margin-top: 14px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer;
  color: var(--white); font-size: 2.6rem; line-height: 1;
  width: 54px; height: 54px; border-radius: 50%;
  transition: background .2s;
}
.lightbox button:hover { background: var(--red); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black);
    padding: 10px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav a.is-current:not(.nav-cta) { box-shadow: none; color: var(--red-light); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; padding: 12px; }

  .profil { grid-template-columns: 1fr; gap: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .skill-group { flex-basis: calc((100% - 24px) / 2); }
  .card-featured { order: -1; grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .brand-name { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 50px); }
  .hero-stats { gap: 22px; flex-direction: column; margin-top: 46px; }
  .cards, .edu, .pairs { grid-template-columns: 1fr; }
  .skill-group { flex-basis: 100%; }
  .profil-facts { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 34px; }
  .tl-item::before { left: 0; }
  .tl-date { padding: 0 0 4px; }
  .tl-content { padding-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 10px 8px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}
