/* ==========================================================================
   Portfolio Nathan Porcar — feuille de style
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face {
  font-family: "Branch";
  src: url("../assets/fonts/branch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --green-dark: #01332f;
  --green: #0a4f4a;
  --mint: #ebfffa;
  --white: #fff;
  --text: #1a1b1f;

  --font-title: "Branch", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --radius: 10px;
  --radius-lg: 20px;
}

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

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

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s;
}

h1, h2, h3, p {
  margin: 0;
}

/* ---------- Titres ---------- */
.title-xl {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-title);
  font-size: 70px;
  font-weight: 400;
  line-height: 80px;
  text-align: left;
}

.title-lg {
  margin: 0;
  color: var(--green-dark);
  font-size: 70px;
  font-weight: 900;
  line-height: 100px;
}

.title-md {
  font-size: 25px;
  font-weight: 900;
  line-height: 50px;
}

.section-title {
  margin-bottom: 75px;
  text-align: center;
}

/* ---------- Boutons ---------- */
.button {
  display: block;
  width: 10em;
  margin: 0 auto;
  padding: 9px 15px;
  color: var(--green-dark);
  text-align: center;
  text-decoration: none;
  background-color: var(--white);
  border: 1px solid var(--green-dark);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 0 var(--green);
  transition: box-shadow 0.2s;
}

.button:hover {
  box-shadow: 6px 6px 0 0 var(--green);
}

.button--wide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 20em;
  margin: 20px 0;
}

.button--cv {
  color: var(--white);
  background-color: var(--green-dark);
  border-color: var(--white);
}

.button--cv:hover {
  color: var(--white);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  margin: 12px 2vh 0;
  padding: 1em 1.6em 1em 2.2em;
  color: var(--white);
  background-color: var(--green);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(1, 51, 47, 0.18);
  transition: background-color 0.3s, color 0.3s;
}

.nav__logo-dark {
  display: none;
}

.nav__logo img {
  width: 130px;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__menu {
  display: flex;
  align-items: center;
  margin-right: 14px;
}

.nav__link {
  padding: 10px 30px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--mint);
  opacity: 0.85;
}

.nav__link[aria-current="page"] {
  font-style: italic;
  font-weight: 600;
  text-decoration: underline;
}

.nav__toggle {
  display: none;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s;
}

.nav__toggle span {
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  transition: border-color 0.3s;
}

.lang-switch__item {
  padding: 0 10px;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 100px;
  transition: background-color 0.3s, color 0.3s;
}

.lang-switch__item:hover {
  opacity: 0.75;
}

.lang-switch__item[aria-current="true"] {
  color: var(--green);
  background-color: var(--white);
}

/* Barre inversée : quand elle passe au-dessus d'une zone sombre */
.nav--inverted {
  color: var(--green-dark);
  background-color: var(--mint);
}

.nav--inverted .nav__logo-light {
  display: none;
}

.nav--inverted .nav__logo-dark {
  display: block;
}

.nav--inverted .nav__link {
  color: var(--green-dark);
}

.nav--inverted .nav__link:hover {
  color: var(--green);
}

.nav--inverted .nav__toggle span,
.nav--inverted .nav__toggle span::before,
.nav--inverted .nav__toggle span::after {
  background: var(--green-dark);
}

.nav--inverted .lang-switch {
  border-color: rgba(1, 51, 47, 0.35);
}

.nav--inverted .lang-switch__item[aria-current="true"] {
  color: var(--mint);
  background-color: var(--green-dark);
}

@media (max-width: 767px) {
  .nav--inverted .nav__link {
    background-color: var(--mint);
  }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20vh 10vh 10vh;
  background-image: linear-gradient(var(--mint), var(--white));
}

.hero__inner {
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
}

.hero__bottom {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  height: 100px;
}

.hero__quote {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  text-transform: uppercase;
}

/* ---------- Hero d'accueil ---------- */
.intro {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 130px 30px 110px;
  background-image: linear-gradient(var(--mint), var(--white));
}

.intro__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.intro__text {
  order: 1;
}

.intro__photo {
  order: 2;
  justify-self: center;
  width: min(380px, 100%);
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--green-dark);
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 0 var(--green);
}

.intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 30%;
}

.intro__name {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-title);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.1;
}

.intro__role {
  margin: 0 0 24px;
  color: var(--green-dark);
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 900;
  line-height: 1.15;
}

.intro__quote {
  max-width: 30em;
  margin-bottom: 32px;
  font-size: 17px;
  font-weight: 500;
  line-height: 30px;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.intro__actions .button {
  width: auto;
  margin: 0;
  padding: 10px 26px;
}

.intro__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro__facts li {
  margin: 0;
  padding: 2px 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(1, 51, 47, 0.35);
  border-radius: 100px;
}

.intro__facts .is-available::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  vertical-align: middle;
  background-color: #00b8a9;
  border-radius: 50%;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  background-color: rgba(1, 51, 47, 0.25);
}

.scroll-cue span {
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  background-color: var(--green-dark);
  border-radius: 50%;
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  20%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(52px); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 50px 30px 100px;
}

.section--up { background-image: linear-gradient(0deg, var(--mint), var(--white)); }
.section--down { background-image: linear-gradient(var(--mint), var(--white)); }

.section--projects { margin-top: 10vh; }
.section--skills { padding-bottom: 100px; }

/* ---------- Projets ---------- */
.project {
  max-width: 80vw;
  margin: 0 auto;
  padding-bottom: 75px;
}

.project__row {
  display: flex;
  margin: 0 -10px;
}

.project__row--reverse {
  flex-direction: row-reverse;
}

.project__visual {
  flex: 7;
  padding: 50px;
  background-color: var(--green-dark);
  border-radius: 5px;
}

.project__visual a {
  display: block;
  border-radius: var(--radius-lg);
}

.project__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 7px 7px 10px #00000080;
}

.project__info {
  flex: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.project__name {
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: 46px;
}

.project__tags {
  padding-bottom: 25px;
  font-family: var(--font-title);
}

.project--last {
  padding-bottom: 0;
}

.projects__more {
  display: flex;
  justify-content: center;
}

/* ---------- Compétences ---------- */
.skills {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  max-width: 80vw;
  margin: 0 auto 50px;
}

.skill {
  flex: 1;
  padding: 0 25px 25px;
}

.skill__tags {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
}

.skill__tags li {
  margin: 0 8px 8px 0;
  padding: 4px 12px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: var(--green);
  border-radius: 100px;
}

.tools {
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 25px 50px;
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2rem;
  padding: 40px 2rem 0;
}

.tools__grid img {
  width: 50%;
  place-self: center;
}

.tools__grid .is-round {
  border-radius: 100px;
}

/* ---------- À propos ---------- */
.about {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 80vw;
  margin: 0 auto;
  padding-bottom: 50px;
}

.about__col {
  flex: 1;
  padding: 25px 10px 0;
}

.about__col:first-child {
  display: flex;
  justify-content: center;
}

.about__photo {
  width: 50vh;
  margin-bottom: 25px;
  border-radius: var(--radius);
}

.about__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.section--page {
  padding-bottom: 50px;
  margin-top: 10vh;
}

.prose {
  max-width: 80vw;
  margin: 0 auto 50px;
}

/* ---------- Footer ---------- */
.contact {
  padding: 100px 30px;
  color: var(--mint);
  background-color: var(--green-dark);
}

.contact__grid,
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__status,
.contact__row dt,
.footer__legal {
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 6px 16px;
  border: 1px solid rgba(235, 255, 250, 0.35);
  border-radius: 100px;
}

.contact__status::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #0fe;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.contact__title {
  margin: 0 0 30px;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 56px;
  font-weight: 400;
  line-height: 64px;
}

.contact__intro p {
  max-width: 30em;
  margin-bottom: 40px;
}

.button--light {
  display: inline-flex;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 12px 28px;
  color: var(--green-dark);
  background-color: var(--mint);
  border-color: var(--mint);
  box-shadow: 4px 4px 0 0 rgba(235, 255, 250, 0.35);
}

.button--light:hover {
  box-shadow: 7px 7px 0 0 rgba(235, 255, 250, 0.35);
}

.contact__card {
  margin: 0;
  padding: 6px 30px;
  border: 1px solid rgba(235, 255, 250, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 0 rgba(235, 255, 250, 0.12);
}

.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(235, 255, 250, 0.25);
}

.contact__row:last-child {
  border-bottom: 0;
}

.contact__row dt {
  flex: none;
  opacity: 0.75;
}

.contact__row dd {
  margin: 0;
  text-align: right;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
  line-height: 26px;
  border: 1px solid rgba(235, 255, 250, 0.5);
  border-radius: 100px;
}

.contact a,
.footer__bar a {
  text-decoration: none;
}

.contact__row a {
  border-bottom: 1px solid transparent;
}

.contact__row a:hover {
  border-bottom-color: currentColor;
}

.footer__bar {
  padding: 28px 30px;
  color: var(--green-dark);
  background-color: var(--mint);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  letter-spacing: 1.5px;
}

.footer__legal > * {
  flex: 1;
}

.footer__legal > :nth-child(2) {
  text-align: center;
}

.footer__legal > :last-child {
  text-align: right;
}

.footer__legal a:hover {
  opacity: 0.6;
}

@media (max-width: 991px) {
  .contact { padding: 80px 30px; }
  .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .contact__title { font-size: 44px; line-height: 52px; }
}

@media (max-width: 767px) {
  .contact { padding: 60px 20px; }
  .footer__bar { padding: 24px 20px; }
  .footer__legal { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .footer__legal > * { flex: none; text-align: center !important; }
}

@media (max-width: 479px) {
  .contact__title { font-size: 36px; line-height: 44px; }
  .contact__row { flex-direction: column; gap: 4px; }
  .contact__row dd { text-align: left; }
  .pills { justify-content: flex-start; }
}

/* ---------- Retour en haut ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--mint);
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 2px 2px 0 0 var(--green-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background-color: var(--green-dark);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* ---------- Animation d'apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.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; }
  .scroll-cue span,
  .contact__status::before { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .title-xl { font-size: 56px; line-height: 70px; }
  .title-lg { font-size: 56px; line-height: 70px; }

  .hero { padding: 5vh; }
  .hero__bottom { height: auto; margin-top: 50px; }

  .nav { padding: 25px 30px; }
  .nav__menu { margin-right: 0; }
  .nav__link { padding: 15px 10px; }
  .nav__logo img { width: 120px; }

  .section--projects { padding-bottom: 35px; }
  .section--skills { padding-bottom: 50px; }
  .project { padding-bottom: 30px; margin-bottom: 100px; }
  .project__visual { padding: 30px; }
  .project__info { padding: 40px; }
  .project__name { font-size: 20px; }
  .project__tags { font-size: 15px; }

  .about { width: 90vw; }

  .tools__grid { gap: 1.5rem; padding: 40px 0 0; }

}

@media (max-width: 767px) {
  .title-xl { font-size: 40px; line-height: 64px; }
  .title-lg { font-size: 40px; line-height: 64px; }
  .title-md { font-size: 30px; line-height: 52px; }

  .hero { padding: 10vh; }
  .hero__inner { max-width: 100%; text-align: center; }
  .hero__bottom { margin-top: 40px; }

  /* menu burger */
  .nav { padding: 20px 30px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    margin: 0;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link {
    width: 100%;
    text-align: center;
    background-color: var(--green);
  }
  .nav__logo img { width: 115px; }

  .section { padding: 60px 15px 0; }
  .section--projects { padding: 60px 15px 50px; }
  .section-title { margin-bottom: 50px; }

  .project { padding-bottom: 0; margin-bottom: 0; }
  .project__row,
  .project__row--reverse { flex-direction: column-reverse; margin: 0; }
  .project__info { align-items: flex-start; padding: 40px 0; text-align: left; }
  .project__row--reverse .project__info { align-items: flex-end; text-align: right; }
  .project__tags { padding-bottom: 20px; }
  .project .button { margin-left: 0; margin-right: auto; }
  .project__row--reverse .button { margin-left: auto; margin-right: 0; }

  .skills { flex-direction: column; }
  .skill { width: 100%; }

  .section--about { padding: 60px 15px 100px; }
  .about { flex-direction: column; }
  .about__photo { margin-bottom: 20px; }

}

@media (max-width: 479px) {
  .title-xl { font-size: 35px; line-height: 48px; text-align: center; }
  .title-lg { font-size: 25px; line-height: 48px; text-align: center; }
  .title-md { font-size: 20px; }

  .hero { height: 100vh; padding: 10vh 3vh 3vh; }
  .hero__inner { display: flex; flex-direction: column; justify-content: center; }
  .hero__bottom { flex-flow: column-reverse; align-items: center; justify-content: center; margin-top: 10px; }
  .hero__quote { font-size: 14px; line-height: 25px; text-align: center; }

  .nav { padding-left: 20px; padding-right: 20px; }
  .nav__logo img { width: 100px; }

  .section { padding: 50px 30px 0; }
  .section--projects { padding-top: 50px; padding-bottom: 0; }
  .section-title { margin-bottom: 0; }

  .project { margin-top: 50px; margin-bottom: 60px; }
  .project__visual { padding: 15px; }
  .project__info,
  .project__row--reverse .project__info { align-items: center; padding: 10px 20px 20px; text-align: center; }
  .project__tags { padding-bottom: 10px; }
  .project .button,
  .project__row--reverse .button { margin-left: auto; margin-right: auto; }

  .button--wide { width: 12em; }

  .skills,
  .tools { max-width: none; }
  .skill { padding-left: 0; padding-right: 0; }
  .tools { padding: 0 0 20px; }
  .tools__grid { grid-template-columns: repeat(4, 1fr); padding-bottom: 2rem; }

  .section--about { padding: 50px 30px; }
  .about { width: auto; }
  .about__photo { margin-top: 20px; margin-bottom: 0; }
  .about__actions { flex-direction: column; align-items: center; }

}

/* ---------- Pages projet ---------- */
.eyebrow {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  text-transform: uppercase;
}

.project-hero {
  padding: 20vh 0 8vh;
  background-image: linear-gradient(var(--mint), var(--white));
}

.project-hero__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 80vw;
  margin: 0 auto;
}

.project-hero__text {
  flex: 1;
  padding-right: 20px;
}

.project-hero__text .button {
  margin: 20px 0 0;
}

.project-hero__visual {
  flex: 1;
  z-index: 2;
  padding-left: 2em;
}

.project-hero__visual img {
  width: 100%;
  margin: 0 auto;
  border-radius: 5px;
}

.project-hero__visual--framed {
  align-self: flex-start;
  padding: 25px;
  margin-left: 2em;
  background-color: var(--green-dark);
  border-radius: 5px;
}

.project-meta {
  margin: 20px 0 0;
}

.project-meta__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
}

.project-meta__row dt {
  margin: 0;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  text-transform: uppercase;
}

.project-meta__row dd {
  margin: 0;
}

.project-methods {
  margin-top: 20px;
}

.project-methods .eyebrow {
  margin-bottom: 0;
  font-size: 16px;
}

.project-methods .skill__tags {
  padding-top: 10px;
}

.project-text {
  padding: 30px 20vw 0;
}

.project-text__inner {
  max-width: 80vw;
  margin: 0 auto;
}

.project-text p + p {
  margin-top: 28px;
}

.project-text blockquote {
  margin: 0;
}

.project-text cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.project-gallery {
  padding: 10vh 15vw 1vh;
  background-image: linear-gradient(to top, var(--mint), var(--white));
}

.project-gallery figure {
  margin: 0 auto 50px;
  padding: 50px;
  background-color: var(--green-dark);
  border-radius: 5px;
}

.project-gallery img {
  width: 100%;
  border-radius: 5px;
}

.project-cta {
  padding: 30px 0 10vh;
  background-color: var(--mint);
}

.project-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 80vw;
  margin: 0 auto;
}

.project-cta__inner p {
  text-align: center;
}

@media (max-width: 991px) {
  .project-hero { padding: 15vh 5vw 5vh; }
  .project-hero__inner { flex-direction: column; max-width: none; }
  .project-hero__text { padding: 0 0 20px; }
  .project-hero__visual { width: 100%; padding-left: 0; }
  .project-hero__visual--framed { margin-left: 0; }
}

@media (max-width: 767px) {
  .project-hero { padding: 15vh 8vw 5vh; }
  .project-text { padding: 30px 8vw 0; }
  .project-text__inner,
  .project-cta__inner { max-width: none; }
  .project-gallery { padding: 6vh 8vw 1vh; }
  .project-gallery figure { padding: 25px; }
}

@media (max-width: 479px) {
  .project-hero { padding: 15vh 5vw 3vh; }
  .project-hero__text { padding-top: 25px; }
  .project-gallery figure { padding: 20px; }
  .project-cta .button--wide { width: 12em; }
}

/* ---------- Mentions légales ---------- */
body.legal {
  margin-top: 10vh;
  background-color: var(--green-dark);
}

.legal__content {
  max-width: 940px;
  margin: 0 auto;
  padding: 50px 30px 100px;
  color: var(--mint);
}

.legal__section {
  padding: 30px 0;
}

.legal__section h1,
.legal__section h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 36px;
  font-style: italic;
  font-weight: 700;
  line-height: 50px;
}

.legal__section h2 {
  font-size: 30px;
  line-height: 46px;
}

.legal__section p {
  margin-bottom: 20px;
}

.legal__section a {
  color: #0fe;
}

.legal__section a:hover {
  color: #9bfff8;
}

.legal__date {
  color: #cacaca;
  font-size: 13px;
  font-weight: 300;
}

.legal__close {
  text-align: right;
  font-style: italic;
  font-weight: 800;
}

.legal__close a {
  color: var(--white);
}

@media (max-width: 991px) {
  .intro__inner { gap: 40px; }
  .intro__photo { width: min(320px, 100%); }
}

@media (max-width: 767px) {
  .intro { padding: 110px 20px 90px; }
  .intro__inner { grid-template-columns: 1fr; gap: 32px; }
  .intro__photo { order: 1; width: 200px; box-shadow: 7px 7px 0 0 var(--green); }
  .intro__text { order: 2; }
}

@media (max-width: 479px) {
  .intro__name,
  .intro__role,
  .intro__quote { text-align: center; }
  .intro__actions { flex-direction: column; align-items: center; }
  .intro__facts { justify-content: center; }
  .scroll-cue { display: none; }
}

/* ---------- Étude de cas, version 2 (Skillz Agency) ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 3px;
  background-image: linear-gradient(90deg, var(--green), #0fe);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.cs-hero {
  padding: 130px 30px 0;
  background-image: linear-gradient(var(--mint), var(--white));
}

.cs-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.cs-tags li {
  margin: 0;
  padding: 2px 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(1, 51, 47, 0.35);
  border-radius: 100px;
}

.cs-title {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-title);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.1;
}

.cs-tagline {
  margin: 8px 0 20px;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

.cs-lead {
  max-width: 28em;
  margin-bottom: 28px;
}

.cs-hero .button {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 10px 26px;
}

.cs-hero__visual {
  margin: 0;
  overflow: hidden;
  background-color: var(--green-dark);
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 0 var(--green);
}

.cs-hero__visual img {
  width: 100%;
  height: auto;
}

.cs-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 70px auto -50px;
  background-color: var(--white);
  border: 1px solid rgba(1, 51, 47, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 0 rgba(10, 79, 74, 0.12);
}

.cs-facts > div {
  padding: 24px 28px;
}

.cs-facts > div + div {
  border-left: 1px solid rgba(1, 51, 47, 0.15);
}

.cs-facts dt {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cs-facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
}

.cs-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 30px 40px;
}

.cs-block__title {
  position: sticky;
  top: 110px;
  align-self: start;
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

.cs-block__body p {
  font-size: 18px;
  line-height: 32px;
}

.cs-showcase {
  padding: 60px 30px 80px;
  background-image: linear-gradient(var(--white), var(--mint));
}

.cs-browser {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--green-dark);
  border-radius: 14px;
  box-shadow: 12px 12px 0 0 var(--green);
}

.cs-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--mint);
  border-bottom: 1px solid rgba(1, 51, 47, 0.2);
}

.cs-browser__bar span {
  width: 10px;
  height: 10px;
  background-color: rgba(1, 51, 47, 0.25);
  border-radius: 50%;
}

.cs-browser__bar p {
  flex: 1;
  max-width: 340px;
  margin: 0 0 0 12px;
  padding: 0 16px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 24px;
  background-color: var(--white);
  border-radius: 100px;
}

.cs-browser__view {
  max-height: 620px;
  overflow-y: auto;
  scrollbar-color: var(--green) var(--mint);
  scrollbar-width: thin;
}

.cs-browser__view:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -4px;
}

.cs-browser__view img {
  width: 100%;
}

.cs-browser figcaption {
  padding: 10px 16px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  background-color: var(--mint);
  border-top: 1px solid rgba(1, 51, 47, 0.2);
}

.cs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 30px 40px;
}

.cs-card {
  padding: 32px;
  background-color: var(--white);
  border: 1px solid rgba(1, 51, 47, 0.25);
  border-radius: var(--radius-lg);
  transition: transform 0.25s, box-shadow 0.25s;
}

.cs-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 0 var(--green);
}

.cs-card__num {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--font-title);
  font-size: 44px;
  line-height: 1;
}

.cs-card h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
}

.cs-card h3 + p {
  margin: 0;
  font-size: 15px;
  line-height: 26px;
}

.cs-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 30px 30px;
}

.cs-wide img {
  width: 100%;
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 0 var(--green);
}

.cs-nextwrap {
  padding: 60px 30px 110px;
}

.cs-next {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px;
  color: var(--mint);
  text-decoration: none;
  background-color: var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 0 var(--green);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.7s;
}

.cs-next.is-visible:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 0 var(--green);
}

.cs-next__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}

.cs-next__title {
  margin: 0 0 6px;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 44px;
  line-height: 1.1;
}

.cs-next__tags {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.cs-next img {
  width: 100%;
  border-radius: 14px;
}

.cs-next__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 22px;
  border: 1px solid rgba(235, 255, 250, 0.5);
  border-radius: 50%;
}

@media (max-width: 991px) {
  .cs-hero { padding-top: 110px; }
  .cs-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-facts > div:nth-child(3) { border-left: 0; }
  .cs-facts > div:nth-child(n+3) { border-top: 1px solid rgba(1, 51, 47, 0.15); }
  .cs-block { grid-template-columns: 1fr; gap: 24px; padding-top: 110px; }
  .cs-block__title { position: static; }
  .cs-next { grid-template-columns: 1fr auto; }
  .cs-next img { display: none; }
}

@media (max-width: 767px) {
  .cs-hero { padding: 100px 20px 0; }
  .cs-block { padding: 100px 20px 20px; }
  .cs-showcase { padding: 40px 20px 60px; }
  .cs-browser { box-shadow: 8px 8px 0 0 var(--green); }
  .cs-browser__view { max-height: 440px; }
  .cs-cards { grid-template-columns: 1fr; padding: 60px 20px 20px; }
  .cs-wide { padding: 30px 20px 70px; }
  .cs-nextwrap { padding: 40px 20px 90px; }
  .cs-next { padding: 24px; }
  .cs-next__title { font-size: 34px; }
}

@media (max-width: 479px) {
  .cs-facts { grid-template-columns: 1fr; margin-top: 50px; }
  .cs-facts > div + div { border-left: 0; border-top: 1px solid rgba(1, 51, 47, 0.15); }
  .cs-title,
  .cs-tagline,
  .cs-lead { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .read-progress { display: none; }
  .cs-card,
  .cs-next { transition: none; }
}

/* ---------- Études de cas : variantes ---------- */
.cs-facts--n3 {
  grid-template-columns: 1fr 1.3fr 1.7fr;
}

.cs-facts .pills {
  justify-content: flex-start;
  gap: 6px;
}

.cs-facts .pills li {
  font-size: 12px;
  line-height: 24px;
  border-color: rgba(1, 51, 47, 0.35);
}

.cs-block__body p + p {
  margin-top: 24px;
}

.cs-block blockquote {
  margin: 0;
  padding: 36px;
  background-color: var(--mint);
  border: 1px solid rgba(1, 51, 47, 0.25);
  border-radius: var(--radius-lg);
}

.cs-block blockquote p {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1.45;
}

.cs-block cite {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  font-style: normal;
}

.cs-results {
  margin-top: 90px;
  padding: 100px 30px;
  color: var(--mint);
  background-color: var(--green-dark);
}

.cs-results__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.cs-results__title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

.cs-results p {
  margin: 0;
  font-size: 20px;
  line-height: 34px;
}

.cs-gallery {
  display: grid;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 30px 0;
}

.cs-gallery figure {
  margin: 0;
  padding: 0;
}

.cs-gallery img {
  width: 100%;
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 0 var(--green);
}

.cs-slidewrap {
  padding: 90px 0 0;
}

.cs-slider {
  display: flex;
  gap: 28px;
  padding: 10px max(30px, calc((100vw - 1100px) / 2)) 30px;
  overflow-x: auto;
  scroll-padding-inline: max(30px, calc((100vw - 1100px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--green) transparent;
  scrollbar-width: thin;
}

.cs-slider:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -4px;
}

.cs-slide {
  flex: 0 0 min(760px, 84%);
  margin: 0;
  padding: 0 12px 12px 0;
  scroll-snap-align: start;
}

.cs-slide img {
  width: 100%;
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 0 var(--green);
}

.cs-slide figcaption {
  margin-top: 22px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cs-slider__hint {
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.7;
}

@media (max-width: 991px) {
  .cs-facts--n3 { grid-template-columns: 1fr 1fr; }
  .cs-facts--n3 > div:last-child { grid-column: 1 / -1; }
  .cs-results__inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 767px) {
  .cs-results { padding: 70px 20px; }
  .cs-gallery { padding: 60px 20px 0; }
  .cs-slidewrap { padding-top: 60px; }
  .cs-block blockquote { padding: 24px; }
  .cs-block blockquote p { font-size: 22px; }
  .cs-results p { font-size: 18px; line-height: 30px; }
}

@media (max-width: 479px) {
  .cs-facts--n3 { grid-template-columns: 1fr; }
  .cs-slide { flex-basis: 88%; }
}

/* ---------- Page Projets (liste) ---------- */
.pl-hero { padding-bottom: 20px; }
.pl-hero__inner { max-width: 1100px; margin: 0 auto; }
.pl-hero .cs-title { font-size: clamp(52px, 8vw, 110px); }

.pl-list {
  display: grid;
  gap: 110px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px 120px;
}

.pl {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 60px;
}

.pl:nth-child(even) { grid-template-columns: 5fr 7fr; }
.pl:nth-child(even) .pl__visual { order: 2; }

.pl__visual {
  display: block;
  overflow: hidden;
  background-color: var(--green-dark);
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 0 var(--green);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pl__visual img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}

.pl:hover .pl__visual {
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 0 var(--green);
}

.pl:hover .pl__visual img { transform: scale(1.03); }

.pl__num {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1;
  opacity: 0.6;
}

.pl__name {
  margin: 0 0 28px;
  font-family: var(--font-title);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

.pl__name a { color: var(--green-dark); text-decoration: none; }

.pl .button {
  gap: 8px;
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 10px 26px;
}

@media (max-width: 991px) {
  .pl,
  .pl:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .pl:nth-child(even) .pl__visual { order: 0; }
  .pl-list { gap: 80px; }
}

@media (max-width: 767px) {
  .pl-list { padding: 40px 20px 90px; }
  .nav { padding-left: 1.6em; }
}

/* ---------- Section projets de l'accueil ---------- */
.home-projects { margin-top: 10vh; padding: 60px 30px 120px; }
.home-projects__head { max-width: 1100px; margin: 0 auto; }
.home-projects .cs-title { font-size: clamp(52px, 8vw, 110px); }
.home-projects .pl-list { padding: 60px 0 70px; }
.home-projects .projects__more .button { display: inline-flex; gap: 8px; width: auto; padding: 12px 32px; }

@media (max-width: 767px) {
  .home-projects { padding: 50px 20px 90px; margin-top: 6vh; }
  .home-projects .pl-list { padding: 40px 0 50px; }
}

/* ---------- Menu mobile : raccord avec les coins arrondis de la barre ---------- */
@media (max-width: 767px) {
  .nav__menu {
    top: calc(100% - 24px);
    padding-top: 24px;
    padding-bottom: 12px;
    z-index: -1;
    background-color: var(--green);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 20px rgba(1, 51, 47, 0.18);
  }
  .nav--inverted .nav__menu { background-color: var(--mint); }
  .nav__link,
  .nav--inverted .nav__link { background-color: transparent; }
}
