/* ===== Samuel Flament – Portfolio ===== */
:root {
  --purple: #281a39;
  --sky: #bde9fb;
  --grey-dark: #414141;
  --grey-light: #f6f6f6;
  --text: #414141;
  --blue: #2061b7;
  --page: 980px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Mulish", "Avenir", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.sky { background: var(--sky); }

a { color: inherit; }
img { display: block; max-width: 100%; }
strong { font-weight: 800; color: #000; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--grey-dark);
  height: 75px;
  display: flex;
  align-items: center;
}
.site-header .wrap { width: 100%; }
.nav {
  display: inline-flex;
  margin-left: 180px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.nav a {
  display: block;
  padding: 7px 12px;
  background: #fff;
  color: var(--purple);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  border-left: 1px solid #ccc;
  transition: background .2s, color .2s;
}
.nav a:first-child { border-left: 0; }
.nav a:hover { background: #e9e6ee; }
.nav a.active { background: var(--purple); color: #fff; }

/* ---------- Bandeau titre ---------- */
.banner {
  background: var(--sky);
  text-align: center;
  padding: 18px 0 20px;
  box-shadow: 0 6px 6px -2px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}
.banner h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: .01em;
}
.banner.big { box-shadow: none; padding: 30px 0 10px; }
.banner.big h1 { font-size: 64px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  min-width: 112px;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-dark { background: var(--purple); color: #fff; border: 1px solid var(--purple); }
.btn-dark:hover { background: #fff; color: var(--purple); }
.btn-outline { background: #fff; color: var(--purple); border: 1px solid var(--purple); font-size: 12px; }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-pill {
  border-radius: 999px;
  min-width: 172px;
  padding: 14px 20px;
  font-size: 12px;
  letter-spacing: .02em;
}

/* ---------- Home ---------- */
.home {
  max-width: 795px;
  margin: 0 auto;
  padding: 150px 16px 70px;
  color: #20303c;
}
.home h2 {
  text-align: center;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 30px;
  color: var(--purple);
}
.home p {
  font-size: 22px;
  font-weight: 400;
  text-align: justify;
  margin: 0 0 1.4em;
  line-height: 1.5;
}
.home-btns {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 60px;
}

/* ---------- Projets ---------- */
.project {
  background: linear-gradient(#e6e6e6 0, #fff 70px, #fff 100%);
  padding: 22px 0 40px;
}
.project .wrap {
  display: grid;
  grid-template-columns: 1fr 481px;
  gap: 40px;
  align-items: start;
}
.project-info { padding: 0 0 0 30px; }
.project h2 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
}
.project .role {
  text-align: center;
  font-weight: 800;
  color: var(--purple);
  font-size: 14px;
  margin: 8px 0 22px;
}
.bar {
  border-left: 6px solid var(--grey-dark);
  padding: 2px 0 2px 12px;
  margin: 0 0 26px;
  font-size: 15px;
  font-weight: 300;
  color: #000;
}
.bar p { margin: 0; }
.bar .status { text-align: center; font-weight: 800; }
.bar.desc { text-align: justify; color: var(--text); }
.bar.desc p + p { margin-top: 0; }
.project-btns {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.media { display: grid; gap: 0; }
.media img { width: 100%; height: auto; object-fit: cover; }
.media.trio { grid-template-columns: 142fr 338fr; }
.media.trio img:first-child { grid-column: 1 / -1; height: 312px; }
.media.trio img:not(:first-child) { height: 159px; }

.divider {
  height: 34px;
  background: var(--sky);
  border-top: 3px solid var(--purple);
  border-bottom: 3px solid var(--purple);
  box-shadow: 0 3px 4px rgba(0,0,0,.2);
}
.section-title {
  background: var(--sky);
  text-align: center;
  border-top: 3px solid var(--purple);
  box-shadow: 0 6px 6px -2px rgba(0,0,0,.25);
  padding: 40px 0;
  position: relative;
}
.section-title h2 {
  margin: 0;
  font-size: 46px;
  font-weight: 800;
  color: var(--purple);
}

/* ---------- Pages "My work" ---------- */
.work { padding: 10px 0 60px; }
.card {
  background: linear-gradient(#fff, #e9e9ee);
  border: 3px solid var(--purple);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
  padding: 16px 24px;
  font-size: 17px;
  line-height: 1.75;
  color: #000;
  margin: 18px 26px;
}
.card p { margin: 0; }
.card ul { list-style: none; margin: 0; padding-left: 10px; }
.card ul li::before { content: "- "; }
.work .full { width: 100%; margin: 0; }
.split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 0;
}
.split .card { margin: 18px 26px 18px 0; }

/* ---------- CV ---------- */
.cv-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 90px 0 40px;
}
.cv-title::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--blue);
}
.cv-title h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--purple);
}
.cv-img { max-width: 619px; margin: 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cv-dl { text-align: center; padding: 40px 0 60px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grey-dark);
  color: #fff;
  border-top: 12px solid var(--sky);
  box-shadow: inset 0 3px 0 var(--purple);
  padding: 30px 0 34px;
  font-size: 14px;
  font-weight: 700;
}
.site-footer .wrap {
  display: flex;
  justify-content: center;
  gap: 160px;
  text-align: center;
}
.site-footer p { margin: 0 0 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { margin-left: 0; }
  .site-header .wrap { display: flex; justify-content: center; }
  .project .wrap { grid-template-columns: 1fr; }
  .project-info { padding: 0; }
  .split { grid-template-columns: 1fr; }
  .split img { margin: 0 auto; }
  .split .card { margin: 18px 16px; }
  .card { margin: 18px 16px; }
  .banner.big h1 { font-size: 44px; }
  .home { padding-top: 70px; }
  .home h2 { font-size: 30px; }
  .home p { font-size: 18px; }
  .home-btns { gap: 30px; flex-wrap: wrap; }
  .site-footer .wrap { flex-direction: column; gap: 10px; }
}
