/********************
 GENERAL
*********************/

* {
  box-sizing: border-box;
}

/* The custom cursor (#cursor) replaces the system one, but in the front editor */
html:not(:has(> body.front-editor)),
html:not(:has(> body.front-editor)) * {
  cursor: none !important;
}

html,
body {
  margin: 0;
  position: relative;
  scrollbar-gutter: stable;
}

html {
  --grey-100: #dedede;
  --grey-200: #cbcbcb;
  --grey-300: #bcbcbc;
  --grey: #898989;
  --black: #000000;
  --black-soft: #414141;
  --error: #b3261e;
  --white: #f9f8f5;
  --montreal: "montreal", sans-serif;
  --small-margin: 20px;
  --medium-margin: 30px;
  --bounce: cubic-bezier(0.45, 0.885, 0.32, 1.275);
  --navbar-height: 25px;
  --h100vh: calc(100vh - var(--small-margin) * 3 - var(--navbar-height));
  --h100svh: calc(100svh - var(--small-margin) * 3 - var(--navbar-height));
  --hl100vh: calc(100vh - var(--small-margin) - var(--navbar-height));
  --hl100svh: calc(100svh - var(--small-margin) - var(--navbar-height));
  --hm100vh: calc(100vh - var(--small-margin) * 2 - var(--navbar-height));
  --hm100svh: calc(100svh - var(--small-margin) * 2 - var(--navbar-height));
  --border: 1px solid var(--grey-200);
  --logo-filter: brightness(0) opacity(0.75);
  --category-bg: #ffffff;
}

/* The definitions of head.php (the filter of the raster logos), drawn nowhere */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* The logos are light drawings on a transparent background, shown in the color of the text by --logo-filter.
   A raster logo may have an opaque background (the Louvre: white on black): its luminance becomes its transparency first (#logo-luminance, head.php) */
.index-3
  > div:last-child
  > a
  > img:is(
    [src*=".webp" i],
    [src*=".png" i],
    [src*=".jpg" i],
    [src*=".jpeg" i]
  ),
.refs-2
  > a
  > img:is(
    [src*=".webp" i],
    [src*=".png" i],
    [src*=".jpg" i],
    [src*=".jpeg" i]
  ),
.project-head
  > div:last-child
  > img:is(
    [src*=".webp" i],
    [src*=".png" i],
    [src*=".jpg" i],
    [src*=".jpeg" i]
  ) {
  filter: url(#logo-luminance) var(--logo-filter);
}

.dark-theme {
  --grey: #dbdbdb;
  --grey-300: #696969;
  --grey-200: #414141;
  --grey-100: #282828;
  --black: #ffffff;
  --black-soft: #cbcbcb;
  --error: #f2b8b5;
  --white: #1c1c1c;
  --logo-filter: brightness(0) invert(1);
  --category-bg: #282828;
}

@media screen and (max-width: 1200px) {
  html {
    --small-margin: 30px;
    --medium-margin: 30px;
  }
}

@media screen and (max-width: 992px) {
  html {
    --small-margin: 15px;
    --medium-margin: 30px;
  }
}

@media screen and (max-width: 500px) {
  html {
    --small-margin: 10px;
    --medium-margin: 20px;
  }
}

a {
  text-decoration: none;
  cursor: pointer;
}

div {
  align-items: start;
}

img,
svg {
  display: block;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-track-piece {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--grey);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grey-100);
}

::-webkit-scrollbar-thumb:active {
  background: var(--grey-200);
}

::-webkit-scrollbar-corner {
  background: var(--black);
}

/********************
 FONTS
*********************/

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Hairline.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Hairline-Italic.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Extralight.woff2") format("woff2");
  font-weight: 150;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Extralight-Italic.woff2") format("woff2");
  font-weight: 150;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Thin-Italic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Light-Italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Book.woff2") format("woff2");
  font-weight: 375;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Book-Italic.woff2") format("woff2");
  font-weight: 375;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Medium-Italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Semibold-Italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Bold-Italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Extrabold-Italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "montreal";
  src: url("../fonts/PP-Neue-Montreal-Black-Italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: fallback;
}

/********************
 TITLES AND TEXTS
*********************/

body {
  font-family: var(--montreal);
  font-size: 1rem;
  background-color: var(--white);
  color: var(--black);
}

p {
  margin: 0;
}

.p {
  line-height: 1.4;
}

h1,
.h1 {
  margin: 0;
  font-weight: 300;
  font-size: 2rem;
}

h2,
.h2 {
  margin: 0;
  font-weight: 300;
  font-size: 1.8rem;
}

h3,
.h3 {
  margin: 0;
  font-weight: 400;
}

@media screen and (max-width: 1500px) {
  h1,
  .h1 {
  }
}

@media screen and (max-width: 1200px) {
  h1,
  .h1 {
    font-size: 1.8rem;
  }
  h2,
  .h2 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 992px) {
  h1,
  .h1 {
    font-size: 1.6rem;
  }

  h2,
  .h2 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 500px) {
  h1,
  .h1 {
  }
}

/********************
 COMMONS
*********************/

.icon-svg {
  overflow: visible;
}

.icon-svg rect,
.icon-svg path {
  transition:
    width 0.3s var(--bounce),
    transform 0.3s var(--bounce);
}

.icon-svg rect:nth-child(3) {
  width: 0;
}

.icon-svg rect:nth-child(4) {
  width: 0;
}

.icon-svg:hover rect:nth-child(1) {
  width: 0;
  transform: translate(34.02px, 6.26px);
}

.icon-svg:hover rect:nth-child(2) {
  width: 0;
}

.icon-svg:hover rect:nth-child(3) {
  width: 13.74px;
}

.icon-svg:hover rect:nth-child(4) {
  width: 13.74px;
  transform: translate(19.45px, 24.65px);
}

.icon-svg:hover path:nth-child(5) {
  transform: translate(19.2px, 0px);
}

.icon-svg:hover path:nth-child(6) {
  transform: translate(-5.8px, 11.61px);
}

.big-link {
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.big-link::after {
  display: block;
  content: "";
  height: 2px;
  width: 0;
  left: 0;
  bottom: -5px;
  background-color: var(--black);
  transition: width 0.2s ease-in-out;
}

.big-link:hover::after {
  width: 100%;
}

.big-link > span {
  display: inline-block;
}

.big-link:hover > span {
  animation: arrow_bounce 0.5s var(--bounce) 0s 1 forwards;
}

@keyframes arrow_bounce {
  0% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-40deg);
  }
  80% {
    transform: rotate(10deg);
  }
  90% {
    transform: rotate(-7deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.section {
  padding: 0 var(--small-margin);
  position: relative;
}

.section-back {
  top: 0;
  left: var(--small-margin);
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--small-margin) * 2);
  height: 100%;
  display: flex;
  justify-content: space-evenly;
}

.section-back > div {
  background-color: var(--grey-200);
  height: 100%;
  width: 1px;
}

.section-content {
  display: block;
  border: var(--border);
  border-bottom: none;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.section-content.empty {
  height: 200px;
}

@media screen and (max-width: 1200px) {
  .section-back > div:nth-child(4),
  .section-back > div:nth-child(3) {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .section-back > div:nth-child(2):last-child {
    display: none;
  }
  .section-content.empty {
    height: 100px;
  }
}

/* In one column, the lines of the back would cross the texts */
@media screen and (max-width: 650px) {
  .section-back {
    display: none;
  }
  .section-content.empty {
    height: 100px;
  }

  /* The bands between the sections of a page (.section-gap: À propos, Savoir-faire) go, in one column they leave only empty frames */
  .section.section-gap {
    display: none;
  }
}

.full-btn {
  padding: var(--medium-margin);
  display: flex;
  gap: var(--small-margin);
  align-items: center;
  transition: background-color 0.4s ease-in-out;
  color: var(--black);
  width: 100%;
  border-top: var(--border);
}

.full-btn.filled {
  background-color: var(--white);
}

.full-btn:hover {
  background-color: var(--grey-100);
}

.full-btn > span {
  text-align: right;
  transition: flex 0.4s ease-in-out;
}

.full-btn:hover > span {
  flex: 1;
}

.editable_model {
  display: none !important;
}

.grey {
  color: var(--grey);
}

.nowrap {
  white-space: nowrap;
}

.text-rotator {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  clip-path: inset(0 -0.1em);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.text-rotator > span {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.text-rotator:not(.ready) > span:nth-child(2),
.text-rotator > span.active {
  position: relative;
  transform: none;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.text-rotator > span.leaving {
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.theme-toggle {
  appearance: none;
  background: none;
  border: none;
  border-left: var(--border);
  margin: 0;
  padding: 0;
  width: 68px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: color 0.2s ease-in-out;
}

.theme-toggle:hover {
  color: var(--black);
}

.theme-toggle > svg {
  height: 26px;
  width: auto;
}

/********************
 LOADING ANIM
*********************/
#loading_anim {
  position: fixed;
  z-index: 300;
  height: 100vh;
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  top: 0;
  left: 0;
  background-color: var(--white);
  transition: opacity 0.4s ease-in-out;
  display: flex;
  align-items: center;
}

#loading_anim.hide {
  opacity: 0;
  pointer-events: none;
}

#loading_anim > div {
  width: 100%;
  padding-bottom: 83%;
  position: relative;
}

#loading_anim > div > lottie-player {
  max-width: 1920px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/********************
 CURSOR
*********************/
/* A popover, in the top layer: above the lists of the customizable selects too (script.js puts it back on top when one opens) */
#cursor {
  position: fixed;
  inset: auto;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  z-index: 299;
  height: 10px;
  width: 10px;
  border: 1px solid var(--black);
  pointer-events: none;
  background-color: var(--black);
  transition:
    height 0.2s ease-in-out,
    width 0.2s ease-in-out,
    opacity 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
  border-radius: 50%;
}

#cursor.hide {
  opacity: 0;
  height: 0;
  width: 0;
}

#cursor.active {
  background-color: transparent;
  height: 20px;
  width: 20px;
}

/********************
 HEADER
*********************/
#navbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  padding: var(--small-margin) calc(var(--small-margin) + var(--medium-margin));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  height: calc(var(--navbar-height) + var(--small-margin) * 2);
}

#navbar a {
  pointer-events: all;
  color: var(--black);
}

#navbar > a > svg {
  height: 1.6rem;
  width: auto;
  display: block;
}

/* On the narrow phones the logo shrinks to keep its distance from the burger (about 22px) */
@media screen and (max-width: 480px) {
  #navbar > a > svg {
    height: min(1.6rem, calc(9.6vw - 10.5px));
  }
}

.navbar-elements {
  display: flex;
  gap: 40px;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  padding-right: var(--small-margin);
}

.navbar-elements a {
  color: var(--black);
  transition: opacity 0.2s ease-in-out;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.navbar-elements a > svg {
  transform: translateY(-1px);
  height: 1rem;
  width: auto;
  display: block;
}

.navbar-elements a.active {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.navbar-elements a:hover {
  opacity: 0.6;
}

.navbar-elements > div {
  position: relative;
}

.navbar-elements > div > div {
  position: absolute;
  top: 100%;
  padding: calc(var(--small-margin) + 10px) 10px 10px 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  z-index: 10;
  opacity: 0;
  transition:
    opacity 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.navbar-elements > div {
  pointer-events: none;
}

.navbar-elements > div > a {
  pointer-events: all;
}

/* The arrow is out of the flow, so the underline of the active link leaves it out: the padding keeps its place */
.navbar-elements > div > a {
  position: relative;
  padding-right: calc(6px + 0.86em);
}

.navbar-elements > div > a > span {
  position: absolute;
  right: 0;
  transition: transform 0.4s var(--bounce);
  display: inline-block;
}

.navbar-elements > div:hover > a > span {
  transform: rotate(180deg);
}

.navbar-elements > div:hover {
  pointer-events: all;
}

.navbar-elements > div:hover > div {
  transform: translateX(-50%);
  opacity: 1;
}

.navbar-elements > div > div a {
  color: var(--grey);
  pointer-events: none;
}

.navbar-elements > div:hover > div a {
  pointer-events: all;
}

.navbar-space {
  padding: 0 var(--small-margin);
  position: relative;
}

.navbar-space > div {
  height: calc(var(--navbar-height) + var(--small-margin) * 2);
  border-left: var(--border);
  border-right: var(--border);
  width: 100%;
  display: flex;
  align-items: stretch;
  transition: border 0.2s ease-in-out;
}

.navbar-space.on-index > div {
  transition: border 0.2s ease-in-out;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}

.navbar-space .navbar-anim {
  display: none;
  height: 0;
  position: absolute;
  top: 0;
  left: var(--small-margin);
  width: 1px;
  background-color: var(--grey-200);
  transition: height 0.4s linear;
}

.navbar-space .navbar-anim + .navbar-anim {
  right: var(--small-margin);
  left: unset;
}

.navbar-space.on-index .navbar-anim {
  display: block;
}

/* The bar left of the moon grows from the top line when it reaches it */
.navbar-space.on-index .theme-toggle {
  position: relative;
  border-left-color: transparent;
}

.navbar-space.on-index .theme-toggle::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 1px;
  height: 0;
  background-color: var(--grey-200);
  transition: height 0.2s linear;
}

.navbar-space.on-index .theme-toggle.drawn::before {
  height: 100%;
}

#burger {
  position: fixed;
  top: calc(var(--small-margin) + 4px);
  right: calc(var(--small-margin) + var(--medium-margin));
  display: none;
  flex-direction: column;
  height: 18px;
  width: 28px;
  justify-content: space-between;
  z-index: 100;
  cursor: pointer;
}

#burger > span {
  width: 100%;
  height: 2px;
  background-color: var(--black);
  transition:
    opacity 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

#burger:not(.active):hover > span:nth-child(1) {
  transform: translateY(2px);
}

#burger:not(.active):hover > span:nth-child(3) {
  transform: translateY(-2px);
}

#burger.active > span:nth-child(1) {
  transform: translateY(8px) rotate(24deg);
}

#burger.active > span:nth-child(2) {
  transform: translateX(20px);
  opacity: 0;
}

#burger.active > span:nth-child(3) {
  transform: translateY(-8px) rotate(-24deg);
}

#burger.active:hover > span:nth-child(1) {
  transform: translateY(8px) rotate(-24deg);
}

#burger.active:hover > span:nth-child(3) {
  transform: translateY(-8px) rotate(24deg);
}

/* The menu of the phones and tablets (#burger): the page under the bar of the logo, framed like the sections, its links one under the other */
#mobile_menu {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--navbar-height) + var(--small-margin) * 2) var(--small-margin) var(--small-margin) var(--small-margin);
  background-color: var(--white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out,
    visibility 0s linear 0.3s;
}

#mobile_menu.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

#mobile_menu > a,
#mobile_menu > div {
  border: var(--border);
  border-bottom: none;
}

/* The frame goes on to the bottom of the screen */
#mobile_menu::after {
  content: "";
  flex: 1 0 auto;
  border: var(--border);
}

#mobile_menu > a,
#mobile_menu > div > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px var(--medium-margin);
  color: var(--black);
  font-size: 1.8rem;
  line-height: 1.2;
}

#mobile_menu a.active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* The pages of the studio, always shown under it: its arrow has nothing to open */
#mobile_menu > div > a > span {
  display: none;
}

#mobile_menu > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0 var(--medium-margin) 20px var(--medium-margin);
}

#mobile_menu > div > div > a {
  color: var(--grey);
  font-size: 1.15rem;
}

#mobile_menu > div > div > a.active {
  color: var(--black);
}

#mobile_menu > a > svg {
  height: 1.5rem;
  width: auto;
}

#mobile_menu > a > p {
  margin: 0;
}

@media screen and (max-width: 900px) {
  #burger,
  #mobile_menu {
    display: flex;
  }

  .navbar-elements,
  .navbar-space .theme-toggle {
    display: none;
  }

  body.menued {
    overflow: hidden;
  }
}

/********************
 FOOTER
*********************/
.foot {
  padding: var(--small-margin);
  padding-top: 0;
}

.foot-top {
  border: var(--border);
  border-bottom: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  position: relative;
}

.foot-top > div {
  padding: 32px 40px 120px 40px;
  max-width: 100%;
  overflow: hidden;
}

.foot-top > div + div {
  border-left: var(--border);
}

.foot-label {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 14px;
}

.foot-label > svg {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.foot-label > p {
  color: var(--grey);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.foot-top > div > p {
  font-size: 1.2rem;
  line-height: 1.1;
  max-width: 320px;
}

/* Its second line is longer in the design: it breaks after "gazette" instead */
.foot-top > div:nth-child(3) > p {
  max-width: 380px;
}

.foot-top > div > p > a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: opacity 0.2s ease-in-out;
}

/* A link with underlined words only underlines these words */
.foot-top > div > p > a:has(u) {
  text-decoration: none;
}

.foot-top > div > p > a > u {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.foot-top > div > p > a:hover {
  opacity: 0.6;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  border: var(--border);
  gap: 40px;
}

.foot-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 var(--medium-margin);
}

.foot-menu > div {
  display: flex;
  gap: 40px;
  align-items: center;
}

.foot-menu a {
  color: var(--black);
  transition: opacity 0.2s ease-in-out;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-menu a > svg {
  height: 1rem;
  width: auto;
  transform: translateY(-1px);
  display: block;
}

.foot-menu a.active {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.foot-menu a:hover {
  opacity: 0.6;
}

.foot-menu > div {
  position: relative;
}

.foot-menu > div > div {
  display: flex;
  gap: 30px;
  width: max-content;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  transition:
    transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
}

.foot-menu > div:hover > div {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: all;
}

/* The arrow is out of the flow, so the underline of the active link leaves it out: the padding keeps its place */
.foot-menu > div > a {
  position: relative;
  padding-right: calc(8px + 0.78em);
}

.foot-menu > div > a > span {
  position: absolute;
  right: 0;
  display: inline-block;
  transition: transform 0.4s var(--bounce);
}

.foot-menu > div:hover > a > span {
  transform: rotate(180deg);
}

.foot-menu > div > div a {
  color: var(--grey);
}

.foot-legals {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 20px 0;
  font-size: 0.75rem;
  color: var(--grey);
}

.foot-legals > a {
  color: var(--grey);
  transition: color 0.2s ease-in-out;
}

.foot-legals > a:hover {
  color: var(--black);
}

.foot-bottom > .theme-toggle {
  height: auto;
  min-height: 60px;
}

@media screen and (max-width: 1000px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
  .foot-top > div:nth-child(3) {
    grid-column: 1/3;
    border-top: var(--border);
    border-left: none;
  }
}

@media screen and (max-width: 900px) {
  .foot-menu {
    display: none;
  }
  .foot-legals {
    justify-content: flex-start;
    padding-left: var(--medium-margin);
  }
}

@media screen and (max-width: 650px) {
  .foot-top {
    grid-template-columns: 1fr;
  }
  .foot-top > div {
    padding-bottom: 40px;
  }
  .foot-top > div > p > a > br {
    display: none;
  }
  .foot-top > div + div {
    border-left: none;
    border-top: var(--border);
  }
  .foot-top > div:nth-child(3) {
    grid-column: unset;
  }
}

/*************
  404
**************/
.p404 {
  width: 100%;
  height: var(--h100vh);
  height: var(--h100svh);
  text-align: center;
  font-size: 1.2rem;
  padding: 0 var(--small-margin);
}

.p404 > div {
  width: 100%;
  height: 100%;
  border: var(--border);
  padding: var(--medium-margin);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p404 h1 {
  font-size: 6rem;
  line-height: 1;
}

.p404 p {
  margin: 20px 0;
  font-size: 1rem;
}

.p404 .big-link {
  color: var(--black);
}

@media screen and (max-width: 650px) {
  .p404 h1 {
    font-size: 4rem;
  }
}

/********************
 LEGALS (mentions légales, cookies)
*********************/
/* The title in its band, like the other pages, the introduction beside it */
.legals-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.legals-head > div:first-child {
  padding: 40px 36px 34px 36px;
}

.legals-head h1 {
  font-size: 2.1rem;
  font-weight: 400;
}

.legals-head > div:last-child {
  display: flex;
  align-items: flex-end;
  padding: 40px 33px 34px 25px;
  border-left: var(--border);
}

.legals-head p {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.25;
}

/* A part: its title on the left, its text on the right */
.legals-part {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.legals-part > h2 {
  padding: 26px 36px 30px 36px;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
}

.legals-text {
  padding: 26px 33px 30px 25px;
  border-left: var(--border);
}

.legals-text > * {
  max-width: 640px;
}

.legals-text p {
  margin: 0;
  line-height: 1.3;
}

/* After the margin of the paragraphs above */
.legals-text > :not(:first-child) {
  margin-top: 12px;
}

.legals-head a,
.legals-text a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease-in-out;
}

.legals-head a:hover,
.legals-text a:hover {
  opacity: 0.5;
}

.legals-text a.arrow-link {
  text-decoration: none;
}

.legals-text a.arrow-link:hover {
  opacity: 1;
}

/* The boxes of the cookies, like those of the forms */
/* As wide as its text, which still wraps on a phone (max-content would widen the column of the grid past the screen) */
.legals-check {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px !important;
  cursor: pointer;
}

.legals-check input[type="checkbox"] {
  appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--grey);
  border-radius: 0;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.legals-check input[type="checkbox"]:checked {
  background-color: var(--black);
  border-color: var(--black);
  box-shadow: inset 0 0 0 3px var(--white);
}

.legals-check input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: default;
}

.legals-check input[type="checkbox"]:disabled + span {
  color: var(--grey);
}

.legals-check:has(input:disabled) {
  cursor: default;
}

/* The button of the cookies, like the one of the forms, and its answer */
.legals-actions > div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-left: var(--border);
}

.legals-actions button[type="submit"] {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  margin: 0;
  padding: 0 38px 0 25px;
  border: none;
  border-right: var(--border);
  background-color: transparent;
  color: var(--black);
  font-family: var(--montreal);
  font-size: 1.2rem;
  transition: background-color 0.2s ease-in-out;
}

.legals-actions button[type="submit"]:hover {
  background-color: var(--grey-100);
}

.legals-actions button[type="submit"]::after {
  content: "→";
  transition: transform 0.4s var(--bounce);
}

.legals-actions button[type="submit"]:hover::after {
  transform: translateX(10px);
}

.legals-actions p {
  margin: 0;
  padding: 0 25px;
  color: var(--grey);
}

@media screen and (max-width: 992px) {
  .legals-head,
  .legals-part {
    grid-template-columns: minmax(0, 1fr);
  }

  .legals-head > div:first-child {
    padding: 30px var(--medium-margin) 0 var(--medium-margin);
  }

  .legals-head > div:last-child {
    padding: 16px var(--medium-margin) 30px var(--medium-margin);
    border-left: none;
  }

  .legals-part > h2 {
    padding: 24px var(--medium-margin) 0 var(--medium-margin);
  }

  .legals-text {
    padding: 12px var(--medium-margin) 26px var(--medium-margin);
    border-left: none;
  }

  .legals-actions > div:first-child {
    display: none;
  }

  .legals-actions > div:last-child {
    border-left: none;
  }

  /* The button takes the whole width, its arrow on the right, like the « Envoyer » of the forms: no empty frame beside it */
  .legals-actions button[type="submit"] {
    width: 100%;
    justify-content: space-between;
    padding: 0 var(--medium-margin);
    border-right: none;
  }

  .legals-actions p {
    width: 100%;
    padding: 16px var(--medium-margin);
    border-top: var(--border);
  }
}

/*************
  COOKIES BANNER
**************/

/********************
 COOKIES
*********************/
/* A panel of the site in the corner: its background and borders, the buttons in cells like those of the forms */
.cookies {
  position: fixed;
  right: var(--small-margin);
  bottom: var(--small-margin);
  z-index: 99;
  width: min(calc(100% - var(--small-margin) * 2), 520px);
  background-color: var(--white);
  color: var(--black);
  border: var(--border);
  transform: translateY(calc(100% + var(--small-margin) + 2px));
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
}

.cookies.active {
  pointer-events: all;
  transform: translateY(0);
  transition: transform 0.6s ease-in-out 0.6s;
}

.cookies-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 0 24px;
}

.cookies-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 300;
}

.cookies-close {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--black);
  transition:
    color 0.2s ease-in-out,
    transform 0.4s var(--bounce);
}

.cookies-close:hover {
  color: var(--grey);
  transform: rotate(90deg);
}

.cookies-text {
  margin: 0;
  padding: 14px 24px 22px 24px;
  max-width: 440px;
  color: var(--black-soft);
  font-size: 0.95rem;
  line-height: 1.3;
}

.cookies-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease-in-out;
}

.cookies-text a:hover {
  color: var(--grey);
}

.cookies-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  border-top: var(--border);
}

.cookies-actions > * {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin: 0;
  padding: 0 12px;
  border: none;
  background-color: transparent;
  color: var(--black);
  font-family: var(--montreal);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.cookies-actions > * + * {
  border-left: var(--border);
}

.cookies-actions > *:hover {
  background-color: var(--grey-100);
}

@media screen and (max-width: 600px) {
  .cookies {
    right: 0;
    bottom: 0;
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .cookies-head {
    padding: 18px 12px 0 var(--medium-margin);
  }

  .cookies-text {
    padding: 12px var(--medium-margin) 18px var(--medium-margin);
  }
}

/********************
 INDEX
*********************/
/*.index-1 {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
}

.index-1 > div:first-child {
  grid-column: 1/3;
  padding: var(--medium-margin);
  height: calc(100vh - var(--navbar-height));
  height: calc(100svh - var(--navbar-height));
  min-height: calc(100vh - var(--navbar-height));
  min-height: calc(100svh - var(--navbar-height));
  padding-bottom: calc(var(--small-margin) * 3);
  display: flex;
  flex-direction: column;
  position: relative;
}

.index-1 > div:first-child > div:first-child {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: calc(50% - var(--small-margin));
}

.index-1 > div:first-child > div:first-child > img {
  max-width: 100%;
  height: 1.6rem;
  width: auto;
}

.index-1 > div:first-child > div:first-child > div {
  display: flex;
  gap: 10px;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.index-1 > div:first-child > div:first-child > div:hover > span {
  animation: bounce 1s ease-in-out 0s infinite forwards;
}

.index-1 > div:first-child > div:first-child > div > div:last-child {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--black);
  transition: width 0.2s ease-in-out;
}

.index-1 > div:first-child > div:first-child > div:hover > div:last-child {
  width: 100%;
}

.index-1 > div:last-child {
  padding: var(--small-margin);
  padding-bottom: calc(var(--small-margin) * 3);
}

.index-1 > div:last-child > div {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 1.1s ease-in;
}

.index-1 > div:last-child > div > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}*/

.section-landing {
  position: relative;
  z-index: 2;
}

.section-landing > h1 {
  padding: 100px var(--medium-margin) 35px var(--medium-margin);
  font-weight: 400;
  line-height: 1.2;
  max-width: 1400px;
}

.landing-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.47;
  margin: 0 var(--medium-margin);
  border-radius: 12px;
  background-color: var(--grey-100);
}

.landing-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.landing-image:not(.ready) > .landing-slide:nth-child(2),
.landing-slide.active {
  opacity: 1;
}

.landing-slide > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.landing-grid > div {
  padding: 35px var(--medium-margin) 90px var(--medium-margin);
}

.landing-grid > div + div {
  border-left: var(--border);
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 25px;
}

.landing-tag {
  font-size: 1.2rem;
  line-height: 1.3;
}

/* The link goes on under the arrow, which lets the clicks through */
.landing-tag > a {
  display: inline-block;
  position: relative;
  padding-right: 0.65em;
  margin-right: -0.65em;
  color: var(--black);
  transition: color 0.2s ease-in-out;
}

/* The parentheses are out of the flow: the other categories don't move on hover */
.landing-tag > a::before,
.landing-tag > a::after {
  position: absolute;
  top: 0;
  opacity: 0;
  transition:
    opacity 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.landing-tag > a::before {
  content: "(";
  right: 100%;
  transform: translateX(5px);
}

.landing-tag > a::after {
  content: ")";
  left: calc(100% - 0.65em);
  transform: translateX(-5px);
}

.landing-tag > sup {
  display: inline-block;
  font-size: 0.6em;
  pointer-events: none;
  transition:
    color 0.2s ease-in-out,
    transform 0.2s var(--bounce);
}

.landing-tag:hover > a,
.landing-tag:hover > sup,
.landing-tag > a:focus-visible,
.landing-tag > a:focus-visible + sup {
  color: var(--grey);
}

.landing-tag:hover > a::before,
.landing-tag:hover > a::after,
.landing-tag > a:focus-visible::before,
.landing-tag > a:focus-visible::after,
.landing-tag > a:active::before,
.landing-tag > a:active::after {
  opacity: 1;
  transform: none;
}

.landing-tag:hover > sup,
.landing-tag > a:focus-visible + sup,
.landing-tag.active > sup {
  transform: translateX(0.5em);
}

/* Click: back to black, the arrow leaves toward its direction */
.landing-tag > a:active,
.landing-tag > a:active + sup {
  color: var(--black);
}

.landing-tag > a:active + sup {
  transform: translate(0.9em, -0.4em);
}

.landing-grid > div + div > div {
  font-size: 1.05rem;
  line-height: 1.2;
  max-width: 440px;
}

.landing-grid > div + div > a {
  display: inline-block;
  margin-top: 14px;
  color: var(--grey);
  font-size: 1.15rem;
  transition: color 0.2s ease-in-out;
}

.landing-grid > div + div > a:hover {
  color: var(--black);
}

@media screen and (max-width: 992px) {
  .section-landing > h1 {
    padding-top: 60px;
  }
  .landing-image {
    aspect-ratio: 1.6;
  }
  .landing-grid {
    grid-template-columns: 1fr;
  }
  .landing-grid > div {
    padding-bottom: 35px;
  }
  .landing-grid > div + div {
    border-left: none;
    border-top: var(--border);
    padding-bottom: 50px;
  }
}

@media screen and (max-width: 650px) {
  .landing-image {
    aspect-ratio: 1;
  }
}

/* Animation */
.index-1 {
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  transition: border 0.2s ease-in-out;
  position: relative;
}

.index-1 + .section-back > div {
  height: 0;
  transition: height 1.5s ease-in-out;
}

.index-1-anim {
  position: absolute;
  left: -1px;
  top: 0;
  height: 0;
  width: 1px;
  background-color: var(--grey-200);
  transition: height 1.5s linear;
}

.index-1-anim-1 {
  height: 1px;
  width: 0;
  top: -1px;
  left: -1px;
  transition: width 1.5s linear;
}

.index-1-anim-3 {
  left: unset;
  right: -1px;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Front editor: every word, image and expertise can be reached */
.front-editor .nowrap {
  white-space: normal;
}

.front-editor .text-rotator {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.4em;
  white-space: normal;
  clip-path: none;
}

.front-editor .text-rotator > * {
  position: static;
  transform: none;
}

.front-editor span.editable > p,
.front-editor a.editable > p,
.front-editor button.editable > p {
  display: inline;
}

.front-editor .landing-image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: none;
}

.front-editor .landing-slide {
  position: relative;
  width: auto;
  height: auto;
  aspect-ratio: 2.47;
  border-radius: 12px;
  opacity: 1;
}

.front-editor .accordion-body {
  grid-template-rows: 1fr;
}

.front-editor .accordion-body > div {
  padding-bottom: 50px;
}

/* PORTFOLIO PROJECTS */
.project {
  padding: var(--medium-margin);
  transition: background-color 0.2s ease-in-out;
  border-bottom: var(--border);
  color: var(--black);
}

a.project:hover {
  background-color: var(--grey-100);
}

.project > div:first-child {
  width: 100%;
  padding-bottom: 120%;
  position: relative;
  margin-bottom: var(--small-margin);
}

.project > div:first-child > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
}

.project > div:first-child > img + img {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

a.project:hover > div:first-child > img + img {
  opacity: 1;
  pointer-events: all;
}

.project > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--small-margin);
  width: 100%;
  overflow: hidden;
}

.project > div:last-child > div {
  width: 100%;
}

.project > div:last-child > img {
  object-fit: contain;
  height: 33px;
  width: auto;
  max-width: min(100%, 120px);
  opacity: 0.2;
}

/* PROJECTS */
.index-2 {
  padding: 40px var(--small-margin) 75px var(--small-margin);
}

.index-2 > h2 {
  font-size: 2.1rem;
  font-weight: 400;
  padding: 0 10px;
  margin-bottom: 35px;
}

.index-2 > div:not(.sm) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 110px 36px;
}

.project-card {
  position: relative;
}

.project-card > a {
  display: block;
  color: var(--black);
}

.project-card > a > div {
  width: 100%;
  padding-bottom: 123%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 24px;
  background-color: var(--grey-100);
}

.project-card > a > div > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  transition: transform 0.6s ease-in-out;
}

.project-card > a > div > img + img {
  z-index: 2;
  opacity: 0;
  transition:
    opacity 0.2s ease-in-out,
    transform 0.6s ease-in-out;
}

.project-card:hover > a > div > img + img {
  opacity: 1;
}

.project-card:hover > a > div > img {
  transform: scale(1.02);
}

.project-card > a > h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 5px;
}

.project-card > a > p {
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--grey);
  max-width: 500px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* In the gap under the project, with a padding so the hover isn't lost on the way to them */
.project-card-categories {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition:
    opacity 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.project-card:hover > .project-card-categories,
.project-card:focus-within > .project-card-categories {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

.project-card-categories > a {
  padding: 5px 10px;
  border-radius: 2px;
  background-color: var(--category-bg);
  color: var(--grey);
  font-size: 0.8rem;
  transition: color 0.2s ease-in-out;
}

.project-card-categories > a:hover {
  color: var(--black);
}

/* No hover on touch screens: always shown */
@media (hover: none) {
  .project-card-categories {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: all;
  }
}

@media screen and (max-width: 992px) {
  .index-2 > div:not(.sm) {
    grid-template-columns: 1fr 1fr;
    gap: 60px var(--small-margin);
  }
  /* In two columns, two similar projects: the third would be alone on its row */
  .project-similar > div > .project-card:nth-child(n + 3) {
    display: none;
  }
}

/* Two projects a row on phones too, their texts smaller */
@media screen and (max-width: 650px) {
  .index-2 > div:not(.sm) {
    gap: 40px 12px;
  }
  .project-card > a > div {
    margin-bottom: 14px;
  }
  .project-card > a > h3 {
    font-size: 1rem;
  }
  .project-card > a > p {
    font-size: 0.95rem;
  }
}

/* ALL PROJECTS */
.full-btn.index-more {
  align-items: flex-start;
  min-height: 240px;
  padding: 30px 40px;
  border-top: var(--border);
}

.full-btn.index-more {
  font-size: 2.25rem;
  font-weight: 400;
}

.full-btn.index-more::after {
  content: "→";
  text-align: right;
  transition: flex 0.4s ease-in-out;
}

.full-btn.index-more:hover::after {
  flex: 1;
}

@media screen and (max-width: 1200px) {
  .full-btn.index-more {
    font-size: 2rem;
  }
}

@media screen and (max-width: 992px) {
  .full-btn.index-more {
    min-height: 150px;
    padding: var(--medium-margin);
    font-size: 1.8rem;
  }
}

/* EXPERTISES */
.index-expertise {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.index-expertise > div:first-child > div {
  padding: 40px 35px 45px 35px;
  border-bottom: var(--border);
}

.index-expertise > div:first-child > div > h2 {
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 35px;
}

.index-expertise > div:first-child > div > div {
  font-size: 1.25rem;
  line-height: 1.24;
  max-width: 420px;
}

.index-expertise > div:first-child > a {
  display: inline-block;
  padding: 30px 35px;
  color: var(--grey);
  font-size: 1.15rem;
  transition: color 0.2s ease-in-out;
}

.index-expertise > div:first-child > a:hover {
  color: var(--black);
}

.accordion {
  border-left: var(--border);
}

/* The hidden model of the list comes first: the border goes between the expertises shown */
.accordion-item:not(.editable_model) + .accordion-item {
  border-top: var(--border);
}

.accordion-head {
  appearance: none;
  background: none;
  border: none;
  margin: 0;
  width: 100%;
  min-height: 86px;
  padding: 20px 28px 20px 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--small-margin);
  font-family: var(--montreal);
  color: var(--grey);
  text-align: left;
  transition: color 0.2s ease-in-out;
}

.accordion-head > .h1 {
  font-size: 2.1rem;
}

.accordion-head:hover,
.accordion-item.active > .accordion-head {
  color: var(--black);
}

.accordion-icon {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
  transition: transform 0.4s var(--bounce);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  align-items: stretch;
  transition: grid-template-rows 0.4s ease-in-out;
}

.accordion-item.active > .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body > div {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px 0 88px;
  transition: padding 0.4s ease-in-out;
}

.accordion-item.active > .accordion-body > div {
  padding-bottom: 50px;
}

.accordion-body > div > .editable {
  font-size: 1rem;
  line-height: 1.3;
  max-width: 600px;
}

.accordion-body > div > .editable > p + p {
  color: var(--grey);
}

.accordion-project {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.9;
  margin-top: 45px;
  border-radius: 12px;
  background-color: var(--grey-100);
}

.accordion-project > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-in-out;
}

.accordion-project:hover > img {
  transform: scale(1.02);
}

.accordion-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--small-margin);
  margin-top: 25px;
}

.accordion-links > a {
  color: var(--black);
  font-size: 1rem;
  transition: opacity 0.2s ease-in-out;
}

.accordion-project-title {
  letter-spacing: 0.04em;
}

.accordion-project-title > span {
  display: inline-block;
  width: 70px;
}

.accordion-all {
  margin-left: auto;
  font-size: 1.1rem;
  white-space: nowrap;
}

.accordion-links > a:hover {
  opacity: 0.6;
}

@media screen and (max-width: 1200px) {
  .accordion-head,
  .accordion-body > div {
    padding-left: var(--medium-margin);
  }
}

@media screen and (max-width: 992px) {
  .index-expertise {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* In one column, the texts start at the margin of the other sections */
  .index-expertise > div:first-child > div,
  .index-expertise > div:first-child > a {
    padding-left: var(--medium-margin);
    padding-right: var(--medium-margin);
  }
  .accordion {
    border-left: none;
    border-top: var(--border);
  }
  .accordion-head > .h1 {
    font-size: 1.6rem;
  }
}

/* CLIENTS */
.index-3 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.index-3 > div:first-child {
  display: flex;
  flex-direction: column;
}

.index-3 > div:first-child > h2 {
  padding: 40px 40px var(--medium-margin) 40px;
  flex: 1;
  font-size: 2.1rem;
  font-weight: 400;
}

.index-3 > div:first-child > div {
  padding: var(--medium-margin) 40px 35px 40px;
  font-size: 1.15rem;
  line-height: 1.22;
  max-width: 495px;
}

.full-btn.spread {
  justify-content: space-between;
  padding: 25px 55px 25px 40px;
}

.full-btn.spread {
  font-size: 1.8rem;
  font-weight: 400;
}

.full-btn.spread::after {
  content: "→";
  font-size: 1.25em;
  transition: transform 0.4s var(--bounce);
}

.full-btn.spread:hover::after {
  transform: translateX(10px);
}

@media screen and (max-width: 1200px) {
  .full-btn.spread {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 992px) {
  .full-btn.spread {
    font-size: 1.45rem;
  }
}

.index-3 > div:last-child {
  border-left: var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 75px var(--small-margin);
  align-items: center;
  justify-content: center;
  padding: 70px calc(var(--small-margin) * 4);
  max-width: 100%;
}

.index-3 > div:last-child > a {
  display: block;
  width: 100%;
  max-width: 210px;
  margin: auto;
  transition: opacity 0.2s ease-in-out;
}

.index-3 > div:last-child > a[href]:hover {
  opacity: 0.6;
}

.index-3 > div:last-child > a > img {
  width: 100%;
  height: 65px;
  object-fit: contain;
  filter: var(--logo-filter);
}

@media screen and (max-width: 1200px) {
  .index-3 > div:last-child {
    padding: 60px var(--medium-margin);
  }
}

@media screen and (max-width: 992px) {
  .index-3 {
    grid-template-columns: 1fr;
  }
  .index-3 > div:first-child > h2 {
    font-size: 1.8rem;
  }
  /* In one column, the texts start at the margin of the other sections */
  .index-3 > div:first-child > h2,
  .index-3 > div:first-child > div,
  .index-3 > div:first-child > .full-btn.spread {
    padding-left: var(--medium-margin);
    padding-right: var(--medium-margin);
  }
  .index-3 > div:last-child {
    border-left: none;
    border-top: var(--border);
    gap: 50px var(--small-margin);
  }
}

@media screen and (max-width: 650px) {
  .index-3 > div:last-child {
    grid-template-columns: 1fr 1fr;
  }
}

/* STUDIO AND PUBLISHER */
.index-4 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.index-4 > div:first-child {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.5;
  background-color: var(--grey-100);
}

.index-4 > div:first-child > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-4 > div:last-child {
  display: flex;
  flex-direction: column;
  border-left: var(--border);
}

.index-4 > div:last-child > h2 {
  flex: 1;
  padding: 26px 55px var(--medium-margin) 55px;
  font-size: 2.1rem;
  font-weight: 400;
}

.index-4 > div:last-child > div {
  padding: var(--medium-margin) 55px 35px 55px;
  font-size: 1.15rem;
  line-height: 1.25;
  max-width: 530px;
}

.index-4 > div:last-child > .full-btn.spread {
  padding: 36px 34px 36px 55px;
}

@media screen and (max-width: 1200px) {
  .index-4 > div:last-child > h2,
  .index-4 > div:last-child > div {
    padding-left: var(--medium-margin);
    padding-right: var(--medium-margin);
  }
  .index-4 > div:last-child > .full-btn.spread {
    padding-left: var(--medium-margin);
  }
}

@media screen and (max-width: 992px) {
  .index-4 {
    grid-template-columns: 1fr;
  }
  .index-4 > div:last-child {
    border-left: none;
  }
  .index-4 > div:last-child > h2 {
    font-size: 1.8rem;
  }
}

/* CONTACT BLOCK (components/contact.php) */
.contact-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.contact-block > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  padding: 50px 40px 30px 40px;
}

.contact-block > div > h2 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.contact-block > div > div > svg {
  display: block;
  height: 31px;
  width: auto;
  margin-bottom: 18px;
}

.contact-block > div > div > a {
  display: inline-block;
  color: var(--black-soft);
  font-size: 1.65rem;
  font-weight: 400;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--black-soft);
  transition: opacity 0.2s ease-in-out;
}

.contact-block > div > div > a:hover {
  opacity: 0.6;
}

.contact-block > div > div > a > span {
  display: inline-block;
  font-size: 0.7em;
  vertical-align: top;
  margin-left: 0.2em;
}

.contact-block > form {
  border-left: var(--border);
  display: flex;
  flex-direction: column;
}

/* The fields of the forms of the site (.site-form): the contact block, the newsletter */
.site-form {
  display: flex;
  flex-direction: column;
}

/* Two fields side by side (the first name and the last name), after the hidden fields */
.site-form > div:first-of-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.site-form > div:first-of-type > input + input {
  border-left: var(--border);
}

.site-form input[type="text"],
.site-form input[type="email"],
.site-form select,
.site-form textarea {
  appearance: none;
  outline: none;
  border: none;
  border-radius: 0;
  border-bottom: var(--border);
  background-color: transparent;
  color: var(--black);
  font-family: var(--montreal);
  font-size: 1rem;
  line-height: 1.2;
  width: 100%;
  height: 60px;
  padding: 0 18px;
  margin: 0;
  transition: background-color 0.2s ease-in-out;
}

.site-form input:hover,
.site-form input:focus,
.site-form select:hover,
.site-form select:focus,
.site-form textarea:hover,
.site-form textarea:focus {
  background-color: var(--grey-100);
}

.site-form input::placeholder,
.site-form textarea::placeholder {
  color: var(--grey);
}

.site-form .select {
  position: relative;
}

.site-form select:invalid {
  color: var(--grey);
}

/* The options of the selects: in the colors and the font of the site in the list of the browser, styled whole where the select is customizable (appearance: base-select) */
.site-form select > option {
  color: var(--black);
  background-color: var(--white);
  font-family: var(--montreal);
  font-size: 1rem;
}

@supports (appearance: base-select) {
  .site-form select,
  .site-form select::picker(select) {
    appearance: base-select;
  }

  .site-form select {
    display: flex;
    align-items: center;
  }

  /* The arrow of the field is the drawing of the form */
  .site-form select::picker-icon {
    display: none;
  }

  .site-form select::picker(select) {
    margin: 0;
    padding: 0;
    border: var(--border);
    border-radius: 0;
    background-color: var(--white);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.2s ease-in-out,
      transform 0.2s ease-in-out,
      overlay 0.2s allow-discrete,
      display 0.2s allow-discrete;
  }

  .site-form select:open::picker(select) {
    opacity: 1;
    transform: none;
  }

  @starting-style {
    .site-form select:open::picker(select) {
      opacity: 0;
      transform: translateY(-6px);
    }
  }

  .site-form select > option {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 18px;
    border-bottom: var(--border);
    color: var(--grey);
    transition:
      background-color 0.2s ease-in-out,
      color 0.2s ease-in-out;
  }

  .site-form select > option:last-child {
    border-bottom: none;
  }

  .site-form select > option:hover,
  .site-form select > option:focus-visible,
  .site-form select > option:checked {
    color: var(--black);
    background-color: var(--grey-100);
    outline: none;
  }

  .site-form select > option::checkmark {
    display: none;
  }

  /* The placeholder option, « (Objet) », stays out of the list */
  .site-form select > option[hidden] {
    display: none;
  }
}

.site-form .select > svg {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 32px;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--black);
}

.site-form textarea {
  height: 226px;
  padding-top: 18px;
  resize: none;
}

.site-form label {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 49px;
  padding: 0 18px;
  border-bottom: var(--border);
  color: var(--grey);
  font-size: 0.9rem;
}

.site-form input[type="checkbox"] {
  appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--grey);
  border-radius: 0;
  background-color: transparent;
  transition: background-color 0.2s ease-in-out;
}

.site-form input[type="checkbox"]:checked {
  background-color: var(--black);
  border-color: var(--black);
  box-shadow: inset 0 0 0 3px var(--white);
}

.site-form button[type="submit"] {
  appearance: none;
  border: none;
  background-color: transparent;
  color: var(--black);
  font-family: var(--montreal);
  font-size: 1.2rem;
  height: 64px;
  padding: 0 38px 0 18px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease-in-out;
}

.site-form button[type="submit"]:hover {
  background-color: var(--grey-100);
}

.site-form button[type="submit"]::after {
  content: "→";
  transition: transform 0.4s var(--bounce);
}

.site-form button[type="submit"]:hover::after {
  transform: translateX(10px);
}

.site-form > p:last-child:not(:empty) {
  padding: 18px;
  border-top: var(--border);
  color: var(--grey);
}

.site-form > p.error:last-child {
  color: var(--error);
}

.site-form .invalid,
.site-form .invalid::placeholder,
.site-form select.invalid:invalid {
  color: var(--error);
}

/* A box to tick left empty: its text and its border in the color of errors */
.site-form label:has(.invalid) {
  color: var(--error);
}

.site-form input[type="checkbox"].invalid {
  border-color: var(--error);
}

.site-form.locked {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

/* Honeypot of the contact form: out of sight, never reached by people */
.site-form input.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media screen and (max-width: 992px) {
  .contact-block {
    grid-template-columns: 1fr;
  }
  .contact-block > div {
    padding: var(--medium-margin);
  }
  .contact-block > div > h2 {
    font-size: 1.6rem;
  }
  .contact-block > form {
    border-left: none;
    border-top: var(--border);
  }
}

@media screen and (max-width: 400px) {
  .contact-block > div > h2 {
    font-size: 1.4rem;
  }
}

/* On a phone, the last line break of the heading would leave a word alone on its line: the text flows */
@media screen and (max-width: 650px) {
  .contact-block > div > h2 > span:first-child > br:last-of-type,
  .ct-title > span:first-child > br:last-of-type {
    display: none;
  }
}

/********************
 PORTFOLIO
*********************/
.folio-1 {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--small-margin) * 2);
}

.folio-1 > div {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  min-width: calc(40% - var(--small-margin) * 2);
}

.folio-1 > div > h1 {
  font-weight: 400;
  max-width: 1200px;
}

.folio-1 > h2 {
  max-width: calc(80%);
}

.folio-2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.folio-2 > div {
  text-align: center;
  padding: var(--medium-margin);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.folio-2 > div.active {
  background-color: var(--grey-200);
}

.folio-2 > div:hover {
  background-color: var(--grey-100);
}

.folio-3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.folio-3 .project h2 {
  font-size: 1.2rem;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.folio-3 .project {
  border-bottom: var(--border);
  overflow: hidden;
}

.folio-3 .project.hidden {
  display: none;
}

@media screen and (max-width: 1200px) {
  .refs-1 > div {
    min-width: 66%;
  }
  .refs-1 > h2 {
    max-width: unset;
  }
}
@media screen and (max-width: 650px) {
  .refs-1 > div {
    min-width: 100%;
  }
}

@media screen and (min-width: 1201px) {
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5),
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5) ~ .project {
    border-bottom: none;
  }
}

@media screen and (max-width: 1200px) and (min-width: 651px) {
  .folio-2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .folio-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .folio-2 > div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
    border-bottom: none;
  }
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5),
  .folio-3 .project:nth-child(5n + 1):nth-last-child(-n + 5) ~ .project {
    border-bottom: var(--border);
  }
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3) ~ .project {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 650px) and (min-width: 501px) {
  .folio-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .folio-2 > div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2) ~ div {
    border-bottom: none !important;
  }
  .folio-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-3 .project:nth-child(3n + 1):nth-last-child(-n + 3) ~ .project {
    border-bottom: var(--border);
  }
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2) ~ .project {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 500px) {
  .folio-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .folio-2 > div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3),
  .folio-2 > div:nth-child(3n + 1):nth-last-child(-n + 3) ~ div {
    border-bottom: var(--border);
  }
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-2 > div:nth-child(2n + 1):nth-last-child(-n + 2) ~ div {
    border-bottom: none !important;
  }
  .folio-3 {
    grid-template-columns: 1fr;
  }
  .folio-3 + .section-back {
    display: none;
  }
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2),
  .folio-3 .project:nth-child(2n + 1):nth-last-child(-n + 2) ~ .project {
    border-bottom: var(--border);
  }
  .folio-3 .project:last-child {
    border-bottom: none !important;
  }
}

/********************
 PROJECT
*********************/
.proj-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 500px;
  align-items: stretch;
}

.proj-head > div:first-child {
  grid-column: 1/3;
  padding: var(--medium-margin);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.proj-head > div:first-child > div {
  flex: 1;
  margin-bottom: var(--medium-margin);
}

.proj-head > div:first-child > div > p {
  font-size: 0.8rem;
}

.proj-head > div:first-child > div > h1 {
  font-weight: 400;
}

.proj-head > div:first-child > h2 {
  max-width: 800px;
  color: var(--grey-300);
}

.proj-head > div:last-child {
  padding: calc(var(--small-margin) * 2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proj-head > div:last-child > p {
  font-size: 0.9rem;
}

.proj-head > div:last-child > p > span {
  color: var(--grey-300);
}

.proj-content {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: calc(var(--small-margin) * 2) 0;
  padding: var(--medium-margin);
  padding-bottom: calc(var(--small-margin) * 3);
}

.proj-content img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-content > div {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  width: 100%;
  gap: calc(var(--small-margin) * 2) 0;
}

.proj-content > div > div {
  flex: 1 1 auto;
}

@media screen and (max-width: 992px) {
  .proj-head {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .proj-head > div:first-child {
    border-bottom: var(--border);
  }

  .proj-head > div:first-child > div > h1 {
    margin-bottom: 60px;
  }

  .proj-head > div:last-child > img {
    margin-bottom: 20px;
  }

  .proj-content > div {
    flex-direction: column;
  }

  .proj-content > div > div {
    width: 100%;
  }
}

/********************
 REFERENCES
*********************/
.refs-1 {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--small-margin) * 2);
}

.refs-1 > div {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  min-width: calc(40% - var(--small-margin) * 2);
}

.refs-1 > div > h1 {
  font-weight: 400;
}

.refs-1 > h2 {
  max-width: calc(80%);
}

.refs-2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: none;
}

.refs-2 > a {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--border);
  padding: calc(var(--small-margin) * 2);
}

.refs-2 > a > img {
  max-width: 100%;
  filter: var(--logo-filter);
  transition: opacity 0.2s ease-in-out;
}

.refs-2 > a:hover > img {
  opacity: 0.6;
}

@media screen and (min-width: 1200px) {
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5),
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5) ~ a {
    border-bottom: none;
  }
}

@media screen and (max-width: 1200px) {
  .refs-1 > div {
    min-width: 66%;
  }
  .refs-1 > h2 {
    max-width: unset;
  }
}

@media screen and (max-width: 1200px) and (min-width: 651px) {
  .refs-2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5),
  .refs-2 a:nth-child(5n + 1):nth-last-child(-n + 5) ~ a {
    border-bottom: var(--border);
  }
  .refs-2 a:nth-child(3n + 1):nth-last-child(-n + 3),
  .refs-2 a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 650px) {
  .refs-1 > div {
    min-width: 100%;
  }
  /* The band of the title no longer the height of a screen on a phone */
  .refs-1 {
    min-height: 0;
    gap: 80px;
  }
  .refs-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .refs-2 > a:nth-child(3n + 1):nth-last-child(-n + 3),
  .refs-2 > a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: var(--border);
  }
  .refs-2 > a:nth-child(2n + 1):nth-last-child(-n + 2),
  .refs-2 > a:nth-child(2n + 1):nth-last-child(-n + 2) ~ a {
    border-bottom: none !important;
  }
}

/********************
 ARTICLES
*********************/
.articles-1 {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--small-margin) * 2);
}

.articles-1 > div {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  min-width: calc(33% - var(--small-margin) * 2);
}

.articles-1 > div > h1 {
  font-weight: 400;
}

.articles-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.articles-2 > a {
  color: var(--black);
  transition: background-color 0.2s ease-in-out;
  padding: var(--medium-margin);
  height: 100%;
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
}

.articles-2 > a > div {
  flex: 1;
}

.articles-2 > a:hover {
  background-color: var(--grey-100);
}

.articles-2 > a > img {
  width: 100%;
  height: 16vw;
  object-fit: cover;
  margin: 20px 0;
}

.articles-2 > a > p:first-child {
  color: var(--grey);
  width: max-content;
}

.articles-2 > a > h2 + p {
  margin: 5px 0 20px;
  font-size: 0.9rem;
}

.articles-2 > a > span {
  display: block;
  border-bottom: 1px solid var(--black);
  padding: 2px;
  width: max-content;
  margin-top: 20px;
}

@media screen and (min-width: 993px) {
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3),
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: none;
  }
}

@media screen and (max-width: 992px) {
  .articles-1 > div {
    min-width: calc(50% - var(--small-margin) * 2);
  }
  .articles-2 > a > img {
    height: 25vw;
  }
}

@media screen and (max-width: 992px) and (min-width: 501px) {
  .articles-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3),
  .articles-2 a:nth-child(3n + 1):nth-last-child(-n + 3) ~ a {
    border-bottom: var(--border);
  }
  .articles-2 a:nth-child(2n + 1):nth-last-child(-n + 2),
  .articles-2 a:nth-child(2n + 1):nth-last-child(-n + 2) ~ a {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 620px) {
  .articles-1 > div {
    min-width: 100%;
  }
  /* The band of the title no longer the height of a screen on a phone */
  .articles-1 {
    min-height: 0;
    gap: 80px;
  }
  .articles-2 {
    grid-template-columns: 1fr;
  }
  .articles-2 > a:nth-child(2n + 1):nth-last-child(-n + 2),
  .articles-2 > a:nth-child(2n + 1):nth-last-child(-n + 2) ~ a {
    border-bottom: var(--border);
  }
  .articles-2 > a:last-child {
    border-bottom: none !important;
  }
  .articles-2 > a > img {
    height: 50vw;
  }
}

.article .section-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.article .section-content > div:nth-child(2) {
  grid-column: 2/5;
  padding: var(--medium-margin);
  font-size: 1.1rem;
}

.article-head {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* The band of the title no longer the height of a screen on a phone */
@media screen and (max-width: 650px) {
  .article-head {
    min-height: 0;
    gap: 80px;
  }
}

.article-head > div {
  width: 100%;
}

.article-head > div:first-child > div {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.article-head > div:first-child > div > h1 {
  font-weight: 400;
}

.article-head > div:first-child > p {
  font-size: 0.9rem;
  margin-top: 5px;
}

.article-head > div:last-child > p {
  margin-bottom: 20px;
}

/* The rich texts of an article (components/richtext.php): its content, and its texts before and after it (.article-pre, .article-post, in the size of a subtitle).
   Everything the editor of the back office writes: paragraphs, lists, links, images (in the text, floating, in blocks, resized, with a caption, with a link), tables, HTML embeds */
.rich-text {
  /* Holds its floating images and tables */
  display: flow-root;
}

.rich-text > p,
.rich-text > ul,
.rich-text > ol,
.rich-text > figure,
.rich-text > table,
.rich-text > .raw-html-embed {
  margin: 0 0 20px;
}

.article-pre > :last-child,
.article-post > :last-child {
  margin-bottom: 0;
}

.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > figure {
  line-height: 1.4;
  letter-spacing: 0.03rem;
}

.rich-text sub,
.rich-text sup {
  line-height: 0;
}

/* Lists, with the bullets, the numbers, the start and the order chosen in the editor */
.rich-text ul,
.rich-text ol {
  padding-left: 20px;
}

.rich-text li + li,
.rich-text li > ul,
.rich-text li > ol {
  margin-top: 5px;
}

/* Links, wherever they are: paragraphs, lists, tables, captions */
.rich-text a,
.article-head p a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  transition: opacity 0.2s ease-in-out;
}

.rich-text a:hover,
.article-head p a:hover {
  opacity: 0.5;
}

/* Images in a line of text */
.rich-text img {
  max-width: 100%;
  height: auto;
}

.rich-text p img,
.rich-text li img,
.rich-text td img,
.rich-text th img {
  display: inline-block;
  vertical-align: middle;
}

/* Images in blocks: the whole width, or their width when resized (image_resized), centered, on the left (image-style-block-align-left) or on the right */
.rich-text figure {
  max-width: 100%;
}

.rich-text * figure {
  margin: 0;
}

.rich-text > figure.image {
  margin: 40px 0;
}

.rich-text figure.image {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.rich-text figure.image img {
  width: 100%;
  height: auto;
}

.rich-text figure.image > a {
  display: block;
  width: 100%;
}

.rich-text > figure.image.image_resized {
  margin-left: auto;
  margin-right: auto;
}

.rich-text > figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.rich-text > figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

/* Images the text flows around: half of the width at most, unless resized */
.rich-text > figure.image.image-style-align-right,
.rich-text > figure.image.image-style-align-left {
  display: inline-flex;
  margin-top: 0;
  margin-bottom: 20px;
}

.rich-text > figure.image.image-style-align-right {
  float: right;
  margin-left: 40px;
}

.rich-text > figure.image.image-style-align-left {
  float: left;
  margin-right: 40px;
}

.rich-text > figure.image.image-style-align-right:not(.image_resized),
.rich-text > figure.image.image-style-align-left:not(.image_resized) {
  max-width: 50%;
}

/* The caption of an image, on its right, at the bottom */
.rich-text figure.image.has-caption > img,
.rich-text figure.image.has-caption > a {
  max-width: 70%;
}

.rich-text figure.image.has-caption > figcaption {
  display: flex;
  flex-direction: column;
  max-width: 100px;
  font-size: 0.9rem;
  line-height: 1;
}

.rich-text figure.image.has-caption > figcaption::before {
  content: "←";
  font-family: var(--montreal);
  line-height: 1.2;
  font-size: 1rem;
}

/* Tables: the width, the alignment, the borders and the colors chosen in the editor win over these */
.rich-text > figure.table {
  margin: 40px 0;
  overflow-x: auto;
}

.rich-text > figure.table[style*="float:left"],
.rich-text > figure.table[style*="float: left"] {
  margin: 0 40px 20px 0;
}

.rich-text > figure.table[style*="float:right"],
.rich-text > figure.table[style*="float: right"] {
  margin: 0 0 20px 40px;
}

.rich-text table {
  width: 100%;
  border: 1px solid var(--grey);
  border-collapse: collapse;
}

.rich-text td,
.rich-text th {
  border: 1px solid var(--grey);
  padding: var(--small-margin);
  background-color: color-mix(in srgb, var(--black) 4%, transparent);
  text-align: left;
  vertical-align: top;
}

.rich-text th {
  font-weight: 400;
  background-color: color-mix(in srgb, var(--black) 8%, transparent);
}

.rich-text figure.table > figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* A layout table only places its cells */
.rich-text table.layout-table,
.rich-text table.layout-table td,
.rich-text table.layout-table th {
  border: none;
  background: none;
}

.rich-text table.layout-table td,
.rich-text table.layout-table th {
  padding: 0 var(--small-margin) 0 0;
}

/* HTML embeds (videos, maps): never wider than the text */
.rich-text > .raw-html-embed {
  margin: 40px 0;
}

.rich-text iframe,
.rich-text video,
.rich-text embed,
.rich-text object {
  max-width: 100%;
}

.article-foot > .article-post {
  margin-bottom: 60px;
}

@media screen and (max-width: 600px) {
  /* Too narrow for a text around an image or a table */
  .rich-text > figure.image.image-style-align-right,
  .rich-text > figure.image.image-style-align-left,
  .rich-text > figure.table[style*="float"] {
    float: none !important;
    display: flex;
    width: auto !important;
    max-width: 100% !important;
    margin: 40px 0;
  }

  .rich-text > figure.table[style*="float"] {
    display: block;
  }
}

@media screen and (max-width: 1200px) {
  .article .section-content {
    display: block;
  }

  .article .section-content > div:nth-child(2) {
    grid-column: unset;
  }
}

/********************
 SCREENSAVER
*********************/
#screensaver {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 98;
  background-color: var(--white);
  height: 100%;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  padding: var(--medium-margin);
  padding-bottom: calc(var(--small-margin) * 3);
}

#screensaver.active {
  opacity: 1;
  pointer-events: all;
}

#screensaver img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#screensaver > div {
  position: absolute;
  bottom: calc(var(--small-margin) * 4);
  left: calc(var(--small-margin) * 2);
}

@media screen and (max-width: 992px) {
  #screensaver > div {
    left: calc(var(--small-margin) * 3);
  }
}

/********************
 PROJECTS PAGES: /projets, the pages of the categories and tags (mockup page 1), the project pages (mockup page 2)
 Sizes: those of the mockup × 0.8
*********************/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The current category or tag of the links: in parentheses, as on hover */
.landing-tag.active > a,
.landing-tag.active > sup {
  color: var(--grey);
}

.landing-tag.active > a::before,
.landing-tag.active > a::after {
  opacity: 1;
  transform: none;
}

/* HEAD: the title and the introduction, the links to the categories and tags */
.projects-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
  min-height: 360px;
}

/* The title and the introduction in the margins and the sizes of the intro of the other pages (.page-intro) */
.projects-head > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 36px 34px 36px;
}

.projects-head h1 {
  font-size: 2.1rem;
  font-weight: 400;
}

.projects-head > div:first-child > p {
  font-size: 1.05rem;
  line-height: 1.2;
  max-width: 420px;
}

.projects-head > div:last-child {
  display: flex;
  align-items: flex-end;
  border-left: var(--border);
  padding: 32px 33px 34px 25px;
}

/* GRID: rows of 3 then 2 projects, each in its cell */
.projects-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.projects-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.projects-row + .projects-row {
  border-top: var(--border);
}

.projects-row > .project-card {
  padding: 28px 18px 50px 18px;
}

.projects-row > .project-card + .project-card {
  border-left: var(--border);
}

/* The images of a row have the same height: portrait in 3 columns, landscape in 2 */
.projects-row-2 > .project-card > a > div {
  padding-bottom: 80.4%;
}

/* The categories of a project show in the bottom of its cell */
.projects-row .project-card-categories {
  top: auto;
  bottom: 12px;
  left: 18px;
  right: 18px;
  padding-top: 0;
}

.projects-empty {
  padding: 40px 36px;
  color: var(--grey);
}

/* BOOK */
.projects-book {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 226px;
  padding: 38px var(--small-margin);
}

.projects-book > a {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 330px;
  color: var(--black);
  font-size: 1.2rem;
  line-height: 1.1;
  transition: opacity 0.2s ease-in-out;
}

.projects-book > a > svg {
  flex-shrink: 0;
  width: 40px;
  height: auto;
}

.projects-book > a:hover {
  opacity: 0.6;
}

/* FAQ: two columns of questions, each opening on click */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 75px;
  padding: 10px 30px 80px 30px;
}

.faq-item + .faq-item {
  border-top: var(--border);
}

.faq-item > h3 {
  margin: 0;
  font-size: inherit;
}

.faq-head {
  appearance: none;
  display: grid;
  grid-template-columns: 59px 1fr 20px;
  align-items: start;
  gap: 0 10px;
  width: 100%;
  margin: 0;
  padding: 22px 0 22px 20px;
  border: none;
  background: none;
  color: var(--grey);
  font-family: var(--montreal);
  text-align: left;
  transition: color 0.2s ease-in-out;
}

.faq-head:hover,
.faq-item.active .faq-head {
  color: var(--black);
}

.faq-number {
  font-size: 1.55rem;
  line-height: 1;
}

.faq-question {
  font-size: 1.2rem;
  line-height: 1.15;
  padding-top: 4px;
}

.faq-icon {
  margin-top: 6px;
  transition: transform 0.3s ease-in-out;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.4s ease-in-out,
    visibility 0.4s;
}

.faq-item.active > .faq-body {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-body > div {
  min-height: 0;
  overflow: hidden;
  padding: 0 30px 0 89px;
  font-size: 1rem;
  line-height: 1.2;
  max-width: 650px;
  transition: padding 0.4s ease-in-out;
}

.faq-item.active > .faq-body > div {
  padding-bottom: 25px;
}

/* PROJECT PAGE: the head */
.project-head {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  min-height: 350px;
}

/* The title in the margins and the size of the intro of the other pages (.page-intro) */
.project-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 40px 36px 34px 36px;
}

.project-head h1 {
  font-size: 2.1rem;
  font-weight: 400;
}

/* The categories and tags, always shown here */
.project-head .project-card-categories {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: all;
  padding-top: 14px;
}

.project-intro {
  margin-top: auto;
  padding-top: 60px;
  font-size: 1.35rem;
  line-height: 1.15;
  max-width: 720px;
}

.project-head > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-left: var(--border);
  padding: 40px 33px 34px 100px;
}

.project-head > div:last-child > img {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: var(--logo-filter);
}

.project-head dl {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.project-head dl > div > dt,
.project-head dl > div > dd {
  display: inline;
  margin: 0;
}

.proj-content img {
  border-radius: 12px;
}

@media screen and (max-width: 1200px) {
  .project-head > div:last-child {
    padding-left: var(--medium-margin);
  }
  .faq {
    gap: 0 40px;
  }
}

@media screen and (max-width: 992px) {
  .projects-head,
  .project-head {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .projects-head > div:last-child,
  .project-head > div:last-child {
    border-left: none;
    border-top: var(--border);
  }
  .projects-head > div:first-child,
  .projects-head > div:last-child {
    padding: 30px var(--medium-margin);
  }
  .projects-empty {
    padding: 30px var(--medium-margin);
  }
  .project-head > div:first-child {
    padding: 30px var(--medium-margin);
  }
  .project-intro {
    padding-top: 40px;
    font-size: 1.2rem;
  }
  .faq {
    grid-template-columns: 1fr;
    padding: 10px var(--small-margin) 50px var(--small-margin);
  }
  .faq-column + .faq-column {
    border-top: var(--border);
  }
}

@media screen and (max-width: 650px) {
  /* Two projects a row: the rows of 3 and 2 melt into one grid, each cell drawing the line on its right and the one under it
     (the lines of the last column and of the last row fall on the borders of the section and of the next one) */
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .projects-row {
    display: contents;
  }
  .projects-row > .project-card,
  .projects-row > .project-card + .project-card {
    border-left: none;
    padding: 14px 10px 30px 10px;
    box-shadow:
      1px 0 0 var(--grey-200),
      0 1px 0 var(--grey-200);
  }
  .projects-row-2 > .project-card > a > div {
    padding-bottom: 123%;
  }
  .projects-row .project-card-categories {
    left: 10px;
    right: 10px;
  }
  .faq-head {
    grid-template-columns: 40px 1fr 20px;
    padding-left: 0;
  }
  .faq-body > div {
    padding-left: 50px;
  }
}

/* The badge of Google reCAPTCHA is hidden on every page: the form shows the notice Google asks for instead (components/contact.php) */
.grecaptcha-badge {
  visibility: hidden !important;
}

.contact-block .recaptcha-notice {
  padding: 12px 18px;
  color: var(--grey);
  font-size: 0.75rem;
  line-height: 1.3;
}

.contact-block .recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
}

/* The band of the preview of a hidden project, for the accounts of the back office (slug.php) */
.project-preview {
  padding: 12px 36px;
  background-color: var(--grey-100);
  color: var(--black);
  font-size: 0.9rem;
}

@media screen and (max-width: 992px) {
  .project-preview {
    padding: 12px var(--medium-margin);
  }
}

/********************
 GALLERY BLOCKS of the project pages (components/project-blocks.php, plugin gallery_blocks), mockup page 2 × 0.8
*********************/

.block h2 {
  margin: 0;
  font-weight: 400;
}

.block p + p {
  margin-top: 0.8em;
}

/* Images side by side at the same height, each with its caption */
.block-figures {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.block-figures > figure {
  margin: 0;
  min-width: 0;
}

.block-figures img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  background-color: var(--grey-100);
}

.block-figures figcaption {
  margin-top: 8px;
  color: var(--grey);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: pre-line;
}

/* A caption on its image (« Légendes : Sur l'image »): white, black on a light corner (« Couleurs des légendes »), its line breaks kept, 20 px from the left and 19 px from the bottom of the image as in the mockup (block #5, × 0.8) */
.block-figures > figure.caption-on {
  position: relative;
}

.block figure.caption-on > figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 19px;
  margin: 0;
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: pre-line;
}

.block figure.caption-on.caption-dark > figcaption {
  color: #000000;
}

/* MOSAÏQUE D'IMAGES: the tiles without gaps, in the shape of the first image, rounded as a whole, the captions on the images (block #5 of the mockup) */
.block-mosaic {
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--grey-100);
}

.block-mosaic > figure {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ratio);
}

.block-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The captions under the images: the tiles apart, each rounded, the caption under it as under images side by side */
.block-mosaic.captions-below {
  align-items: start;
  gap: 24px 18px;
  overflow: visible;
  border-radius: 0;
  background-color: transparent;
}

.block-mosaic.captions-below > figure {
  aspect-ratio: auto;
}

.block-mosaic.captions-below img {
  height: auto;
  aspect-ratio: var(--ratio);
  border-radius: 12px;
  background-color: var(--grey-100);
}

.block-mosaic.captions-below figcaption {
  margin-top: 8px;
  color: var(--grey);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: pre-line;
}

/* The models of images: the images, and a text above or under them */
.block-images {
  padding: 28px 34px 46px 34px;
}

.block-arrow {
  line-height: 1;
}

/* The paragraph and the quote (« Style du texte »): on a side (« Côté »), the arrow on the other one */
.block-caption-text,
.block-caption-large {
  display: grid;
  align-items: start;
  gap: 40px;
}

.block-caption-text > div,
.block-caption-large > div {
  grid-row: 1;
}

.block-caption-text > .block-arrow,
.block-caption-large > .block-arrow {
  grid-row: 1;
  font-size: 2.25rem;
}

/* Paragraphe: on two thirds (block #2 of the mockup) */
.block-caption-text {
  grid-template-columns: 2fr 1fr;
  margin-top: 42px;
  font-size: 1.25rem;
  line-height: 1.28;
}

.block-caption-text > div {
  grid-column: 1;
  max-width: 940px;
}

.block-caption-text > .block-arrow {
  grid-column: 2;
  justify-self: end;
}

.block-caption-text.block-caption-right {
  grid-template-columns: 1fr 2fr;
}

.block-caption-text.block-caption-right > div {
  grid-column: 2;
}

.block-caption-text.block-caption-right > .block-arrow {
  grid-column: 1;
  justify-self: start;
}

/* Citation: larger, on one third (blocks #5 and #6 of the mockup) */
.block-caption-large {
  grid-template-columns: 1fr 2fr;
  margin-top: 30px;
  font-size: 1.5rem;
  line-height: 1.17;
}

.block-caption-large > div {
  grid-column: 1;
  max-width: 480px;
}

.block-caption-large > .block-arrow {
  grid-column: 2;
  justify-self: end;
}

.block-caption-large.block-caption-right {
  grid-template-columns: 2fr 1fr;
}

.block-caption-large.block-caption-right > div {
  grid-column: 2;
}

.block-caption-large.block-caption-right > .block-arrow {
  grid-column: 1;
  justify-self: start;
}

/* Petit titre: the arrow after it (block #3 of the mockup, above the image) */
.block-caption-title {
  margin-top: 24px !important;
  font-size: 0.95rem;
  line-height: 1.3;
}

.block-caption-title.block-caption-right {
  text-align: right;
}

/* « Position du texte : Au-dessus de l'image » */
.block-caption.block-caption-above {
  margin-top: 0 !important;
}

.block-caption-text.block-caption-above {
  margin-bottom: 42px;
}

.block-caption-large.block-caption-above {
  margin-bottom: 30px;
}

.block-caption-title.block-caption-above {
  margin-bottom: 24px !important;
}

/* IMAGE ET TEXTE EN COLONNES: the image on two thirds, the text on the side chosen (block #4 of the mockup) */
.block-facing {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: 56px;
  padding: 30px 34px 41px 34px;
}

.block-facing.block-text-left {
  grid-template-columns: 1fr 2fr;
}

.block-facing.block-text-left > .block-facing-text {
  order: -1;
}

.block-facing-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 40px;
}

.block-facing-text > h2,
.block-text > h2 {
  font-size: 1.55rem;
  line-height: 1.2;
}

.block-facing-text > div {
  font-size: 1.25rem;
  line-height: 1.2;
  max-width: 420px;
}

/* TEXTE: full width */
.block-text {
  padding: 30px 34px 46px 34px;
}

.block-text > h2 {
  margin-bottom: 24px;
}

.block-text > div {
  font-size: 1.25rem;
  line-height: 1.2;
  max-width: 940px;
}

@media screen and (max-width: 992px) {
  .block-images,
  .block-facing,
  .block-text {
    padding: var(--medium-margin) var(--small-margin);
  }
  /* The text then its image, one under the other */
  .block-facing,
  .block-facing.block-text-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .block-facing-text {
    order: -1;
    gap: 16px;
  }
  .block-caption-text,
  .block-caption-large,
  .block-caption-text.block-caption-right,
  .block-caption-large.block-caption-right {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
    font-size: 1.15rem;
  }
  .block-caption-text > div,
  .block-caption-large > div,
  .block-caption-text.block-caption-right > div,
  .block-caption-large.block-caption-right > div {
    grid-column: 1;
    grid-row: 2;
  }
  .block-caption-text > .block-arrow,
  .block-caption-large > .block-arrow,
  .block-caption-text.block-caption-right > .block-arrow,
  .block-caption-large.block-caption-right > .block-arrow {
    grid-column: 1;
    justify-self: start;
    font-size: 1.6rem;
  }
  /* Above the images: the text, then the arrow pointing down to them */
  .block-caption.block-caption-above > div {
    grid-row: 1;
  }
  .block-caption.block-caption-above > .block-arrow {
    grid-row: 2;
  }
  .block-caption-text.block-caption-above,
  .block-caption-large.block-caption-above {
    margin-bottom: 24px;
  }
  .block-mosaic {
    grid-template-columns: repeat(min(var(--columns), 2), 1fr);
  }
}

@media screen and (max-width: 650px) {
  .block-figures {
    flex-direction: column;
  }
  .block-mosaic {
    grid-template-columns: 1fr;
  }
  .block-figures > figure {
    flex: none !important;
    width: 100%;
  }
}

/* The blocks of the home projects: for a visitor, their card is the cell of the grid, so a project not published leaves no hole; the editor keeps the blocks, to choose their project */
.home-projects > div:not(.editable_model) {
  display: contents;
}

.front-editor .home-projects > div:not(.editable_model) {
  display: block;
}

/********************
 PAGES OF THE STUDIO: INTRO AND PARALLAX FRAMES (Savoir-faire, À propos, sizes at 0.8x)
*********************/

/* The intro of a page (Savoir-faire, À propos): the title, its catch line and its text on the left, the image on the right */
.page-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.page-intro > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 36px 34px 36px;
}

.page-intro h1 {
  font-size: 2.1rem;
  font-weight: 400;
}

.page-intro-catch {
  margin-top: 12px;
  max-width: 340px;
  color: var(--grey);
  font-size: 1.35rem;
  line-height: 1.15;
}

.page-intro-text {
  max-width: 420px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.page-intro > div:last-child {
  padding: 44px 33px 34px 0;
}

/* The large images move slower than the page (smoothparallax, asset/js/smoothscroll.js): their frame cuts them */
.parallax-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  background-color: var(--grey-100);
}

.parallax-frame > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-intro .parallax-frame {
  aspect-ratio: var(--intro-ratio, 1.9);
}

/********************
 SAVOIR-FAIRE (mockup page 4, sizes at 0.8x)
*********************/

/* The titles in parentheses of the sections */
.sf-title {
  font-size: 1.9rem;
  font-weight: 400;
}

/* Expertises: an accordion, one open at a time (the script of the page) */
.sf-expertises > .sf-title {
  padding: 22px 25px 40px 25px;
}

.sf-item {
  position: relative;
}

.sf-item:not(.editable_model) + .sf-item {
  border-top: var(--border);
}

.sf-head {
  min-height: 86px;
  padding: 20px 32px 20px 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--small-margin);
  color: var(--grey);
  transition: color 0.2s ease-in-out;
}

.sf-head > .h1 {
  font-size: 2rem;
}

.sf-head:hover,
.sf-item.active > .sf-head {
  color: var(--black);
}

/* A closed expertise under the pointer stretches its cross downwards, to suggest it opens: its height stays */
.sf-item:not(.active) > .sf-head:hover .sf-icon {
  transform: scaleY(1.35);
}

.sf-icon {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
  transition: transform 0.4s var(--bounce);
}

.sf-item.active .sf-icon {
  transform: rotate(45deg);
}

.sf-body {
  display: grid;
  grid-template-rows: 0fr;
  align-items: stretch;
  transition: grid-template-rows 0.4s ease-in-out;
}

.sf-item.active > .sf-body {
  grid-template-rows: 1fr;
}

.sf-body > div {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

/* The line between the text and the projects of an open expertise, from its top */
.sf-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% / 3);
  width: 1px;
  background-color: var(--grey-200);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.sf-item.active::before {
  opacity: 1;
}

.sf-text {
  display: flex;
  flex-direction: column;
  padding: 0 33px 36px 33px;
}

.sf-description {
  max-width: 400px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.sf-description > p + p {
  margin-top: 12px;
}

.sf-deliverables {
  margin-top: auto;
  padding-top: 60px;
  color: var(--grey);
}

.sf-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sf-deliverables > div {
  font-size: 1rem;
  line-height: 1.3;
}

.sf-more {
  margin-top: 45px;
  color: var(--black);
  font-size: 1.4rem;
  transition: opacity 0.2s ease-in-out;
}

.sf-more:hover {
  opacity: 0.6;
}

/* The arrow of the link, out of its text, slides under the pointer */
.sf-more::after,
.sf-support-link::after {
  content: "→";
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.3s ease-in-out;
}

.sf-more:hover::after,
.sf-support-link:hover::after {
  transform: translateX(6px);
}

.sf-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding: 0 76px 36px 30px;
  counter-reset: sf-project;
}

/* A project chosen for the expertise: the whole card links to it, its second cover shown under the pointer, like the cards of the projects */
.sf-project {
  display: block;
  color: var(--black);
  counter-increment: sf-project;
}

.sf-project > div {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background-color: var(--grey-100);
}

.sf-project > div > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  transition: transform 0.6s ease-in-out;
}

.sf-project > div > img + img {
  z-index: 2;
  opacity: 0;
  transition:
    opacity 0.2s ease-in-out,
    transform 0.6s ease-in-out;
}

.sf-project:hover > div > img + img {
  opacity: 1;
}

.sf-project:hover > div > img {
  transform: scale(1.02);
}

.sf-project > p {
  display: flex;
  margin-top: 27px;
  font-size: 1rem;
  transition: color 0.2s ease-in-out;
}

.sf-project:hover > p {
  color: var(--grey);
}

.sf-project > p::before {
  content: "0" counter(sf-project);
  flex-shrink: 0;
  width: 70px;
}

/* The editor shows every expertise open */
.front-editor .sf-body {
  grid-template-rows: 1fr;
}

.front-editor .sf-item::before {
  opacity: 1;
  top: 86px;
}

/* Support: the image on the left, the text on the right */
.sf-support {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.sf-support > div:first-child {
  padding: 27px 0 27px 33px;
}

.sf-support .parallax-frame {
  aspect-ratio: 1.95;
}

.sf-support > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 27px 33px 27px 56px;
}

.sf-support h2 {
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.05;
}

.sf-support-text {
  max-width: 400px;
  font-size: 1.15rem;
  line-height: 1.26;
}

.sf-support-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--grey);
  font-size: 1.15rem;
  transition: color 0.2s ease-in-out;
}

.sf-support-link:hover {
  color: var(--black);
}

/* Method: the title, then the steps, numbered in their order */
.sf-method-title {
  min-height: 206px;
  display: flex;
  align-items: flex-end;
  padding: 0 25px 34px 25px;
}

.sf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: sf-step;
}

.sf-step {
  position: relative;
  padding: 17px 33px 26px 33px;
  counter-increment: sf-step;
  transition: opacity 0.4s ease-in-out;
}

.sf-step:not(.editable_model) + .sf-step::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 1px;
  background-color: var(--grey-200);
}

.sf-step::after {
  content: counter(sf-step, decimal-leading-zero);
  position: absolute;
  top: 17px;
  left: 33px;
  color: var(--grey);
  font-size: 2.2rem;
  line-height: 1;
  transition: color 0.4s ease-in-out;
}

.sf-step-title {
  margin-top: 65px;
  font-size: 1.15rem;
  line-height: 1.26;
}

.sf-step-text {
  color: var(--grey);
  font-size: 1.15rem;
  line-height: 1.26;
  transition: color 0.4s ease-in-out;
}

/* The step under the pointer comes forward: the others fade, its number and its text darken */
@media (hover: hover) {
  .sf-steps:hover > .sf-step:not(:hover) {
    opacity: 0.35;
  }

  .sf-step:hover::after,
  .sf-step:hover > .sf-step-text {
    color: var(--black);
  }
}

/* The large image before the contact block */
.sf-image {
  padding: 23px 23px 160px 23px;
}

.sf-image .parallax-frame {
  aspect-ratio: 2.7;
}

@media screen and (max-width: 1200px) {
  .sf-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-step:not(.editable_model) + .sf-step::before {
    display: none;
  }

  /* Two steps a row (the hidden model comes first): lines between the rows and the columns */
  .sf-steps > .sf-step:nth-child(n + 4) {
    border-top: var(--border);
  }

  .sf-steps > .sf-step:nth-child(odd) {
    border-left: var(--border);
  }

  .sf-projects {
    padding-right: 33px;
    gap: 20px;
  }
}

@media screen and (max-width: 992px) {
  .page-intro,
  .sf-support {
    grid-template-columns: 1fr;
  }

  .page-intro > div:last-child {
    padding: 0 var(--medium-margin) var(--medium-margin);
  }

  .page-intro > div:first-child,
  .sf-support > div:last-child {
    padding: 30px var(--medium-margin);
  }

  .sf-support > div:first-child {
    padding: var(--medium-margin) var(--medium-margin) 0;
  }

  .sf-head {
    padding-left: var(--medium-margin);
    padding-right: var(--medium-margin);
  }

  .sf-head > .h1 {
    font-size: 1.6rem;
  }

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

  .sf-item::before {
    display: none;
  }

  .sf-text {
    padding: 0 var(--medium-margin) 30px;
  }

  .sf-deliverables {
    padding-top: 30px;
  }

  .sf-projects {
    padding: 0 var(--medium-margin) 30px;
  }

  .sf-project > p::before {
    width: 32px;
  }

  .sf-image {
    padding: var(--medium-margin) var(--medium-margin) 80px;
  }

  .sf-image .parallax-frame {
    aspect-ratio: 1.6;
  }
}

@media screen and (max-width: 650px) {
  .sf-steps {
    grid-template-columns: 1fr;
  }

  .sf-steps > .sf-step:nth-child(odd) {
    border-left: none;
  }

  .sf-steps > .sf-step:nth-child(n + 3) {
    border-top: var(--border);
  }

  .sf-step {
    padding-left: var(--medium-margin);
    padding-right: var(--medium-margin);
  }

  .sf-step::after {
    left: var(--medium-margin);
  }

  /* The titles of the sections and the last image without their tall empty space of the desktop */
  .sf-expertises > .sf-title {
    padding: 30px var(--medium-margin) 24px;
  }

  .sf-method-title {
    min-height: 0;
    padding: 30px var(--medium-margin) 24px;
  }

  .sf-image {
    padding-bottom: var(--medium-margin);
  }
}

/********************
 À PROPOS (mockup page 5, sizes at 0.8x)
*********************/

/* Intro: the shared intro of the pages of the studio (.page-intro), its link under its text */
.ap-intro {
  --intro-ratio: 1.74;
}

.ap-intro .page-intro-catch {
  max-width: 400px;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* The grey links with an arrow, which darken under the pointer */
.ap-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--grey);
  font-size: 1.15rem;
  transition: color 0.2s ease-in-out;
}

.ap-link:hover {
  color: var(--black);
}

/* The arrow of a link, out of its text, slides under the pointer: .arrow-link anywhere, and the links of these pages */
.arrow-link::after,
.ap-link::after,
.ap-collective-link::after,
.eq-link::after {
  content: "→";
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.3s ease-in-out;
}

.arrow-link:hover::after,
.ap-link:hover::after,
.ap-collective-link:hover::after,
.eq-link:hover::after {
  transform: translateX(6px);
}

/* An arrow going up (a link out of the site, a message), smaller, slides up and right */
.arrow-link.arrow-link-up::after {
  content: "↗";
  margin-left: 0.2em;
  font-size: 0.7em;
  vertical-align: top;
}

.arrow-link.arrow-link-up:hover::after {
  transform: translate(4px, -4px);
}

/* The links of the footer: their arrow drawn here, their texts edited in the front editor */
.foot-top > div > p > a::after {
  content: "→";
  display: inline-block;
  margin-left: 0.25em;
  transition: transform 0.3s ease-in-out;
}

.foot-top > div > p > a:hover::after {
  transform: translateX(6px);
}

/* A collective creation: the image on the left, the text on the right, its link in a row of its own */
.ap-collective {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.ap-collective > div:first-child {
  padding: 23px 0 27px 26px;
}

.ap-collective .parallax-frame {
  aspect-ratio: 2.6;
}

.ap-collective > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ap-collective > div:last-child > div {
  padding: 23px 33px 30px 58px;
}

.ap-collective h2,
.ap-culture h2 {
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.05;
}

.ap-collective-text {
  max-width: 400px;
  margin-top: 40px;
  font-size: 1.05rem;
  line-height: 1.24;
}

.ap-collective-link {
  display: block;
  margin-top: auto;
  border-top: var(--border);
  padding: 26px 33px 30px 58px;
  color: var(--black);
  font-size: 1.4rem;
}

/* A graphic culture to share: the text on the left, the publications and the workshops on the right */
.ap-culture {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.ap-culture > div:first-child {
  padding: 31px 33px 38px 33px;
}

.ap-culture-text {
  max-width: 420px;
  margin-top: 35px;
  color: var(--grey);
  font-size: 1.25rem;
  line-height: 1.2;
}

.ap-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  border-left: var(--border);
  padding: 31px 58px 38px 26px;
}

.ap-card {
  position: relative;
}

.ap-card + .ap-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -29px;
  width: 1px;
  background-color: var(--grey-200);
}

.ap-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.83;
  object-fit: cover;
  border-radius: 12px;
  background-color: var(--grey-100);
}

.ap-card > h3 {
  margin-top: 31px;
  font-size: 1.6rem;
  font-weight: 400;
}

.ap-card-text {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.24;
}

.ap-card > .ap-link {
  margin-top: 26px;
  font-size: 1.05rem;
}

@media screen and (max-width: 1200px) {
  .ap-cards {
    gap: 40px;
    padding-right: 33px;
  }

  .ap-card + .ap-card::before {
    left: -20px;
  }
}

@media screen and (max-width: 992px) {
  .ap-collective,
  .ap-culture {
    grid-template-columns: 1fr;
  }

  .ap-collective > div:first-child {
    padding: var(--medium-margin) var(--medium-margin) 0;
  }

  .ap-collective > div:last-child > div,
  .ap-collective-link,
  .ap-culture > div:first-child {
    padding-left: var(--medium-margin);
    padding-right: var(--medium-margin);
  }

  .ap-collective .parallax-frame {
    aspect-ratio: 1.6;
  }

  .ap-cards {
    border-left: none;
    border-top: var(--border);
    padding: 30px var(--medium-margin);
  }
}

@media screen and (max-width: 650px) {
  .ap-cards {
    grid-template-columns: 1fr;
  }

  .ap-card + .ap-card::before {
    display: none;
  }

  .ap-card + .ap-card {
    border-top: var(--border);
    padding-top: 30px;
  }
}

/********************
 ÉQUIPE (mockup page 6, sizes at 0.8x)
*********************/

/* Intro: the shared intro of the pages of the studio (.page-intro) */
.eq-intro {
  --intro-ratio: 2.81;
}

.eq-intro .page-intro-catch {
  max-width: 360px;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* The title of a part of a page, at the bottom of its band */
.page-heading {
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 0 25px 22px 25px;
}

.page-heading > h2 {
  font-size: 1.9rem;
  font-weight: 400;
}

/* A person: the images on the left, the text on the right, its name at the top and its text at the bottom */
.eq-person {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

/* The images stop before the line of the text, as far as it is from the frame */
.eq-person > div:first-child {
  padding: 26px 34px 26px 21px;
}

.eq-founder-image {
  aspect-ratio: 1.89;
}

.eq-person > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-left: var(--border);
  padding: 26px 20px 26px 19px;
}

.eq-name,
.eq-role {
  font-size: 1.3rem;
  line-height: 1.15;
}

.eq-role {
  color: var(--grey);
}

.eq-bio {
  max-width: 460px;
  margin-top: 20px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.26;
}

.eq-text {
  font-size: 0.95rem;
  line-height: 1.26;
}

.eq-text > p + p {
  margin-top: 19px;
}

.eq-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--grey);
  font-size: 0.95rem;
  transition: color 0.2s ease-in-out;
}

.eq-link:hover {
  color: var(--black);
}

/* The creative team: its art director with two images, then the members, three a row */
.eq-lead-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.eq-lead-images > img,
.eq-interview-images > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  background-color: var(--grey-100);
}

.eq-lead-images > img {
  aspect-ratio: 1.04;
}

.eq-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 34px;
  padding: 0 42px 44px 33px;
}

/* The line under the art director, from the members to the frame, which the line of his text meets */
.eq-lead {
  position: relative;
}

.eq-lead::after {
  content: "";
  position: absolute;
  left: 33px;
  right: 42px;
  bottom: 0;
  height: 1px;
  background-color: var(--grey-200);
}

/* A line above each member but those of the first row (the hidden model comes first), none under the last row */
.eq-member {
  border-top: var(--border);
  padding: 39px 0 28px 0;
}

.eq-members > .eq-member:nth-child(-n + 4) {
  border-top: none;
}

.eq-member > .eq-text {
  max-width: 480px;
  margin-top: 12px;
}

/* The interview: the quote on the left, the pages of the magazine on the right */
.eq-interview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.eq-interview > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 24px 33px 28px 33px;
}

.eq-quote {
  font-size: 1.35rem;
  line-height: 1.19;
}

.eq-source {
  margin-top: 18px;
  color: var(--grey);
  font-size: 1.05rem;
}

.eq-interview .eq-link {
  font-size: 1.1rem;
}

.eq-interview-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  border-left: var(--border);
  padding: 24px 34px 27px 26px;
}

.eq-interview-images > img {
  aspect-ratio: 1.13;
}

/* The people who worked at the studio */
.eq-alumni {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.eq-alumni > div:first-child {
  padding: 28px 33px 23px 33px;
}

.eq-alumni h2 {
  font-size: 1.9rem;
  font-weight: 400;
}

.eq-alumni-text {
  max-width: 380px;
  margin-top: 28px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.26;
}

.eq-alumni-names {
  border-left: var(--border);
  padding: 29px 33px 23px 33px;
  font-size: 1.05rem;
  line-height: 1.29;
}

@media screen and (max-width: 1200px) {
  .eq-members {
    grid-template-columns: repeat(2, 1fr);
    padding-right: 33px;
  }

  .eq-lead::after {
    right: 33px;
  }

  .eq-members > .eq-member:nth-child(4) {
    border-top: var(--border);
  }

  .eq-lead-images,
  .eq-interview-images {
    gap: 20px;
  }
}

@media screen and (max-width: 992px) {
  .eq-person,
  .eq-interview,
  .eq-alumni {
    grid-template-columns: 1fr;
  }

  .eq-person > div:first-child {
    padding: var(--medium-margin) var(--medium-margin) 0;
  }

  .eq-person > div:last-child,
  .eq-interview-images,
  .eq-alumni-names {
    border-left: none;
    border-top: var(--border);
    margin-top: var(--medium-margin);
    padding: 30px var(--medium-margin);
  }

  .eq-interview > div:first-child,
  .eq-alumni > div:first-child {
    padding: 30px var(--medium-margin);
  }

  .eq-interview-images {
    margin-top: 0;
  }

  .eq-alumni-names {
    margin-top: 0;
  }

  .eq-members {
    padding: 0 var(--medium-margin) 30px;
  }

  .eq-lead::after {
    left: var(--medium-margin);
    right: var(--medium-margin);
  }

  .page-heading {
    min-height: 100px;
    padding: 0 var(--medium-margin) 20px;
  }
}

@media screen and (max-width: 650px) {
  .eq-members {
    grid-template-columns: 1fr;
  }

  .eq-members > .eq-member:nth-child(3) {
    border-top: var(--border);
  }

  .eq-member {
    padding: 30px 0 24px 0;
  }
}

/********************
 NEWSLETTER (mockup page 7, sizes at 0.8x)
*********************/

/* The band under the menu */
.nl-top {
  height: 70px;
}

/* The title and the form on the left, the image on the right */
.nl-page {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

.nl-page > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
  border-right: var(--border);
}

.nl-title {
  max-width: 500px;
  padding: 30px 33px 0 41px;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.nl-title > span {
  display: block;
}

.nl-page .site-form {
  border-top: var(--border);
}

.nl-page .site-form > p:last-child:empty {
  display: none;
}

.nl-page > div:last-child {
  padding: 22px 18px 22px 25px;
}

.nl-page .parallax-frame {
  aspect-ratio: 1.46;
}

@media screen and (max-width: 992px) {
  .nl-page {
    grid-template-columns: 1fr;
  }

  .nl-page > div:first-child {
    border-right: none;
  }

  .nl-title {
    padding: 30px var(--medium-margin) 0;
    font-size: 1.6rem;
  }

  .nl-page > div:last-child {
    padding: var(--medium-margin);
  }

  .nl-top {
    height: 30px;
  }
}

/* The longest text of the rotator, kept on one line with its brackets, fits a phone */
@media screen and (max-width: 650px) {
  .nl-title {
    font-size: min(1.6rem, 6vw);
  }
}

/********************
 CONTACT (mockup page 3, sizes at 0.8x)
*********************/

/* The heading and the form on the left, the image on the right */
.ct-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.ct-page > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
  border-right: var(--border);
}

.ct-title {
  max-width: 860px;
  padding: 38px 29px 0 29px;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.29;
}

.ct-page .site-form {
  border-top: var(--border);
}

.ct-page .site-form > div:first-of-type > input,
.ct-page .site-form input[type="email"],
.ct-page .site-form select {
  height: 62px;
  padding: 0 29px;
}

.ct-page .site-form textarea {
  height: 158px;
  padding: 18px 29px;
}

.ct-page .site-form label {
  height: 46px;
  padding: 0 29px;
}

/* « Envoyer » then its arrow, larger, as in the mockup */
.ct-page .site-form button[type="submit"] {
  justify-content: flex-start;
  gap: 24px;
  height: 82px;
  padding: 0 29px 0 38px;
  font-size: 1.4rem;
}

.ct-page .site-form > p:last-child:not(:empty) {
  padding: 18px 29px;
}

.ct-page > div:last-child {
  padding: 43px 22px 26px 25px;
}

.ct-page .parallax-frame {
  aspect-ratio: 0.647;
}

@media screen and (max-width: 992px) {
  .ct-page {
    grid-template-columns: 1fr;
  }

  .ct-page > div:first-child {
    border-right: none;
  }

  .ct-title {
    padding: 30px var(--medium-margin) 0;
    font-size: 1.6rem;
  }

  .ct-page > div:last-child {
    padding: var(--medium-margin);
  }

  .ct-page .parallax-frame {
    aspect-ratio: 0.8;
  }
}
