/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow: #F2C744;
  --green: #2D6B4A;
  --green-dark: #1E4D35;
  --pink: #E8A0BF;
  --coral: #E85D4A;
  --blue: #3B5DC9;
  --blue-light: #6B8FD4;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray-light: #F5F5F5;
  --gray: #888888;
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== NAV STICKY ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sticky-nav--visible {
  transform: translateY(0);
}

.sticky-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.sticky-nav__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  transition: color 0.3s;
}

.sticky-nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.3s;
}

.sticky-nav__link:hover::after {
  width: 100%;
}

/* ===== HEADER : NOM + NAV ===== */
.header {
  text-align: center;
  padding: 2.5rem 1.5rem 0;
}

.header__name {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  line-height: 1;
}

.header__nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 0.8rem;
  padding-bottom: 1.5rem;
}

.header__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  transition: color 0.3s;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.3s;
}

.header__link:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  width: 100%;
  overflow: hidden;
}

.hero__color-blocks {
  display: none;
}

.hero__illustration {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.hero__illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== À PROPOS ===== */
.apropos-section {
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}

.apropos-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  position: relative;
}

.apropos-section__title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 5rem);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.apropos__left {
  position: relative;
  z-index: 1;
}

.apropos__text p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  color: var(--black);
  max-width: 55ch;
}

.apropos__illustration {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
  margin-top: -60px;
}

.apropos__illustration img {
  max-width: 300px;
  width: 100%;
}

/* ===== SECTIONS GENERIQUES ===== */
.section {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
}

/* ===== PROJETS GRID ===== */
.projets-section {
  padding-bottom: 5rem;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.projets-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 460px;
  margin-top: 2rem;
}

.projet-folder {
  text-align: center;
  display: block;
}

.projet-folder:hover .projet-folder__svg {
  transform: translateY(-6px) scale(1.05);
}

.projet-folder:hover .projet-folder__label {
  color: var(--blue);
}

.projet-folder__svg {
  width: 90px;
  height: 72px;
  margin: 0 auto 0.8rem;
  display: block;
  transition: transform 0.3s ease;
}

.projet-folder__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
  transition: color 0.3s ease;
}

/* ===== GALERIE ===== */
.galerie {
  padding-top: 4rem;
}

.galerie__title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--black);
  text-align: left;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.galerie__images {
  background: var(--green-dark);
  padding: 2.5rem 2rem 5rem;
}

.galerie__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.galerie__item {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.galerie__item:hover img {
  transform: scale(1.05);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
  padding: 5rem 2rem;
  color: var(--black);
}

.contact__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.contact__title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6rem);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  letter-spacing: 0.03em;
}

.contact__pill {
  display: inline-block;
  width: clamp(120px, 15vw, 200px);
  height: clamp(35px, 4vw, 50px);
  background: var(--coral);
  border-radius: 50px;
  flex-shrink: 0;
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__photo {
  border-radius: 6px;
  overflow: hidden;
  width: 280px;
}

.contact__photo img {
  width: 100%;
  object-fit: cover;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.contact__info a {
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s;
}

.contact__info a:hover {
  opacity: 0.6;
}

.contact__linkedin {
  display: inline-block;
  margin-top: 0.8rem;
}

.contact__linkedin img {
  width: 45px;
  height: 45px;
}

/* ===== PAGE PROJET (sous-pages) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.3s;
}

.nav__link:hover::after {
  width: 100%;
}

.page-header {
  padding: 5rem 2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header__title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Bloc projet individuel */
.projet-block {
  padding: 3rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid #eee;
}

.projet-block:last-of-type {
  border-bottom: none;
}

.projet-block__title {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.projet-block__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.projet-block__content--reverse {
  direction: rtl;
}

.projet-block__content--reverse > * {
  direction: ltr;
}

.projet-block__text p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #333;
}

.projet-block__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.projet-block__images--single {
  grid-template-columns: 1fr;
}

.projet-block__images--triple {
  grid-template-columns: repeat(3, 1fr);
}

.projet-block__images img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.projet-block__full-images {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.projet-block__full-images img {
  border-radius: 6px;
  width: 100%;
}

/* Grilles d'images */
.images-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.images-grid--2 { grid-template-columns: repeat(2, 1fr); }
.images-grid--3 { grid-template-columns: repeat(3, 1fr); }
.images-grid--4 { grid-template-columns: repeat(4, 1fr); }

.images-grid img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

/* Liens vidéo */
.video-links {
  margin-top: 1.5rem;
}

.video-links a {
  display: block;
  color: var(--blue);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  word-break: break-all;
  transition: color 0.3s;
}

.video-links a:hover {
  color: var(--coral);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablette (max 768px) --- */
@media (max-width: 768px) {
  .header {
    padding: 2rem 1.5rem 0;
  }

  .header__nav {
    gap: 1.5rem;
  }

  .header__link {
    font-size: 0.8rem;
  }

  .sticky-nav__inner {
    gap: 1.5rem;
  }

  .hero__illustration {
    padding: 0 1.5rem;
  }

  .apropos-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem 2rem;
  }

  .apropos__illustration {
    order: -1;
    justify-content: center;
    margin-top: 0;
  }

  .apropos__illustration img {
    max-width: 220px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .projets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 100%;
  }

  .projets-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .projet-folder__svg {
    width: 75px;
    height: 60px;
  }

  .galerie__title {
    padding: 0 1.5rem;
  }

  .galerie__images {
    padding: 2rem 1.5rem 3rem;
  }

  .galerie__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .contact {
    padding: 3rem 1.5rem;
  }

  .contact__header {
    margin-bottom: 2rem;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__photo {
    width: 100%;
    max-width: 300px;
  }

  .projet-block {
    padding: 2.5rem 1.5rem;
  }

  .projet-block__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projet-block__content--reverse {
    direction: ltr;
  }

  .images-grid--3,
  .images-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__inner {
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
  }

  .page-header {
    padding: 4.5rem 1.5rem 1.5rem;
  }
}

/* --- Mobile / iPhone (max 480px) --- */
@media (max-width: 480px) {
  .header {
    padding: 1.5rem 1rem 0;
  }

  .header__name {
    font-size: 2rem;
    letter-spacing: 0.12em;
  }

  .header__nav {
    gap: 1rem;
    margin-top: 0.5rem;
    padding-bottom: 1rem;
  }

  .header__link {
    font-size: 0.75rem;
  }

  .sticky-nav__inner {
    gap: 1rem;
    padding: 0.6rem 1rem;
  }

  .sticky-nav__link {
    font-size: 0.75rem;
  }

  .hero__illustration {
    padding: 0 1rem;
  }

  .apropos-section__inner {
    padding: 1.5rem 1rem 1.5rem;
    gap: 1.5rem;
  }

  .apropos-section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .apropos__text p {
    font-size: 0.82rem;
  }

  .apropos__illustration img {
    max-width: 180px;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section__title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .projets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .projets-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1.2rem;
  }

  .projet-folder__svg {
    width: 60px;
    height: 48px;
  }

  .projet-folder__label {
    font-size: 0.68rem;
  }

  .galerie {
    padding-top: 2.5rem;
  }

  .galerie__title {
    font-size: 2.2rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  .galerie__images {
    padding: 1.5rem 1rem 3rem;
  }

  .galerie__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .contact {
    padding: 2.5rem 1rem;
  }

  .contact__header {
    margin-bottom: 1.5rem;
    gap: 0.8rem;
  }

  .contact__title {
    font-size: 2.5rem;
  }

  .contact__pill {
    width: 100px;
    height: 30px;
  }

  .contact__inner {
    gap: 1.5rem;
  }

  .contact__photo {
    max-width: 250px;
  }

  .contact__info a {
    font-size: 0.85rem;
  }

  .contact__linkedin img {
    width: 38px;
    height: 38px;
  }

  .nav__inner {
    gap: 1rem;
    padding: 0.6rem 1rem;
  }

  .nav__link {
    font-size: 0.75rem;
  }

  .page-header {
    padding: 4rem 1rem 1rem;
  }

  .page-header__title {
    font-size: 2rem;
  }

  .projet-block {
    padding: 2rem 1rem;
  }

  .projet-block__title {
    font-size: 1.3rem;
  }

  .projet-block__text p {
    font-size: 0.82rem;
  }

  .projet-block__images--triple {
    grid-template-columns: repeat(2, 1fr);
  }

  .images-grid--2,
  .images-grid--3,
  .images-grid--4 {
    grid-template-columns: 1fr;
  }

  .video-links a {
    font-size: 0.78rem;
  }
}

.contact__cv-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 16px; /* moins large que précédemment */
  background-color: #E85D4A; /* rouge du portfolio */
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 0.9rem; /* légèrement plus petit */
}

.contact__cv-button:hover {
  background-color: #d94f3e;
  transform: translateY(-2px);
}