/* ===== Root ===== */
:root {
  --bg: #fff;
  --ink: #23262d;
  --shadow: rgb(50, 52, 59);
  --muted: rgb(155, 155, 155);
  --dark: rgb(48, 55, 62);
  --accent: #daa14c;
  --orange: #ef6434;
  --line: rgba(35, 38, 45, 0.14);
  --max: 1290px;
}

body {
  background-color: var(--bg);
  color: var(--dark);
}

.button,
.text-link {
  background: var(--dark);
  color: var(--bg);
}

.button:hover,
.text-link:hover {
  background: var(--orange);
}
/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
}

.hero-images {
  position: relative;
  padding-right: 40px;
  padding-bottom: 40px;
}

.hero-images img:last-child {
  position: absolute;
  top: 80px;
  left: 40px;
}

.hero-content {
  max-width: 520px;
  min-width: 400px;
  padding: 32px;
}

.hero h2 {
  margin: 1rem 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 52px;
}

@media (max-width: 992px) {
  .hero-content {
    min-width: 300px;
    padding: 0;
  }

  .hero h2 {
    font-size: 32px;
    line-height: 1;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-images {
    padding: 0;
  }

  .hero-images img {
    width: 75%;
    height: auto;
  }

  .hero-images img:last-child {
    left: unset;
    top: unset;
    bottom: -40px;
    right: 0;
  }

  .hero-content {
    padding-top: 20px;
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .hero-images img:first-child {
    display: none;
  }

  .hero-images img:last-child {
    position: relative;
    width: 100%;
    bottom: unset;
    right: unset;
  }
}

/* ===== Designers ===== */
.designers {
  text-align: center;
}

.designers-header {
  margin-bottom: 3rem;
}

.designers-header .eyebrow {
  margin-bottom: 24px;
}

.designers-header h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.designers-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-image-container {
  position: relative;
  overflow: hidden;
}

.card-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 38, 45, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-image-container img {
  display: block;
  width: 100%;
  transition: filter 0.3s ease;
}

.card-image-container .button {
  width: 40px;
  height: 40px;
  min-height: unset;
  padding: 0;
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  color: var(--dark);
  transform: translateX(-50%);
  opacity: 0;
  z-index: 2;
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
}

.card-image-container:hover::after {
  opacity: 1;
}

.card-image-container:hover img {
  filter: brightness(0.65);
}

.card-image-container:hover .button {
  opacity: 1;
}

.card-image-container:hover .button:hover {
  background-color: var(--orange);
  color: var(--bg);
}

.name-link {
  transition: color ease 0.3s;
}

.name-link:hover {
  color: var(--orange);
}

.name-link h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.job {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 992px) {
  .designers-header {
    margin-bottom: 2.5rem;
  }

  .designers-header h2 {
    font-size: 40px;
  }

  .designers h2 {
    font-size: 32px;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .designers-header {
    margin-bottom: 2rem;
  }

  .designers-header .eyebrow {
    margin-bottom: 16px;
  }

  .designers-header h2 {
    font-size: 34px;
  }

  .designers-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-image-container .button {
    width: 38px;
    height: 38px;
    bottom: 24px;
  }

  .name-link h4 {
    font-size: 17px;
  }

  .job {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .designers-header {
    margin-bottom: 2rem;
  }

  .designers-header h2 {
    font-size: 24px;
  }

  .card-image-container .button {
    width: 40px;
    height: 40px;
    bottom: 24px;
  }

  .name-link h4 {
    font-size: 18px;
  }

  .job {
    font-size: 14px;
  }
}

/* ===== Commencer ===== */
.commencer {
  width: 100%;
  margin: 0;
  padding: 120px 2rem;
  background: rgb(237, 237, 237);
  color: rgb(83, 83, 83);
}

.commencer .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.commencer-item .eyebrow {
  font-size: 14px;
  font-weight: 700;
}

.commencer-item h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
}

.commencer-item.spec p:not(.eyebrow) {
  font-size: 1rem;
  font-weight: 400;
}

.commencer-item:not(.spec) {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  padding: 2rem;
}

.commencer-item:not(.spec):hover {
  color: var(--bg);
}

.one::before,
.two::before,
.three::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  background-size: cover;
  background-position: 50% center;

  transition:
    opacity 0.3s ease,
    background-position 0.2s ease;
}

.one::before {
  background-image: url("../assets/Image-3-etapes-homepage-1.jpg");
}

.two::before {
  background-image: url("../assets/Image-3-etapes-homepage-2.jpg");
}

.three::before {
  background-image: url("../assets/Image-3-etapes-homepage-4.jpg");
}

.one:hover::before,
.two:hover::before,
.three:hover::before {
  opacity: 1;
  background-position: calc(50% + 30px) center;
}

.commencer-item h3 {
  position: relative;
  z-index: 1;
  font-size: 120px;
  font-weight: 800;
  line-height: 120px;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
}

.commencer-item:hover h3 {
  color: transparent;
  -webkit-text-stroke: 1px var(--bg);
}

.commencer h4 {
  position: relative;
  z-index: 1;
}

.commencer-item:not(.spec) p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 992px) {
  .commencer {
    padding: 90px 1.5rem;
  }

  .commencer .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .commencer-item.spec {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }

  .commencer-item.spec h2 {
    font-size: 40px;
  }

  .commencer-item h3 {
    font-size: 90px;
    line-height: 90px;
  }
}

@media (max-width: 768px) {
  .commencer {
    padding: 70px 1rem;
  }

  .commencer .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .commencer-item:not(.spec) {
    padding: 3rem 2rem 5em 2rem;
  }

  .commencer-item.spec {
    text-align: center;
  }

  .commencer-item h2 {
    font-size: 32px;
    line-height: 36px;
  }

  .commencer-item h3 {
    font-size: 80px;
    line-height: 80px;
  }
}

@media (max-width: 576px) {
  .commencer {
    padding: 60px 1rem;
  }

  .commencer .container {
    gap: 1rem;
  }

  .commencer-item:not(.spec) {
    padding: 2rem 2rem 4em 2rem;
  }

  .commencer-item .eyebrow {
    font-size: 13px;
  }

  .commencer-item h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .commencer-item h3 {
    font-size: 64px;
    line-height: 64px;
  }

  .commencer-item:not(.spec) p {
    font-size: 13px;
  }
}

/* ===== Projects ===== */
.projects .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.projects img {
  margin-bottom: 2rem;
}

.projects .eyebrow {
  margin: 1rem 0;
}

.projects h3 {
  font-size: 48px;
  font-weight: 700;
  line-height: 54px;
  margin: 1rem 0 3rem;
}

.projects .divider {
  width: 100%;
  height: 2px;
  background-color: var(--dark);
}

.projects p {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 992px) {
  .projects .container {
    gap: 1.5rem;
  }

  .projects h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 1rem 0 2.5rem;
  }

  .projects p {
    font-size: 16px;
  }

  .projects img {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section.projects {
    padding-top: 0;
  }

  .projects .container {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .projects h3 {
    margin: 1rem 0 2rem;
  }

  .projects p {
    font-size: 16px;
  }

  .projects img {
    margin: 0 auto 1.5rem auto;
  }
}

@media (max-width: 576px) {
  .projects h3 {
    font-size: 28px;
    line-height: 34px;
    margin: 0.75rem 0 1.75rem;
  }

  .projects .eyebrow {
    font-size: 13px;
    margin: 0.5rem 0;
  }

  .projects p {
    font-size: 14px;
    line-height: 1.6;
  }

  .projects img {
    margin-bottom: 1.25rem;
  }

  .projects .divider {
    height: 1px;
  }
}
