/* ==================================================
   ESPACEMENT COMMUN ENTRE LES SECTIONS DE LA PAGE.
   ================================================== */
.about-founder,
.values,
.methodology,
.transition,
.figures,
.credentials,
.domaines,
.localisation {
  margin-top: 70px;
}

/* ==================================================
   PRESENTATION
   ================================================== */
.about-founder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: stretch;
  padding-top: 0;
}

.about-founder img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.about-founder .frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 32px;
  border: 12px solid #f1c50e;
}

.about-founder p {
  line-height: 2;
}

/* ==================================================
   VALEURS
   ================================================== */
.tabs-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.tab-link {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 8px solid transparent;
  background: transparent;
  color: #8a8f99;
  font: inherit;
  font-size: 1.125rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.tab-link.active {
  color: #000000;
  border-color: #f1c50e;
}

.tab-panel {
  box-sizing: border-box;
  display: none;
  min-height: 210px;
  padding: 36px 28px;
  background: #f7f7f7;
}

.tab-panel.tab-active {
  display: block;
}

.tab-panel p {
  max-width: 820px;
  line-height: 1.6;
}

.tab-panel p + p {
  margin-top: 22px;
}

/* ==================================================
   METHODOLOGIE
   ================================================== */
.methodology > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px;
}

.methodology article {
  display: grid;
  grid-template-rows: 60px 74px auto;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.methodology h3 {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.75rem;
  font-weight: normal;
}

.methodology p {
  max-width: 220px;
  margin: 0 auto;
}

/* ==================================================
   CITATION
   ================================================== */
.transition {
  position: relative;
  width: calc(100% - var(--site-gutter));
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding: 108px 0;
  color: #ffffff;
  overflow: hidden;
  background: rgba(20, 32, 35, 0.62);
}

.transition .section-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.transition::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 32, 35, 0.62);
}

.transition blockquote {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 4px solid #f1c50e;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* ==================================================
   CHIFFRES CLES
   ================================================== */
.figures > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  text-align: center;
}

.figures h3 {
  margin: 0 0 18px;
  color: #f1c50e;
  font-size: 4.5rem;
  font-weight: bold;
}

.figures article p {
  max-width: 290px;
  margin: 0 auto;
  font-size: 1rem;
}

.figures aside {
  max-width: 820px;
  margin: 56px auto 0;
  text-align: center;
}

.figures aside p {
  font-size: 1.5rem;
}

.figures aside a {
  color: #f1c50e;
  font-weight: bold;
  text-decoration: none;
}

/* ==================================================
   AGREMENTS
   ================================================== */
.credentials-mobile {
  display: none;
}

.credentials > div {
  display: grid;
  gap: 34px 28px;
  align-items: center;
  justify-content: center;
  max-width: var(--site-width);
  margin: 0 auto;
}

.credentials article {
  display: contents;
}

.credentials img {
  width: 205px;
  height: 205px;
  justify-self: center;
  border-radius: 50%;
  object-fit: cover;
}

.credentials header {
  box-sizing: border-box;
  width: 100%;
  padding: 30px 28px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.credentials header p:first-child {
  font-size: 1.25rem;
  margin-bottom: 22px;
  color: #f1c50e;
  font-weight: bold;
}

.credentials header p:not(:first-child) {
  font-size: 1rem;
}

.credentials article:nth-child(1) img {
  grid-column: 2;
  grid-row: 1;
  transform: translateX(-36px);
}

.credentials article:nth-child(1) header {
  grid-column: 3;
  grid-row: 1;
  transform: translateX(-36px);
}

.credentials article:nth-child(2) header {
  grid-column: 1;
  grid-row: 2;
  text-align: right;
  transform: translateX(36px);
}

.credentials article:nth-child(2) img {
  grid-column: 2;
  grid-row: 2;
  transform: translateX(36px);
}

.credentials article:nth-child(3) img {
  grid-column: 2;
  grid-row: 3;
  transform: translateX(-36px);
}

.credentials article:nth-child(3) header {
  grid-column: 3;
  grid-row: 3;
  transform: translateX(-36px);
}

/* ==================================================
   DOMAINES D ACCOMPAGNEMENT
   ================================================== */
.domaines h2 {
  margin-bottom: 56px;
  font-size: 2.25rem;
}

.domaines > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 64px 12px;
}

.domaines article {
  display: grid;
  grid-template-rows: 60px auto;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.domaines p {
  max-width: 170px;
  font-family: var(--font-title);
  font-size: 1.25rem;
}

/* ==================================================
   LOCALISATION
   ================================================== */
.localisation {
  box-sizing: border-box;
  width: calc(100% - var(--site-gutter));
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding: 18px;
  background: #f2f2f2;
}

.localisation > div {
  display: grid;
  grid-template-columns: 250px max-content 280px 250px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.localisation img {
  display: block;
  width: 250px;
  height: 148px;
  object-fit: cover;
}

.localisation h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
  white-space: nowrap;
}

.localisation address {
  box-sizing: border-box;
  width: 280px;
  padding: 14px 18px;
  font-style: normal;
  border: 8px solid #f1c50e;
}

.localisation address p {
  margin: 0;
}

.localisation a {
  color: #478ac9;
  font-weight: bold;
  text-decoration: none;
}

/* ==================================================
   MEDIA
   ================================================== */

/* Tablette paysage / petit ordinateur */
@media (max-width: 991px) {
  .about-founder {
    grid-template-columns: 1fr;
  }

  .methodology > div {
    grid-template-columns: 1fr;
  }

  .figures > div {
    grid-template-columns: 1fr;
  }

  .credentials > div {
    grid-template-columns: 1fr;
  }

  .domaines > div {
    grid-template-columns: 1fr;
  }

  .localisation > div {
    grid-template-columns: 1fr;
  }

  .tabs-list {
    grid-template-columns: 1fr;
  }

  .transition {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Ajustements tablette paysage / petit ordinateur */
  .methodology > div,
  .domaines > div,
  .figures > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credentials > div {
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    gap: 34px 18px;
  }

  .credentials img {
    width: 150px;
    height: 150px;
  }

  .credentials header {
    padding: 24px;
  }

  .credentials header p:first-child {
    font-size: 1.25rem;
  }

  .credentials article:nth-child(1) img,
  .credentials article:nth-child(3) img {
    grid-column: 1;
    transform: none;
  }

  .credentials article:nth-child(1) header,
  .credentials article:nth-child(3) header {
    grid-column: 2 / 4;
    transform: none;
  }

  .credentials article:nth-child(2) header {
    grid-column: 1 / 3;
    transform: none;
  }

  .credentials article:nth-child(2) img {
    grid-column: 3;
    transform: none;
  }

  .localisation {
    padding: 14px;
  }

  .localisation > div {
    grid-template-columns: 190px max-content 230px 190px;
    gap: 8px;
    justify-content: center;
    justify-items: center;
  }

  .localisation img {
    width: 190px;
    height: 112px;
  }

  .localisation h4 {
    font-size: 1.25rem;
  }

  .localisation address {
    width: 230px;
    padding: 12px 14px;
  }
  /* Fin Ajustements tablette paysage / petit ordinateur */
}
/* Tablette */
@media (max-width: 767px) {
}

/* ==================================================
   MEDIA
   ================================================== */
@media (max-width: 575px) {
  .about-founder,
  .values,
  .methodology,
  .transition,
  .figures,
  .credentials,
  .domaines,
  .localisation {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .about-founder {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-founder img {
    width: 100%;
    height: 220px;
  }

  .about-founder .frame {
    padding: 24px;
    border-width: 8px;
  }

  .tabs-list,
  .methodology > div,
  .figures > div,
  .domaines > div {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .values button {
    min-height: 48px;
    font-size: 1rem;
  }

  .values-panel {
    min-height: 0;
    padding: 24px;
  }

  .quote {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .quote blockquote {
    font-size: 1rem;
  }

  .figures h3 {
    font-size: 2.6rem;
  }

  .credentials > div {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .credentials article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .credentials img,
  .credentials article:nth-child(1) img,
  .credentials article:nth-child(2) img,
  .credentials article:nth-child(3) img {
    grid-column: auto;
    width: 170px;
    height: 170px;
    transform: none;
  }

  .credentials header,
  .credentials article:nth-child(1) header,
  .credentials article:nth-child(2) header,
  .credentials article:nth-child(3) header {
    grid-column: auto;
    width: 100%;
    transform: none;
  }

  .localisation > div {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .localisation img {
    width: 100%;
    height: 170px;
  }

  .localisation h4 {
    font-size: 1.2rem;
    white-space: normal;
  }

  .localisation address {
    width: 100%;
  }
}

/* ==================================================
   MEDIA
   ================================================== */
/* Mobile : corrections de lisibilite des sections */
@media (max-width: 575px) {
  .about-founder,
  .values,
  .methodology,
  .transition,
  .figures,
  .credentials,
  .domaines,
  .localisation {
    margin-top: 34px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .about-founder img {
    object-position: center 18%;
  }

  .methodology article {
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding-top: 14px;
  }

  .methodology .icon {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .methodology h3 {
    min-height: 0;
    margin: 0;
  }

  .figures aside p {
    font-size: 1.1rem;
    line-height: 1.45;
  }

  .domaines article {
    gap: 16px;
    padding-top: 16px;
  }

  .credentials article {
    gap: 12px;
  }

  .credentials img,
  .credentials article:nth-child(1) img,
  .credentials article:nth-child(2) img,
  .credentials article:nth-child(3) img {
    width: min(100%, 320px);
    height: 130px;
    border-radius: 0;
    object-fit: cover;
  }
}

/* ==================================================
   MEDIA
   ================================================== */
/* Mobile : agrements en image rectangulaire au-dessus du texte */
@media (max-width: 575px) {
  .credentials > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .credentials article {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .credentials img,
  .credentials article:nth-child(1) img,
  .credentials article:nth-child(2) img,
  .credentials article:nth-child(3) img {
    order: 1;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: 135px;
    border-radius: 0;
    transform: none;
    object-fit: cover;
  }

  .credentials header,
  .credentials article:nth-child(1) header,
  .credentials article:nth-child(2) header,
  .credentials article:nth-child(3) header {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    text-align: left;
    transform: none;
  }
}
