/* Portfolio — direction éditoriale sobre, sans effets décoratifs superflus */
:root {
  --paper: #f5f4f0;
  --ink: #20221f;
  --muted: #777a72;
  --line: #d9d8d1;
  --accent: #c65b3d;
  --white: #fff;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.page-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 7.1%;
}
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font: 800 1.45rem var(--display);
  letter-spacing: -0.08em;
}
.brand span {
  color: var(--accent);
}
.main-nav {
  display: flex;
  gap: 34px;
}
.main-nav a,
.header-contact {
  font-size: 0.79rem;
  font-weight: 600;
}
.main-nav a {
  color: #65675f;
  transition: color 0.2s;
}
.main-nav a:hover,
.header-contact:hover {
  color: var(--accent);
}
.header-contact span {
  color: var(--accent);
  margin-left: 7px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.3rem;
}
.hero {
  position: relative;
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 7%;
  padding: 72px 0 105px;
}
.hero-copy {
  max-width: 680px;
}
.eyebrow,
.micro-label,
.section-kicker,
.hero-meta,
.hero-bottom,
.portrait-index,
.hero-coordinate,
.skill-index,
.project-line > span:first-child {
  font: 500 0.67rem var(--mono);
  letter-spacing: 0.08em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  margin-bottom: 29px;
}
.availability-dot,
.current-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b8b68;
  display: inline-block;
}
.eyebrow-divider {
  color: var(--accent);
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.055em;
}
.hero h1 {
  font-size: clamp(3.5rem, 6.6vw, 6.5rem);
  line-height: 0.99;
  font-weight: 700;
}
.hero h1 em,
.contact-section h2 em {
  font-style: normal;
  color: var(--accent);
}
.hero-intro {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #66685f;
  max-width: 510px;
  margin-top: 27px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 27px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 15px 19px;
  font-size: 0.79rem;
  font-weight: 600;
}
.button-dark {
  background: var(--ink);
  color: white;
  transition: background 0.2s;
}
.button-dark:hover {
  background: var(--accent);
}
.text-link {
  font-size: 0.79rem;
  font-weight: 600;
  border-bottom: 1px solid #aaa;
  padding-bottom: 5px;
}
.text-link span {
  color: var(--accent);
  margin-left: 5px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  color: #898a83;
  margin-top: 68px;
  font-size: 0.59rem;
}
.hero-visual {
  position: relative;
  max-width: 390px;
  width: 100%;
  justify-self: end;
}
.portrait-frame {
  position: relative;
  background: #e2e0d8;
  padding: 14px 14px 42px;
  transform: rotate(1.5deg);
}
.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.78);
}
.portrait-index {
  position: absolute;
  bottom: 14px;
  left: 17px;
  color: #65665f;
  font-size: 0.57rem;
}
.visual-note {
  position: absolute;
  left: -78px;
  bottom: 62px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  padding: 13px 16px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #66685f;
}
.note-line {
  height: 30px;
  width: 2px;
  background: var(--accent);
}
.hero-coordinate {
  position: absolute;
  right: -37px;
  top: 15px;
  writing-mode: vertical-rl;
  color: #85867e;
  font-size: 0.58rem;
}
.hero-bottom {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  color: #85867e;
  font-size: 0.59rem;
}
.hero-bottom a {
  font: 1.2rem var(--sans);
  color: var(--accent);
}
.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 7%;
  border-top: 1px solid var(--line);
  padding: 92px 0;
}
.section-kicker {
  color: var(--muted);
  font-size: 0.65rem;
}
.section-kicker span {
  color: var(--accent);
  margin-right: 8px;
}
.intro-content h2,
.section-heading h2,
.projects-heading h2 {
  font-size: clamp(2.5rem, 4.3vw, 4.2rem);
  line-height: 1.08;
  font-weight: 650;
}
.intro-content h2 span,
.section-heading h2 span,
.projects-heading h2 span {
  color: #96978e;
}
.intro-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  max-width: 820px;
  margin-top: 30px;
}
.intro-columns p {
  font-size: 0.91rem;
  line-height: 1.85;
  color: #696b63;
}
.experience-content {
  padding: 0 0 6px;
}
.experience-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.micro-label {
  color: var(--accent);
  font-size: 0.61rem;
}
.experience-top h2 {
  font-size: 2.2rem;
  margin-top: 12px;
}
.current-tag {
  font-size: 0.7rem;
  color: #62745e;
  border: 1px solid #cbd2c5;
  border-radius: 30px;
  padding: 8px 12px;
  white-space: nowrap;
}
.current-tag i {
  margin-right: 7px;
  width: 6px;
  height: 6px;
}
.experience-placeholder {
  margin-top: 20px;
  font-size: 0.92rem;
  color: #686a62;
}
.muted-note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #92938b;
}
.skills-section {
  border-top: 1px solid var(--line);
  padding: 92px 0;
}
.section-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 7%;
  align-items: start;
  margin-bottom: 55px;
}
.section-heading h2 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
}
.skills-list {
  border-top: 1px solid var(--line);
}
.skill-row {
  display: grid;
  grid-template-columns: 45px minmax(200px, 1fr) minmax(260px, 1.05fr);
  gap: 25px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.skill-index {
  color: var(--accent);
  padding-top: 4px;
}
.skill-main h3 {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}
.skill-main p {
  font-size: 0.76rem;
  color: #85867e;
  margin-top: 6px;
  line-height: 1.5;
}
.skill-tags {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.skill-tags span {
  font: 500 0.61rem var(--mono);
  color: #66685f;
  border: 1px solid #d4d3cb;
  padding: 7px 9px;
}
.projects-content {
  min-width: 0;
}
.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 37px;
}
.projects-heading h2 {
  font-size: 3.3rem;
}
.projects-heading > p {
  max-width: 210px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #85867e;
}
.project-lines {
  border-top: 1px solid var(--line);
}
.project-line {
  display: grid;
  grid-template-columns: 42px 1fr 25px;
  gap: 15px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.project-line > span:first-child {
  color: var(--accent);
}
.project-line h3 {
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.project-line p {
  font-size: 0.75rem;
  color: #85867e;
  margin-top: 5px;
}
.project-arrow {
  color: var(--accent);
  font-size: 1.1rem;
}
.education-content h2 {
  font-size: 1.55rem;
  line-height: 1.4;
  margin: 12px 0;
}
.education-content > p:last-child {
  font-size: 0.8rem;
  color: #777970;
}
.contact-section {
  margin: 45px 0 80px;
  background: #e9e7df;
  padding: 66px 7%;
  position: relative;
}
.contact-section h2 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.02;
  margin: 18px 0 30px;
}
.contact-email {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #aaa;
  padding-bottom: 9px;
  font-size: 0.88rem;
  font-weight: 600;
}
.contact-email span {
  color: var(--accent);
}
.site-footer {
  min-height: 88px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer p,
.site-footer > a:last-child {
  font-size: 0.68rem;
  color: #85867e;
}
.site-footer > a:last-child:hover {
  color: var(--accent);
}
@media (max-width: 900px) {
  .page-shell {
    padding: 0 5%;
  }
  .main-nav {
    gap: 17px;
  }
  .hero {
    gap: 5%;
    min-height: 600px;
  }
  .hero-visual {
    max-width: 310px;
  }
  .section-grid,
  .section-heading {
    grid-template-columns: 150px 1fr;
    gap: 5%;
  }
  .skill-row {
    grid-template-columns: 30px 1fr;
  }
  .skill-tags {
    grid-column: 2;
    justify-content: flex-start;
  }
  .visual-note {
    left: -42px;
  }
}
@media (max-width: 650px) {
  .page-shell {
    padding: 0 22px;
  }
  .site-header {
    height: 70px;
  }
  .main-nav,
  .header-contact {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav.is-open {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--paper);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 42px;
    padding: 45px 0 85px;
  }
  .hero-visual {
    width: 74%;
    max-width: 290px;
    margin: 0 auto 0 12%;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }
  .hero-intro {
    font-size: 0.94rem;
  }
  .hero-meta {
    margin-top: 42px;
    flex-wrap: wrap;
    font-size: 0.54rem;
  }
  .hero-coordinate {
    right: -23px;
  }
  .visual-note {
    left: -38px;
    bottom: 48px;
  }
  .hero-bottom {
    bottom: 18px;
  }
  .section-grid {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 65px 0;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 35px;
  }
  .intro-content h2,
  .section-heading h2 {
    font-size: 2.7rem;
  }
  .intro-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .experience-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .experience-top h2 {
    font-size: 1.9rem;
  }
  .skill-row {
    grid-template-columns: 25px 1fr;
    gap: 12px;
    padding: 22px 0;
  }
  .skill-tags {
    gap: 6px;
  }
  .skill-tags span {
    font-size: 0.56rem;
  }
  .projects-heading {
    display: block;
  }
  .projects-heading h2 {
    font-size: 2.8rem;
  }
  .projects-heading > p {
    margin-top: 15px;
  }
  .contact-section {
    margin: 30px 0 55px;
    padding: 48px 25px;
  }
  .contact-email {
    font-size: 0.76rem;
  }
  .site-footer {
    padding: 20px 0;
    flex-wrap: wrap;
  }
  .site-footer p {
    order: 3;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.button-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.button-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.button span {
  color: inherit;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.contact-actions .button {
  gap: 20px;
}
@media (max-width: 650px) {
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-actions .button {
    justify-content: space-between;
  }
}
