/* ===== Nicolas Foin — portfolio site ===== */

:root {
  --cream: #f3ece0;
  --cream-alt: #ece2d0;
  --ink: #1c1a17;
  --orange: #d9611f;
  --border: 2px solid var(--ink);
  --sticker-shadow: 5px 5px 0 var(--ink);
  --max-w: 780px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, .mono {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

section + section {
  border-top: 1.5px dashed rgba(28, 26, 23, 0.25);
}

/* ---- highlight / underline keyword ---- */
.hl {
  font-weight: 600;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 1px;
}

/* ---- sticker labels ---- */
.sticker {
  display: inline-block;
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--sticker-shadow);
  padding: 6px 16px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-sticker {
  font-size: 0.78rem;
  transform: rotate(-2deg);
  margin: 0 0 18px;
}

.name-sticker {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  transform: rotate(-1.5deg);
  margin: 0 0 22px;
  line-height: 1.1;
}

.section-title {
  font-size: 1rem;
  transform: rotate(1.5deg);
  margin: 0 0 32px;
}
.section-title.tilt-alt { transform: rotate(-1.5deg); }

/* ---- hero ---- */
.hero {
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  margin-bottom: 32px;
}

.hero-photo {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border: var(--border);
  box-shadow: var(--sticker-shadow);
  filter: grayscale(100%) contrast(1.05);
  transform: rotate(-2deg);
  display: block;
}

.one-liner {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  max-width: 42ch;
  margin: 0 0 28px;
}

.micro-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 2px;
}
.micro-cta:hover { color: var(--orange); }

/* ---- doodles ---- */
.doodle {
  position: absolute;
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doodle-star {
  width: 46px;
  top: -18px;
  right: -30px;
  transform: rotate(8deg);
}
.doodle-arrow {
  width: 70px;
  left: -68px;
  top: 6px;
  transform: rotate(8deg);
}
@media (max-width: 640px) {
  .doodle-arrow { display: none; }
}

/* ---- section 2: ce que je fais ---- */
.intro p {
  max-width: 60ch;
  margin: 0 0 18px;
}

.capacity-box {
  margin-top: 36px;
  display: inline-block;
  background: var(--cream-alt);
  border: var(--border);
  padding: 20px 28px;
  transform: rotate(-1deg);
}
.capacity-box .num {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1.8rem;
  display: block;
}
.capacity-box .cap {
  font-size: 0.92rem;
  font-style: italic;
}

/* ---- section 3: services ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.service-icon {
  width: 40px;
  height: 40px;
  stroke: var(--orange);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}

.service h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}

.service p {
  margin: 0;
  font-size: 0.96rem;
}

/* ---- section 4: comment je travaille ---- */
.work-block {
  margin-bottom: 30px;
}
.work-block:last-child { margin-bottom: 0; }

.work-block h3 {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--orange);
  border-bottom: none;
  margin: 0 0 8px;
}

.work-block p {
  margin: 0;
  max-width: 60ch;
}

/* ---- section 5: preuves ---- */
.case {
  position: relative;
  border: var(--border);
  background: var(--cream-alt);
  padding: 28px 24px 22px;
  margin-bottom: 30px;
}
.case:last-child { margin-bottom: 0; }

.case-tag {
  position: absolute;
  top: -16px;
  left: 20px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 5px 12px;
  transform: rotate(-2deg);
}
.case.casys .case-tag {
  background: var(--orange);
}

.case-line {
  margin: 0 0 10px;
  font-size: 0.96rem;
}
.case-line:last-child { margin-bottom: 0; }

.case-line .lbl {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--orange);
  margin-right: 6px;
}

.case ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.case li {
  margin-bottom: 6px;
  font-size: 0.96rem;
}
.case li:last-child { margin-bottom: 0; }

/* ---- section 6: contact ---- */
.contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: var(--border);
  box-shadow: var(--sticker-shadow);
  filter: grayscale(100%) contrast(1.05);
  transform: rotate(2deg);
  margin-bottom: 28px;
}

.contact-text {
  max-width: 55ch;
  margin: 0 0 28px;
}

.cta-button {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--cream);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--orange);
  padding: 14px 26px;
  margin-bottom: 24px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--orange);
}
.cta-button .arrow {
  color: var(--orange);
}

.direct-contact {
  font-size: 0.92rem;
}
.direct-contact a {
  color: var(--ink);
  border-bottom: 2px solid var(--orange);
  text-decoration: none;
}

footer {
  padding: 40px 0 60px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(28, 26, 23, 0.6);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}

.social-icon {
  width: 32px;
  height: 32px;
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.15s ease;
}

.socials a {
  display: inline-flex;
  color: var(--ink);
}
.socials a:hover .social-icon {
  color: var(--orange);
}
