/* ==========================================================================
   INDEX (Accueil) — page styles
   ========================================================================== */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 60px;
}

/* --- Nav --- */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--gun-powder-950);
}

.nav__link.is-active {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Hero title --- */
.hero-title {
  margin-top: 120px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 48px;
  color: var(--gun-powder-950);
  text-align: center;
}

.hero-title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
}

.hero-title em.japonica {
  color: var(--japonica-500);
}

.hero-title em.bay-leaf {
  color: var(--bay-leaf-400);
}

.hero-title em.tawny-port {
  color: var(--tawny-port-600);
}

.hero-title em.gun-powder {
  color: var(--gun-powder-500);
}

/* --- Hero subtitle --- */
.hero-subtitle {
  margin-top: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--gun-powder-900);
  text-align: center;
}

/* --- Hero image --- */
.hero-image {
  margin-top: 30px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-image img {
  width: 100%;
}

/* --- Intro text --- */
.intro-text {
  margin-top: 120px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.intro-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--gun-powder-900);
}

/* --- Projects section --- */
.projects {
  margin-top: 100px;
}

.projects__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 40px;
  color: var(--gun-powder-950);
}

.projects__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--grandis-400);
}

.projects__list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 46px;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 22px;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card__content__left {
  padding-left: 20px;
}

.project-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
}

.project-card__text {
  margin-top: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--gun-powder-900);
}

.project-card__content .btn {
  margin-top: 40px;
}

.project-card__media img {
  width: 100%;
}

/* --- CTA button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid var(--gun-powder-100);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--gun-powder-900);
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--gun-powder-50);
}
/* --- About section --- */
.about {
  margin-top: 140px;
}

.about__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 40px;
  color: var(--gun-powder-950);
}

.about__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--tawny-port-600);
}

.about__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.about__photo {
  border-radius: 24px;
  overflow: hidden;
}

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

.about__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about__intro {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 30px;
  color: var(--gun-powder-950);
}

.about__intro em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--grandis-400);
}

/* --- Experience list (table-like alignment via CSS grid) --- */
.experience-list {
  display: grid;
  grid-template-columns: max-content max-content 1fr max-content;
  align-items: center;
  column-gap: 24px;
}

.experience-item {
  display: contents;
}

.experience-item__title,
.experience-item__company,
.experience-item__spacer,
.experience-item__years {
  padding: 20px 0;
}

.experience-item:first-child .experience-item__title,
.experience-item:first-child .experience-item__company,
.experience-item:first-child .experience-item__spacer,
.experience-item:first-child .experience-item__years {
  padding-top: 0;
}

.experience-item:last-child .experience-item__title,
.experience-item:last-child .experience-item__company,
.experience-item:last-child .experience-item__spacer,
.experience-item:last-child .experience-item__years {
  padding-bottom: 0;
}

.experience-item__separator {
  grid-column: 1 / -1;
  height: 1px;
  background-color: var(--gun-powder-200);
}

.experience-item__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  color: var(--gun-powder-950);
}

.experience-item__company {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--gun-powder-900);
}

.experience-item__years {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--gun-powder-950);
}

.about__link {
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--gun-powder-500);
  text-decoration: underline;
}
/* --- Contact (closing) section --- */
.contact {
  margin-top: 180px;
  margin-bottom: 180px;
  text-align: center;
}

.contact__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: var(--gun-powder-950);
}

.contact__title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--grandis-400);
}

.contact__text {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--gun-powder-900);
}

.contact__links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.contact__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--gun-powder-500);
  text-decoration: underline;
}

.contact__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gun-powder-500);
}