html,
body {
    overflow-x: clip;
}

.teachers-hero,
.teachers-intro,
.teachers-list {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow-x: clip;
}

.teachers-hero {
    position: relative;
    display: grid;
    min-height: min(690px, calc(100svh - var(--site-header-height)));
    padding: 0;
    overflow: hidden;
    background: #191713;
    color: #fff;
    isolation: isolate;
}

.teachers-hero__image,
.teachers-hero__veil {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.teachers-hero__image {
    background-image: url("../../assets/images/enseignants/section-hero.webp");
    background-position: 50% 40%;
    background-size: cover;
    filter: saturate(.7);
    transform: scale(1.015);
}

.teachers-hero__veil {
    z-index: -1;
    background: linear-gradient(90deg, rgb(8 7 6 / 78%) 0%, rgb(8 7 6 / 46%) 48%, rgb(8 7 6 / 18%) 100%), linear-gradient(0deg, rgb(8 7 6 / 48%), transparent 42%);
}

.teachers-hero__inner {
    width: min(100% - 48px, 1280px);
    margin: auto auto clamp(74px, 9vw, 128px);
}

.teachers-kicker,
.teacher__grade {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.teachers-hero .teachers-kicker {
    margin: 0 0 22px;
    color: #d8c39b;
}

.teachers-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(64px, 8vw, 126px);
    font-weight: 400;
    letter-spacing: -.035em;
}

.teachers-hero__inner > p:last-child {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgb(255 255 255 / 88%);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;
}

.teachers-intro {
    padding-block: clamp(30px, 3.5vw, 48px);
    background: var(--color-background-warm);
}

.teachers-intro__inner,
.teachers-list__inner {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.teachers-intro__inner {
    display: grid;
    grid-template-columns: minmax(270px, .82fr) minmax(420px, 1.18fr);
    column-gap: clamp(64px, 9vw, 150px);
}

.teachers-intro .teachers-kicker {
    margin: 0 0 10px;
    color: var(--color-primary);
    grid-column: 1 / -1;
}

.teachers-intro h2 {
    margin: 0;
    font-size: clamp(46px, 5vw, 76px);
    font-weight: 400;
    letter-spacing: -.025em;
}

.teachers-intro__text {
    max-width: 620px;
    padding-top: 8px;
    border-top: 1px solid rgb(100 78 51 / 22%);
    font-size: 20px;
}

.teachers-intro__text p { margin: 24px 0 0; }

.teachers-list {
    padding: 0;
    background: #f1eee8;
}

.teacher {
    scroll-margin-top: calc(var(--site-header-height, 92px) + 24px);
    display: grid;
    min-height: 720px;
    padding-block: clamp(90px, 11vw, 160px);
    border-bottom: 1px solid rgb(100 78 51 / 20%);
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    gap: clamp(60px, 8vw, 132px);
    align-items: center;
}

.teacher:last-child { border-bottom: 0; }
.teacher--reverse .teacher__portrait { grid-column: 2; }
.teacher--reverse .teacher__content { grid-column: 1; grid-row: 1; }

.teacher__portrait {
    position: relative;
    min-height: 590px;
    margin: 0;
    overflow: hidden;
    background: #ddd7cc;
}

.teacher__portrait::after {
    position: absolute;
    border: 1px solid rgb(255 255 255 / 48%);
    content: "";
    inset: 14px;
    pointer-events: none;
}

.teacher__portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform 700ms ease;
}

.teacher:hover .teacher__portrait img { transform: scale(1.018); }
.teacher:nth-of-type(2) .teacher__portrait img { object-position: 54% center; }
.teacher:nth-of-type(3) .teacher__portrait img { object-position: 50% center; }
.teacher__portrait--vertical img { object-position: 50% 24%; }

.teacher__content { max-width: 520px; }

.teacher h2 {
    margin: 0;
    color: #181613;
    font-size: clamp(54px, 5.6vw, 84px);
    font-weight: 400;
    letter-spacing: -.035em;
}

.teacher h2 span { display: block; color: var(--color-primary); font-style: italic; }

.teacher__grade {
    margin: 22px 0 34px;
    color: #6c6256;
}

.teacher__copy {
    padding-top: 8px;
    border-top: 1px solid rgb(100 78 51 / 24%);
    font-size: 18px;
    line-height: 1.62;
}

.teacher__copy p { margin: 22px 0 0; }

.teacher__website {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 30px;
    padding: 12px 18px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.teacher__website:hover,
.teacher__website:focus-visible {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 900px) {
    .teachers-hero { min-height: 590px; }
    .teachers-intro__inner { grid-template-columns: 1fr; }
    .teachers-intro h2 { max-width: 700px; }
    .teachers-intro__text { margin-top: 16px; }
    .teacher { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 48px; }
    .teacher__portrait { min-height: 520px; }
}

@media (max-width: 680px) {
    .teachers-hero { min-height: 540px; }
    .teachers-hero__image { background-position: 62% center; }
    .teachers-hero__veil { background: linear-gradient(90deg, rgb(8 7 6 / 78%), rgb(8 7 6 / 28%)), linear-gradient(0deg, rgb(8 7 6 / 60%), transparent 60%); }
    .teachers-hero__inner, .teachers-intro__inner, .teachers-list__inner { width: min(100% - 40px, 1280px); }
    .teachers-hero__inner { margin-bottom: 58px; }
    .teachers-hero h1 { font-size: clamp(54px, 16vw, 76px); }
    .teachers-hero__inner > p:last-child { font-size: 20px; }
    .teachers-intro { padding-block: 30px; }
    .teachers-intro h2 { font-size: 46px; }
    .teachers-intro__text { margin-top: 14px; font-size: 18px; }
    .teacher, .teacher--reverse { display: flex; padding-block: 82px; gap: 48px; flex-direction: column; align-items: stretch; }
    .teacher--reverse .teacher__portrait, .teacher--reverse .teacher__content { grid-column: auto; grid-row: auto; }
    .teacher__portrait { min-height: 0; aspect-ratio: 4 / 3; }
    .teacher__content { max-width: none; }
    .teacher h2 { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
    .teacher__portrait img { transition: none; }
}

.instructors {
    position: relative;
    padding-block: clamp(104px, 12vw, 176px);
    overflow: hidden;
    background: #1b1916;
    color: #eee9e0;
}

.instructors::before {
    position: absolute;
    top: -70px;
    right: -50px;
    width: clamp(260px, 34vw, 540px);
    height: clamp(260px, 34vw, 540px);
    border: 1px solid rgb(184 159 111 / 15%);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgb(184 159 111 / 4%), 0 0 0 116px rgb(184 159 111 / 2%);
    content: "";
    pointer-events: none;
}

.instructors__inner {
    position: relative;
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.instructors__header {
    display: grid;
    margin-bottom: clamp(72px, 9vw, 120px);
    padding-bottom: clamp(48px, 6vw, 72px);
    border-bottom: 1px solid rgb(216 195 155 / 24%);
    grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
    gap: clamp(48px, 8vw, 130px);
    align-items: end;
}

.instructors .teachers-kicker {
    margin: 0 0 24px;
    color: #d8c39b;
}

.instructors__header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(60px, 7.5vw, 112px);
    font-weight: 400;
    letter-spacing: -.04em;
}

.instructors__lead {
    max-width: 560px;
    margin: 0;
    color: rgb(238 233 224 / 78%);
    font-size: clamp(19px, 1.7vw, 23px);
    line-height: 1.55;
}

.instructors__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgb(216 195 155 / 20%);
    border: 1px solid rgb(216 195 155 / 20%);
}

.instructor-card {
    display: grid;
    min-height: 340px;
    padding: clamp(24px, 3vw, 42px);
    background: #211f1b;
    grid-template-columns: clamp(128px, 13vw, 176px) minmax(0, 1fr);
    gap: clamp(24px, 3.2vw, 44px);
    align-items: start;
}

.instructor-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    filter: saturate(.72) contrast(.96);
}

.instructor-card__photo--natalia { object-position: 50% 32%; }
.instructor-card__photo--patricia { object-position: 50% 25%; }
.instructor-card__photo--gregoire { object-position: 50% 32%; }
.instructor-card__photo--mathias { object-position: 50% 30%; }
.instructor-card__photo--damien { object-position: 50% 32%; }
.instructor-card__photo--djoss { object-position: 50% 38%; }
.instructor-card__photo--catherine { object-position: 50% 40%; }
.instructor-card__photo--lou { object-position: 48% center; }
.instructor-card__photo--emilien { object-position: 78% center; }
.instructor-card__photo--kilian { object-position: 52% center; }
.instructor-card__photo--leo { object-position: 35% center; }
.instructor-card__photo--alain { object-position: 53% 28%; }
.instructor-card__photo--candice { object-position: 50% 31%; }

.instructor-card__portrait-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f4f1eb;
    box-shadow: inset 0 0 0 1px rgb(216 195 155 / 34%);
}

.instructor-card--compact {
    min-height: 250px;
    align-items: center;
}

.instructor-card--compact .instructor-card__body { min-height: 0; }
.instructor-card--compact h3 { margin-bottom: 0; }
.instructor-card--compact:last-child:nth-child(odd) { grid-column: 1 / -1; }

.instructor-card--detailed {
    min-height: 340px;
    align-items: start;
}

.instructor-card--detailed .instructor-card__body { min-height: 100%; }
.instructor-card--detailed h3 { margin-bottom: 18px; }

.instructor-card__body {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
}

.instructor-card h3 {
    margin: -5px 0 18px;
    color: #fff;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.025em;
}

.instructor-card h3 span {
    display: block;
    margin-top: 7px;
    color: #d8c39b;
    font-style: italic;
}

.instructor-card p,
.instructor-card blockquote {
    margin: 0;
    color: rgb(238 233 224 / 78%);
    font-size: 16px;
    line-height: 1.52;
}

.instructor-card__link {
    display: inline-flex;
    width: fit-content;
    margin-top: 16px;
    border-bottom: 1px solid rgb(216 195 155 / 38%);
    color: #d8c39b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.6;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease;
}

.instructor-card__link:hover,
.instructor-card__link:focus-visible {
    border-color: #fff;
    color: #fff;
}

.instructor-card__link span { margin-left: 7px; }

.instructor-card blockquote { font-style: italic; }

.instructor-card__meta {
    margin-bottom: 14px !important;
    color: rgb(238 233 224 / 62%) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: .13em;
    line-height: 1.6 !important;
    text-transform: uppercase;
}

.instructor-card__course {
    margin-top: auto !important;
    padding-top: 22px;
    color: #fff !important;
}

.instructor-card__course span {
    display: block;
    margin-bottom: 5px;
    color: #b89f6f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

@media (max-width: 1040px) {
    .instructors__header { grid-template-columns: 1fr; }
    .instructors__lead { max-width: 680px; }
    .instructors__grid { grid-template-columns: 1fr; }
    .instructor-card { min-height: 300px; grid-template-columns: clamp(150px, 22vw, 210px) minmax(0, 1fr); }
    .instructor-card--compact:last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 680px) {
    .instructors__inner { width: min(100% - 40px, 1280px); }
    .instructors__header { margin-bottom: 60px; gap: 34px; }
    .instructors__header h2 { font-size: clamp(56px, 17vw, 76px); }
    .instructor-card { min-height: 0; grid-template-columns: 104px minmax(0, 1fr); gap: 22px; padding: 24px 20px; }
    .instructor-card h3 { font-size: 32px; }
    .instructor-card p, .instructor-card blockquote { font-size: 15px; }
}

@media (max-width: 430px) {
    .instructor-card { grid-template-columns: 1fr; }
    .instructor-card > img,
    .instructor-card__portrait-placeholder { width: 128px; }
    .instructor-card__course { margin-top: 22px !important; }
}
