/*
 * Ajustements des deux sections validées avec Cyril et les rôles éditorial,
 * créatif et carrière. La composition générale, les textes et la palette
 * de la première version sont conservés.
 * Inspiration : https://styles.refero.design/style/f99aca3e-5289-4595-a7cc-77a72052f4b8
 */

/* Expertises : un titre et une introduction en regard, trois blocs distincts. */
.expertise-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 22px 64px;
  align-items: end;
}

.expertise-section .section-heading > .eyebrow {
  grid-column: 1 / -1;
}

.expertise-section .section-heading h2 {
  margin-top: 0;
}

.expertise-section .section-heading > p:last-child:not(.eyebrow) {
  margin-top: 0;
  padding-bottom: 3px;
  font-size: 16px;
  line-height: 1.75;
}

.expertise-section .expertise-grid {
  margin-top: 42px;
  gap: 18px;
  border: 0;
}

.expertise-section .expertise-item,
.expertise-section .expertise-item + .expertise-item {
  padding: 30px 26px;
  background: var(--paper);
  border: 0;
  border-radius: 8px 0 8px 8px;
}

.expertise-section .expertise-number {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--blue-light);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.expertise-section .expertise-item h3 {
  margin-top: 24px;
  min-height: 54px;
  max-width: none;
  font-size: 23px;
  line-height: 1.18;
}

.expertise-section .expertise-item p {
  margin-top: 17px;
  color: #525c70;
  font-size: 16px;
  line-height: 1.7;
}

.expertise-section .tags {
  gap: 7px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.expertise-section .tags li {
  background: #f0f1f2;
  border: 0;
  border-radius: 20px;
  padding: 5px 10px;
  color: #525c70;
  font-size: 11px;
  line-height: 1.6;
}

/* Projets : contexte et rôle à gauche, un repère factuel dans un panneau clair. */
.projects-section .projects-heading > p {
  font-size: 16px;
  line-height: 1.75;
}

.projects-section .project-list {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.projects-section .project {
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr);
  gap: 27px 36px;
  padding: 30px 32px 34px;
  background: #f0f1f3;
  border: 1px solid #e7e8eb;
  border-radius: 8px 0 8px 8px;
}

.projects-section .project-index {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding-bottom: 21px;
  border-bottom: 1px solid #daddE3;
}

.projects-section .project-index > span:first-child {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.projects-section .project-index > span:last-child {
  max-width: none;
  color: #525c70;
  font-size: 11px;
  letter-spacing: .06em;
}

.projects-section .project-company {
  gap: 15px;
  min-height: 40px;
  margin-bottom: 22px;
}

.projects-section .project-company img {
  width: 41px;
  height: 40px;
}

.projects-section .project-company > span {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .035em;
}

.projects-section .project h3 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.13;
}

.projects-section .project-main > p {
  margin-top: 21px;
  max-width: 60ch;
  color: #525c70;
  font-size: 16px;
  line-height: 1.75;
}

.projects-section .project-main .project-role {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #daddE3;
  font-size: 15px;
  line-height: 1.75;
}

.projects-section .project-role > strong {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
}

.projects-section .project-detail {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  padding: 27px;
  background: var(--paper);
  border: 1px solid #e1e4eb;
  border-radius: 8px 0 8px 8px;
}

.projects-section .detail-kicker {
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .09em;
}

.projects-section .project-detail > strong {
  margin-top: 37px;
  color: var(--blue);
  font-size: 64px;
  line-height: 1.08;
}

.projects-section .project-detail > strong > span {
  font-size: 37px;
}

.projects-section .project-detail-text > strong {
  font-size: 41px;
}

.projects-section .project-detail > p {
  margin-top: 17px;
  color: #525c70;
  font-size: 14px;
  line-height: 1.7;
}

.projects-section .project-detail .tags {
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
}

.projects-section .project-detail .tags li {
  border: 1px solid #d8dde9;
  border-radius: 20px;
  padding: 5px 10px;
  color: #525c70;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .expertise-section .section-heading {
    gap: 22px 38px;
  }

  .expertise-section .expertise-grid {
    gap: 14px;
  }

  .expertise-section .expertise-item,
  .expertise-section .expertise-item + .expertise-item {
    padding: 25px 20px;
  }

  .expertise-section .expertise-item h3 {
    font-size: 21px;
    min-height: 76px;
  }

  .expertise-section .expertise-item p {
    font-size: 15px;
  }

  .projects-section .project {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
    gap: 24px;
    padding: 27px;
  }

  .projects-section .project-detail {
    padding: 24px;
  }

  .projects-section .project-detail > strong {
    font-size: 54px;
  }

  .projects-section .project-detail-text > strong {
    font-size: 35px;
  }
}

@media (max-width: 820px) {
  .expertise-section .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .expertise-section .section-heading > p:last-child:not(.eyebrow) {
    max-width: 60ch;
  }

  .expertise-section .expertise-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 32px;
  }

  .expertise-section .expertise-item,
  .expertise-section .expertise-item + .expertise-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0 20px;
    padding: 27px;
  }

  .expertise-section .expertise-number {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 34px;
    height: 34px;
  }

  .expertise-section .expertise-item h3 {
    margin-top: 4px;
    min-height: 0;
    font-size: 23px;
  }

  .expertise-section .expertise-item p {
    grid-column: 2;
    margin-top: 14px;
    font-size: 16px;
  }

  .expertise-section .tags {
    grid-column: 2;
    margin-top: 20px;
    padding-top: 17px;
  }

  .projects-section .projects-heading {
    grid-template-columns: 1fr .9fr;
    gap: 35px;
  }

  .projects-section .projects-heading > p {
    font-size: 15px;
  }

  .projects-section .project {
    grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr);
    gap: 24px;
    padding: 25px;
  }

  .projects-section .project-main > p {
    font-size: 15px;
  }

  .projects-section .project-main .project-role {
    font-size: 14px;
  }

  .projects-section .project-detail {
    padding: 22px;
  }
}

@media (max-width: 700px) {
  .projects-section .projects-heading {
    display: block;
  }

  .projects-section .projects-heading > p {
    margin-top: 24px;
    max-width: 55ch;
  }

  .projects-section .project {
    grid-template-columns: minmax(0, 1fr);
    padding: 25px;
  }

  .projects-section .project-index {
    grid-column: 1;
    padding-bottom: 20px;
  }

  .projects-section .project h3 {
    font-size: 31px;
  }

  .projects-section .project-main > p {
    font-size: 16px;
  }

  .projects-section .project-main .project-role {
    font-size: 15px;
  }

  .projects-section .project-detail {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 0 22px;
    padding: 24px;
  }

  .projects-section .detail-kicker {
    grid-column: 1 / -1;
  }

  .projects-section .project-detail > strong {
    margin-top: 20px;
    font-size: 54px;
  }

  .projects-section .project-detail-text > strong {
    font-size: 33px;
  }

  .projects-section .project-detail > p {
    margin-top: 20px;
    font-size: 14px;
  }

  .projects-section .project-detail .tags {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 0;
  }
}

@media (max-width: 420px) {
  .expertise-section .expertise-item,
  .expertise-section .expertise-item + .expertise-item {
    grid-template-columns: 29px minmax(0, 1fr);
    column-gap: 15px;
    padding: 24px 20px;
  }

  .expertise-section .expertise-number {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }

  .expertise-section .expertise-item h3 {
    font-size: 22px;
  }

  .expertise-section .expertise-item p {
    grid-column: 1 / -1;
    margin-top: 18px;
  }

  .expertise-section .expertise-number {
    grid-row: 1;
  }

  .expertise-section .tags {
    grid-column: 1 / -1;
  }

  .projects-section .project {
    padding: 22px 20px;
  }

  .projects-section .project-index > span:last-child {
    font-size: 10px;
  }

  .projects-section .project-company > span {
    font-size: 10px;
  }

  .projects-section .project h3 {
    font-size: 29px;
  }

  .projects-section .project-detail {
    padding: 21px 18px;
    gap: 0 15px;
  }

  .projects-section .project-detail > strong {
    font-size: 45px;
  }

  .projects-section .project-detail > strong > span {
    font-size: 28px;
  }

  .projects-section .project-detail-text > strong {
    font-size: 30px;
  }

  .projects-section .project-detail > p {
    font-size: 13px;
  }

  .projects-section .project-detail .tags li {
    font-size: 10px;
  }
}
