/* Digitalgarage — Didier Grand */

:root {
  --ink: #111727;
  --muted: #999;
  --muted-2: #8a8a8a;
  --card: #f5f5f5;
  --link: #09f;
  --white: #fff;
  --radius: 8px;
  --max: 1240px;
  --accent: #0a8cff;
  --text: 600px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.1px;
  font-feature-settings: "cv01", "cv05", "cv09", "ss03";
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
strong { font-weight: 700; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--text); margin: 0 auto; }

/* ---------- Typo ---------- */
.display {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.9px;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03";
}
.section-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.9px;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03";
}
.title { font-size: 19px; line-height: 1.25; letter-spacing: -0.38px; font-weight: 400; }
.title-lg { font-size: 24px; line-height: 1; letter-spacing: -0.48px; font-weight: 400; }
.subtitle { font-size: 18px; line-height: 1.25; letter-spacing: -0.18px; color: var(--muted); font-weight: 400; }
.kicker { font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.eyebrow { font-size: 16px; font-weight: 700; text-transform: uppercase; color: #000; margin-bottom: 12px; }
.big-split { font-size: 40px; line-height: 1.1; letter-spacing: -1px; text-align: center; color: #000; }
.big-split span { display: block; color: var(--muted); }
.h-32 { font-size: 32px; line-height: 1.1; letter-spacing: -0.6px; color: #000; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}
.site-header { border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: #ececf0; }
.site-header .bar {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 32px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: 0;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.main-nav a:hover { background: var(--card); text-decoration: none; }
.main-nav .new::after {
  content: "Nouveau"; margin-left: 8px; font-size: 11px; font-weight: 700;
  background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: 1px;
}
.header-icons { display: flex; align-items: center; gap: 8px; }
.nav-cta {
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; transition: transform .2s, opacity .2s;
}
.nav-cta:hover { text-decoration: none; opacity: .9; transform: translateY(-1px); }
@media (max-width: 900px) { .main-nav { display: none; } }
@media (max-width: 640px) {
  .site-header .bar { padding: 0 16px; height: 64px; }
  .logo span { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }
}
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 32px; border-radius: 6px; color: var(--ink);
  transition: background .2s;
}
.icon-btn:hover { background: var(--card); text-decoration: none; }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Home: hero ---------- */
.hero {
  display: grid; grid-template-columns: 208px 1fr; gap: 48px; align-items: center;
  padding: 70px 0 120px;
}
.hero img { width: 208px; height: 208px; object-fit: cover; border-radius: var(--radius); }
.hero .name { font-size: 24px; line-height: 1; letter-spacing: -0.72px; font-weight: 400; margin-bottom: 20px; }
.hero h1 { margin-bottom: 10px; }
.hero .title { margin-bottom: 14px; }
.hero .intro { letter-spacing: 1px; line-height: 1.5; font-weight: 400; margin: 0; max-width: 720px; }

/* ---------- Cards (compétences) ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 140px; }
.skill {
  background: var(--card); border-radius: var(--radius);
  padding: 24px 24px 60px; min-height: 420px;
}
.skill h2, .skill h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.38px; margin-bottom: 8px; font-weight: 500; }
.skill .kicker { margin-bottom: 18px; }
.skill p:last-child { margin-bottom: 0; }

/* ---------- Réalisations ---------- */
.works-title { margin-bottom: 20px; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.project.top { align-items: start; }
.project .media img { width: 100%; }
.project .media.rounded { align-self: stretch; }
.project .media.rounded img { border-radius: var(--radius); height: 100%; object-fit: cover; }
.project .body { padding: 20px 0; }
.project .title { margin-bottom: 4px; }
.project .subtitle { margin-bottom: 18px; }
.project .subtitle.dim { color: var(--muted-2); }

.more {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--link); margin-top: 10px;
}
.more svg { width: 20px; height: 20px; color: var(--ink); flex-shrink: 0; }

/* ---------- Pages projet ---------- */
.page-head { text-align: center; padding: 50px 0 40px; }
.page-head .display { margin-bottom: 14px; }
.page-head .subtitle { margin-bottom: 14px; }
.page-head .lead { color: #828282; font-style: italic; max-width: 760px; margin: 0 auto; }
.page-head a { font-weight: 300; }

.article { padding-bottom: 40px; }
.article > * { max-width: var(--text); margin-left: auto; margin-right: auto; }
.article .title { margin: 40px auto 12px; font-weight: 500; }
.article ul, .article ol { padding-left: 22px; margin-top: 0; margin-bottom: 1em; }
.article li { margin-bottom: 4px; }
.article li::marker { color: var(--ink); }

.figure { margin: 40px auto; }
.figure.wide { max-width: 900px; }
.figure.full { max-width: var(--max); }
.figure img { width: 100%; }
.figure.rounded img { border-radius: var(--radius); }

.split-head { padding: 80px 0 40px; }

.cta-box {
  background: var(--card); border-radius: var(--radius);
  text-align: center; padding: 56px 32px; margin: 60px auto;
  max-width: 900px !important;
}
.cta-box .section-title { margin-bottom: 14px; line-height: 1.15; }
.cta-box .lead { font-size: 21px; margin-bottom: 24px; }
.cta-box .note { margin-bottom: 18px; }

.btn {
  display: inline-block; background: var(--ink); color: var(--white);
  font-weight: 700; padding: 12px 28px; border-radius: var(--radius);
  transition: opacity .2s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.center { text-align: center; }

.quote { text-align: center; padding: 60px 0 40px; }
.quote blockquote {
  margin: 0 auto 18px; max-width: 520px;
  font-size: 21px; line-height: 1.5; font-style: italic; font-weight: 400; letter-spacing: -0.2px;
}
.quote cite { font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted); }

.back { display: grid; place-items: center; padding: 30px 0 60px; }
.back a { color: var(--ink); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.back a:hover { background: var(--card); }
.back svg { width: 22px; height: 22px; }

.figma-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--card);
  padding: 12px 22px; border-radius: var(--radius); font-weight: 700;
}
.figma-link:hover { text-decoration: none; opacity: .9; }
.figma-link svg { width: 20px; height: 20px; }

/* Compétences (page Veveyse) */
.skills.inpage { padding-bottom: 60px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 900px; margin: 40px auto 100px;
}
.contact-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.contact-grid .who { font-weight: 700; text-transform: uppercase; margin: 24px 0 8px; }
.contact-grid .links a { display: block; }
.contact-grid .icon-btn { margin-top: 12px; margin-left: -10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 96px 0 32px; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 140, 255, .35), transparent); pointer-events: none;
}
.site-footer .container { position: relative; }
.f-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.12); }
.f-title {
  font-size: clamp(32px, 5vw, 60px); font-weight: 900; line-height: 1.02; letter-spacing: -1px; max-width: 820px;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03"; margin-bottom: 28px;
}
.f-title span { color: var(--accent); }
.f-contact { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 22px; font-weight: 400; }
.f-contact a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.f-contact a:hover { text-decoration: none; border-color: #fff; }
.f-cta {
  flex-shrink: 0; display: grid; place-items: center; text-align: center; width: 150px; height: 150px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; transition: transform .3s;
}
.f-cta:hover { text-decoration: none; transform: scale(1.06) rotate(-4deg); }
.f-cols { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; padding: 48px 0; }
.f-cols h3 { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #8d95a8; margin-bottom: 14px; }
.f-cols a { display: block; width: fit-content; color: #d7dbe4; font-weight: 400; padding: 3px 0; }
.f-cols a:hover { color: #fff; text-decoration: none; }
.f-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.f-brand svg { width: 40px; height: 40px; }
.f-cols p { color: #aab1c0; font-weight: 400; line-height: 1.55; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8d95a8; font-size: 14px; font-weight: 400; }
@media (max-width: 900px) {
  .f-top { flex-direction: column; align-items: flex-start; }
  .f-cta { width: auto; height: auto; border-radius: 999px; padding: 14px 26px; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .site-footer { padding-top: 64px; } .f-contact { font-size: 19px; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .skills { grid-template-columns: 1fr; padding-bottom: 80px; }
  .skill { min-height: 0; padding-bottom: 32px; }
  .project, .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .project .media { order: -1; }
  .project { margin-bottom: 60px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 60px; }
  .hero img { width: 160px; height: 160px; }
  .display { font-size: 30px; line-height: 1.1; }
  .big-split { font-size: 30px; }
  .h-32 { font-size: 26px; }
  .page-head { padding: 30px 0 24px; }
  .cta-box { padding: 40px 20px; }
  .site-footer .contact { font-size: 19px; }
}
