/* =========================================================
VARIABLES
Toutes les couleurs principales sont regroupées ici.
Cela permet de modifier facilement le thème du site.
========================================================= */

:root {
--forest: #365448;
--ink: #273b33;
--cream: #faf8f2;
--sand: #f0ede4;
--muted: #62736c;
--line: #d8dfd8;
--accent: #d2e8c3;
}

/* =========================================================
RESET / BASE
========================================================= */

* {
  box-sizing: border-box;
}


html {
scroll-behavior: smooth;
}

body {
margin: 1;
background: var(--cream);
color: var(--ink);

font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Arial,
sans-serif;

font-size: 17px;
line-height: 1.65;
}

/* =========================================================
TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
font-family: Georgia, "Times New Roman", serif;
font-weight: normal;
line-height: 1.2;
}

a {
color: var(--forest);
}

/* =========================================================
LAYOUT
========================================================= */

.wrap {
width: min(1120px, calc(100% - 44px));
margin: 0 auto;
}

/* =========================================================
HEADER
========================================================= */

.site-header {
display: flex;
align-items: center;
justify-content: space-between;

gap: 16px;
padding: 22px 0;
}

.brand {
font-family: Georgia, serif;
font-size: 19px;
letter-spacing: 0.03em;
text-decoration: none;
}

.nav {
display: flex;
flex-wrap: wrap;

gap: 24px;

font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.12em;
}

.nav a {
text-decoration: none;
}

/* =========================================================
HERO
========================================================= */

.hero {
position: relative;
overflow: hidden;

padding: 88px 40px 76px;

text-align: center;

background:
linear-gradient(rgba(240, 237, 228, 0.82), rgba(240, 237, 228, 0.82)),
url("image/backgroundM7.png") center/cover no-repeat,
var(--accent);
will-change: background-position;
}


.eyebrow {
color: var(--forest);

font-size: 12px;
font-weight: 700;

letter-spacing: 0.19em;
text-transform: uppercase;
}

.hero h1 {
max-width: 860px;

margin: 22px auto;

/*
clamp() makes the title responsive.

 Minimum: 39px
 Preferred: 5.5vw
 Maximum: 73px


*/

font-size: clamp(39px, 5.5vw, 73px);
}

.lead {
max-width: 730px;

margin: 0 auto 30px;

font-size: 20px;
}

/* =========================================================
BUTTON
========================================================= */

.button {
display: inline-block;

padding: 12px 27px;

border-radius: 30px;

background: var(--forest);
color: white;

font-size: 14px;
letter-spacing: 0.03em;

text-decoration: none;
}

/* =========================================================
INTRODUCTION
========================================================= */

.intro {
max-width: 790px;

margin: 74px auto;

text-align: center;
}

.intro h2,
.section h2 {
margin: 12px 0 24px;

font-size: clamp(31px, 4vw, 43px);
}

.intro p {
margin: 13px 0;
}

/* =========================================================
GENERIC SECTIONS
========================================================= */

.section {
padding: 50px 0 68px;
}

/*
The shaded section is used behind
the mentor profile cards.
*/

.section.shaded {
margin: 16px 0;

padding: 72px 0;

background:
linear-gradient(rgba(240, 237, 228, 0.82), rgba(240, 237, 228, 0.82)),
url("image/backgroundM7.png") center/cover no-repeat,
var(--sand);
will-change: background-position;
}

.section-head {
max-width: 700px;

margin: 0 auto 38px;

text-align: center;
}

/* =========================================================
MENTOR PROFILES
========================================================= */

.profiles {
display: grid;

grid-template-columns: repeat(3, 1fr);

gap: 20px;
}

.profile {
display: flex;
flex-direction: column;

padding: 36px 28px;

background: #ffffff;

border: 1px solid var(--line);
border-radius: 4px;
}

.profile-photo {
width: 100%;
height: 320px;
margin-bottom: 18px;

object-fit: cover;
object-position: center;

border-radius: 12px;
}

/*
The number shown above each mentor's name.
*/

.profile .symbol {
color: #9aaa9c;

font: 36px Georgia, serif;
}

.profile h3 {
margin: 15px 0 5px;

font-size: 32px;
}

.sub {
margin-bottom: 12px;

color: var(--muted);

font-size: 13px;
letter-spacing: 0.03em;
}

.profile strong {
color: var(--forest);
font-weight: 600;
}

/*
margin-top: auto pushes the link
to the bottom of every profile card.

This keeps all three buttons aligned
even if the text above has different heights.
*/

.profile a {
margin-top: auto;
padding-top: 18px;

font-size: 14px;
font-weight: 600;
}

/* =========================================================
MENTORAT OPTIONS
========================================================= */

.options {
display: grid;

grid-template-columns: 1fr 1fr;

gap: 24px;
}

.option {
padding: 26px 0;

border-top: 2px solid var(--forest);
}

.option h3 {
margin: 0 0 12px;

font-size: 29px;
}

/* =========================================================
TOPICS
========================================================= */

.topics-title {
margin-top: 56px !important;

text-align: center;
}

.topics {
display: grid;

grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.5fr);

gap: 12px 16px;

margin-top: 32px;
}

.topic,
.topic-date {
padding: 16px 0;

border-bottom: 1px solid var(--line);
}

.topic-date {
display: flex;
align-items: center;
justify-content: center;

color: var(--forest);
font-weight: 600;
text-align: center;
}

.note {
display: block;

margin-top: 20px;

color: var(--muted);

font-size: 13px;
}

/* =========================================================
CONTACT / CTA
========================================================= */

.cta {
margin: 32px 0 0;

padding: 74px 26px;

background:
linear-gradient(rgba(54, 84, 72, 0.82), rgba(54, 84, 72, 0.82)),
url("image/backgroundM7.png") center/cover no-repeat,
var(--forest);
will-change: background-position;
color: white;

text-align: center;
}

.cta .eyebrow {
color: #cedbcd;
}

.cta h2 {
max-width: 700px;

margin: 10px auto 20px;
}

.cta p {
max-width: 690px;

margin: 0 auto 28px;
}

.contact-credit {
max-width: 700px;
margin: 0 auto 0;

color: rgba(255, 255, 255, 0.9);
font-size: 30px;
line-height: 1.8;
}

.contact-credit a {
color: white;
}

.cta .button {
background: #f3f1e8;
color: var(--forest);
}

/* =========================================================
FOOTER
========================================================= */

footer {
padding: 34px 0 50px;

color: var(--muted);

font-size: 20px;

text-align: center;
}

footer a {
margin: 0 9px;
}

/* =========================================================
TABLET
========================================================= */

/*
At 850px and below:

The 3 mentor cards become one column.

The two mentor options become one column.

Navigation becomes slightly tighter.

Hero gets less padding.
*/

@media (max-width: 850px) {

.profiles {
grid-template-columns: 1fr;
}

.options {
grid-template-columns: 1fr;
}

.nav {
gap: 12px;
}

.hero {
padding: 60px 20px;
}
}

/* =========================================================
MOBILE
========================================================= */

/*
At 520px and below:

Header becomes vertical.

Topics stay in three compact columns.

Page margins become smaller.

Hero title gets a fixed mobile size.
*/

@media (max-width: 520px) {

.site-header {
align-items: flex-start;
flex-direction: column;
}

.topics {
grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
gap: 8px;
font-size: 12px;
}

.topic,
.topic-date {
min-width: 0;
padding: 10px 0;
}

.topic {
overflow-wrap: anywhere;
}

.topic-date {
font-size: 11px;
overflow-wrap: anywhere;
}

.topics-title {
font-size: 26px;
}

.wrap {
width: min(100% - 28px, 1120px);
}

.hero h1 {
font-size: 37px;
}
}