/* Faber Mentis - fabermentis.fr */

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  font:
    17px/1.65 Arial,
    Helvetica,
    sans-serif;
  color: #172b48;
  background: white;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #c24890;
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 26px;
}

h3 {
  font-size: 1.55rem;
}

.accent {
  color: #19448f;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 20px;
  top: 15px;
  background: white;
  z-index: 100;
  padding: 10px;
}

/* Header */
header {
  min-height: 96px;
  background: #fff;
}

.banner {
  display: block;
  background: #173f8c;
  text-align: center;
}

.banner img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 15px 6%;
  font-size: 0.9rem;
  border-bottom: 1px solid #d8dfea;
}

nav a {
  text-decoration: none;
}

.nav-contact {
  border: 1px solid #1b438d;
  padding: 7px 16px;
}

/* Shared blocks */
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #19448f;
  margin-bottom: 25px;
}

.button {
  display: inline-flex;
  padding: 16px 22px;
  min-height: 52px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 3px;
}

.orange {
  background: #f49a49;
  color: #172b48;
}

.orange:hover {
  background: #ffad63;
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
}

.section {
  padding: 52px 7%;
  max-width: 1200px;
  margin: auto;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 24px;
}

.section-intro h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

/* Hero */
.hero {
  padding: 44px 7% 38px;
  max-width: 1200px;
  margin: auto;
}

.hero-copy {
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  margin-bottom: 18px;
}

.hero .eyebrow {
  margin-bottom: 14px;
}

.lead {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}

/* Domains and courses */
.domain {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 7%;
  padding: 26px 0;
  border-top: 1px solid #ced6e2;
}

.domain-heading {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.domain-heading h3 {
  font-size: 1.4rem;
  margin: 0 0 18px;
}

.domain-heading p {
  color: #4c6079;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.number {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 2.2;
  color: #19448f;
  border-bottom: 3px solid #f49a49;
}

details {
  border-bottom: 1px solid #d8dfea;
}

summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  font-size: 1.5rem;
  color: #19448f;
  font-weight: 400;
}

details[open] summary span {
  transform: rotate(45deg);
}

.course-body {
  font-size: 0.95rem;
  padding: 0 25px 22px 0;
  line-height: 1.7;
}

.course-body p {
  margin-bottom: 12px;
}

.course-body a {
  font-size: 0.88rem;
  color: #19448f;
}

.audience {
  color: #4c6079;
  font-size: 0.88rem;
}

/* Approach */
.approach {
  max-width: none;
  background: #edf3fa;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
  padding-left: max(7%, calc((100% - 1032px) / 2));
  padding-right: max(7%, calc((100% - 1032px) / 2));
}

.approach > div {
  max-width: 600px;
}

.approach h2 {
  font-size: 2.3rem;
  margin-bottom: 0;
}

.approach p:last-child {
  margin-bottom: 0;
}

/* Profile */
.profile {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 7%;
  align-items: center;
}

.profile h2 {
  font-size: 2.4rem;
}

.profile .eyebrow {
  margin-bottom: 15px;
}

.portrait {
  max-width: 270px;
  position: relative;
}

.portrait img {
  display: block;
  width: 100%;
  border-bottom: 10px solid #f49a49;
}

.degrees {
  padding-top: 16px;
  border-top: 1px solid #d8dfea;
  font-size: 0.9rem;
  color: #4c6079;
}

/* Practical */
.practical {
  border-top: 1px solid #d8dfea;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}

.practical h2 {
  font-size: 2.2rem;
}

/* Contact */
.contact {
  max-width: none;
  background: #183f89;
  color: white;
  text-align: center;
}

.contact .eyebrow {
  color: #fac484;
}

.contact h2 {
  color: white;
  font-size: 2.6rem;
}

.contact > p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact .button {
  margin: 12px 0;
}

.contact-note {
  font-size: 0.87rem;
  color: #dbe5f5;
}

.email {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

/* Footer */
footer {
  padding: 30px 7%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  font-size: 0.82rem;
  background: #f5f7fa;
}

footer strong {
  letter-spacing: 0.08em;
  color: #19448f;
}

footer p {
  margin: 10px 0;
}

footer summary {
  font-size: 0.85rem;
  padding: 10px 0;
}

footer small {
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
  }

  .nav-contact {
    display: none;
  }

  .domain {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .domain-heading p {
    max-width: 480px;
  }

  .courses {
    padding-left: 40px;
  }

  .practical {
    gap: 6%;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .banner img {
    max-width: none;
  }

  nav {
    gap: 20px;
    padding: 14px 5%;
    font-size: 0.875rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 36px 6%;
  }

  .section-intro h2 {
    font-size: 1.9rem;
  }

  .hero {
    padding: 30px 6%;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .eyebrow {
    font-size: 0.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  .actions {
    gap: 18px;
  }

  .domain {
    padding: 23px 0;
  }

  .domain-heading {
    gap: 14px;
  }

  .domain-heading h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .domain-heading p {
    font-size: 0.9rem;
  }

  .domain-heading .number {
    font-size: 0.875rem;
  }

  .courses {
    padding-left: 0;
  }

  summary {
    min-height: 52px;
  }

  .approach,
  .profile,
  .practical {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .approach h2,
  .practical h2 {
    font-size: 2rem;
  }

  .profile h2 {
    font-size: 2.1rem;
  }

  .profile .eyebrow {
    margin-top: 5px;
  }

  .portrait {
    max-width: 180px;
  }

  .contact {
    text-align: left;
  }

  .contact h2 {
    font-size: 2rem;
  }

  .contact-note {
    text-align: center;
  }

  footer {
    padding: 30px 6%;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
