@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #1a2a4a;
  --red:    #c0392b;
  --blue:   #2c3e7a;
  --white:  #ffffff;
  --mono:   'Source Sans 3', 'Source Sans Pro', sans-serif;
  --sans:   'Source Sans 3', 'Source Sans Pro', sans-serif;
  --bg-dark: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--mono);
  background: var(--bg-dark);
  color: var(--navy);
}

/* ── BACKGROUND FIXE UNIQUE ── */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.92) 0%,
      rgba(20,8,4,0.75) 40%,
      rgba(60,25,5,0.70) 70%,
      rgba(30,12,3,0.85) 100%
    ),
    url('bg.jpg') center center / cover no-repeat fixed;
  pointer-events: none;
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── HOME ── */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.home-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-65%);
  height: 420px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.13) 30%,
    rgba(255,255,255,0.13) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.home-content > * {
  position: relative;
  z-index: 1;
}

.logo-img {
  height: 450px;
  width: auto;
  margin-bottom: 48px;
  display: block;
}

.home-title {
  font-family: var(--mono);
  font-size: clamp(1.19rem, 2.2vw, 1.54rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--white);
  max-width: 960px;
  margin-bottom: 28px;
}

.home-desc {
  font-family: var(--mono);
  font-size: clamp(0.97rem, 1.4vw, 1.09rem);
  line-height: 1.75;
  color: var(--white);
  max-width: 960px;
  text-align: justify;
  margin-bottom: 52px;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
  font-family: var(--mono);
  font-size: clamp(0.97rem, 1.3vw, 1.07rem);
  letter-spacing: 0.04em;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.12);
}

/* ── FOND BLANC CONTINU — démarre après l'accueil ── */
.sections-wrapper {
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.sections-wrapper::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  pointer-events: none;
}

.sections-wrapper .section {
  background: transparent;
}

.inner-content {
  min-height: 100vh;
  padding: 60px 6% 80px 6%;
  max-width: 1400px;
  margin: 0 auto;
}

.retour-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(26, 42, 74, 0.45);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 1.01rem;
  padding: 8px 20px;
  cursor: pointer;
  margin-bottom: 52px;
  transition: background 0.2s;
  outline: none;
}

.retour-btn:hover {
  background: rgba(26, 42, 74, 0.08);
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(1.39rem, 2.5vw, 1.79rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 36px;
}

.inner-content p {
  font-family: var(--mono);
  font-size: clamp(0.97rem, 1.3vw, 1.07rem);
  line-height: 1.85;
  color: var(--navy);
  text-align: justify;
  margin-bottom: 24px;
  max-width: 960px;
}

.inner-content p strong {
  font-weight: 700;
  color: var(--navy);
}

/* ── À PROPOS ── */
.two-col {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.col-text {
  flex: 1 1 55%;
}

.col-text p {
  max-width: 100%;
}

.col-photo {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
}

.portrait-img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── EXPERTISE ── */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.skills-list li {
  font-family: var(--mono);
  font-size: clamp(0.97rem, 1.3vw, 1.07rem);
  line-height: 2;
  color: var(--navy);
}

/* ── CONTACT ── */
.contact-title {
  font-family: var(--sans);
  font-size: clamp(1.49rem, 2.8vw, 2.09rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.contact-text {
  text-align: left !important;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(0.97rem, 1.3vw, 1.07rem);
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.75;
}

/* ── TABLETTE ── */
@media (max-width: 900px) {
  .inner-content {
    padding: 40px 6% 60px 6%;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  .home-content {
    padding: 48px 20px 40px;
    justify-content: flex-start;
    padding-top: 15vh;
  }

  /* Barre lumineuse adaptée mobile */
  .home-content::before {
    height: 260px;
    transform: translateY(-60%);
  }

  .home-title {
    font-size: 1.19rem;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
  }

  .home-desc {
    font-size: 1.01rem;
    margin-bottom: 40px;
    text-align: left;
  }

  .logo-img {
    height: 189px;
    margin-bottom: 36px;
  }

  .home-nav {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .nav-btn {
    width: 100%;
    padding: 16px 20px;
    border-bottom: none;
    font-size: 1.04rem;
  }

  .nav-btn:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.55);
  }

  /* Fond blanc continu — dégradé réduit sur mobile */
  .sections-wrapper::before {
    top: -80px;
    height: 80px;
  }

  .inner-content {
    padding: 36px 6% 60px 6%;
  }

  .retour-btn {
    margin-bottom: 32px;
    font-size: 0.97rem;
    color: var(--navy);
    border-color: rgba(26, 42, 74, 0.45);
  }

  .section-title {
    font-size: 1.34rem;
    margin-bottom: 24px;
    color: var(--navy);
  }

  .inner-content p {
    font-size: 1.04rem;
    line-height: 1.8;
    text-align: left;
    color: var(--navy);
  }

  .skills-list li {
    font-size: 1.04rem;
    line-height: 1.9;
    color: var(--navy);
  }

  .two-col {
    flex-direction: column;
    gap: 32px;
  }

  .col-photo {
    flex: none;
    width: 100%;
    justify-content: flex-start;
  }

  .portrait-img {
    width: 160px;
    height: 200px;
  }

  .contact-title {
    font-size: 1.49rem;
    color: var(--navy);
  }

  .contact-text {
    font-size: 1.04rem;
    color: var(--navy);
  }

  .contact-email {
    font-size: 1.04rem;
    word-break: break-all;
    color: var(--navy);
  }
}

/* ── PETIT MOBILE ── */
@media (max-width: 480px) {
  .home-content {
    padding-top: 10vh;
  }

  .inner-content {
    padding: 28px 5% 50px 5%;
  }

  .home-title {
    font-size: 1.14rem;
  }
}
