/* ==========================================================================
   General
   ========================================================================== */

::selection {
  background: rgba(0, 220, 140, 0.25);
}
body[data-rubrique]:not([data-rubrique=""]) ::selection {
  background: color-mix(in srgb, var(--c-rubrique) 82%, transparent);
}

audio,
canvas,
progress,
video {
  display: block;
  vertical-align: baseline;
}

html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: var(--f-regular);
  margin: 0 auto;
  font-size: 0.8rem;
  line-height: 1.78;

  color: var(--c-textColor);
  background-color: var(--c-pagebg);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
  font-kerning: normal;

  @media (min-width: 48em) {
    font-size: 1.1rem;
  }
}

strong,
em {
  font-family: var(--f-bold);
}
em {
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
b {
  font-weight: normal;
  font-size: inherit;
}

ul,
ol {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

hr {
  border: none;
  border-top: 1px solid #444;
  margin-top: calc(var(--t-margin) * 2);
  margin-bottom: calc(var(--t-margin) * 2);
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 1px solid var(--c-textMeta);
}

/* small caps titles (h3) */
.module--intro h3,
.module--infos h3,
.module--cv h3,
.module--projetList--titles h3,
.module--projet--header--text--colRight h3,
.module--projet--text h3 {
  font-size: 0.7rem;
  font-family: var(--f-bold);
  margin-top: var(--t-margin);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

/* centered column */
.module--default,
.module--intro,
.module--infos,
.module--projetList,
.module--cv {
  width: 100%;
  max-width: var(--t-largemaxwidth);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--t-margin);

  @media (min-width: 48em) {
    padding: 0 calc(var(--t-margin) * 2);
  }
}

/* offset text block (home and infos) */
.module--intro--textblock,
.module--infos--textblock {
  margin: 150px auto 10vh;

  @media (min-width: 62em) {
    margin: 22vh 7% 16vh 33.333%;
  }
}

/* ==========================================================================
   Page transitions (pjax, see main.js): only #main-container is replaced,
   the navbar and the project list stay in place
   ========================================================================== */

#main-container {
  opacity: 1;
  transition: opacity 0.2s;

  /* focused after each page change (screen readers), no outline */
  &:focus {
    outline: none;
  }

  body.is--ajax_loading & {
    opacity: 0;
  }
}
.module--projetList--titles {
  opacity: 1;
  transition: opacity 0.4s;

  body.is--ajax_loading & {
    opacity: 0;
    pointer-events: none;

    .module--projetList--titles--projetName--links {
      pointer-events: none !important;
    }
  }
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.module--navbar {
  color: #fff;
  position: relative;
  z-index: 1000;

  html.js & {
    opacity: 1;
    transition: opacity 0.9s 1s ease-out;
  }
  html.js body.is--loading & {
    opacity: 0;
  }
  body[data-visuel="zoomedIn"] & {
    opacity: 0;
  }

  .module--navbar--wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    pointer-events: none;

    @media (min-width: 48em) {
      padding: 0 var(--t-margin);
    }
  }

  a {
    display: block;
    padding: var(--t-margin);
    font-size: 0.7rem;
    font-family: var(--f-bold);
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    pointer-events: all;

    @media (min-width: 48em) {
      margin-top: var(--t-margin);
    }

    &:hover,
    &:focus {
      outline: none;
    }
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .module--logo {
    display: block;
    float: left;
  }

  .module--navbar--list {
    float: right;

    .module--navbar--list--item {
      display: inline-block;
    }
  }
}

/* ==========================================================================
   Archive notice (floating, top center, closable — see main.js)
   ========================================================================== */

.module--archive {
  position: fixed;
  top: var(--t-margin);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--t-margin));
  max-width: 320px;
  z-index: 1100;
  padding: 12px 32px 12px 16px;

  font-size: 0.7rem;
  line-height: 1.5;
  color: #fff;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);


  html.js & {
    opacity: 1;
    transition: opacity 0.9s 1s ease-out;
  }
  html.js body.is--loading &,
  body[data-visuel="zoomedIn"] & {
    opacity: 0;
    pointer-events: none;
  }

  p {
    margin: 0 0 0.5em;

    &:last-child {
      margin-bottom: 0;
    }
  }

  a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
  }
}

.module--archive--close {
  position: absolute;
  top: 4px;
  right: 6px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;

  &:focus-visible {
    outline: 1px solid currentColor;
  }
}

/* ==========================================================================
   Default page
   ========================================================================== */

.module--default {
  margin-top: 40px;
}

/* ==========================================================================
   Home intro: links filter the project list by category
   ========================================================================== */

.module--intro {
  font-size: 1.2rem;
  line-height: 1.6;

  @media (min-width: 48em) {
    font-size: 1.8rem;
  }

  a {
    display: inline;
    cursor: pointer;
    color: #fff;
    padding: 0 0 0.1em;
    margin: -0.1em 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    background-position: 0 calc(100% - 2px);
    background-repeat: no-repeat;
    background-size: 250% 1px;
    transition: background-size 1.6s linear;

    border: 1px solid transparent;

    /* (more specific than `main a:hover`) */
    &[href^="#"] {
      background-image: linear-gradient(
        to right,
        var(--c-rubrique, #fff),
        var(--c-rubrique, #fff) 50%,
        transparent 50%,
        transparent
      );
    }

    &:hover {
      background-size: 250% 2px;
    }
    &.is--active {
      background-size: 250% 100%;
      background-position: 0 100%;
    }
    &:focus-visible {
      outline: none;
      border-color: var(--c-rubrique, #fff);
    }
  }

  html.js & {
    opacity: 1;
    transition:
      opacity 1.4s ease-out,
      transform 0.6s ease-out;

    a {
      transition:
        background-size 0.2s,
        background-position 2.2s var(--delay, 0s);
      transition-timing-function: cubic-bezier(0.315, 0.11, 0, 0.985);

      &:nth-of-type(1) {
        --delay: 0.6s;
      }
      &:nth-of-type(2) {
        --delay: 1.2s;
      }
      &:nth-of-type(3) {
        --delay: 1.8s;
      }
      &:nth-of-type(4) {
        --delay: 2.4s;
      }
      &:nth-of-type(5) {
        --delay: 3s;
      }
    }
  }

  html.js body.is--loading & {
    opacity: 0;
    transform: translateY(15px);

    a {
      background-position: 100% 100%;
    }
  }
}

/* ==========================================================================
   Texts (all pages)
   ========================================================================== */

main {
  a,
  a:hover {
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 200% 1px;
    background-image: linear-gradient(
      to right,
      #fff,
      #fff 50%,
      transparent 50%,
      transparent
    );
  }
  a:focus {
    outline: 1px solid transparent;
  }

  /* (lienProjet: …): project number, title shown on hover */
  a.lienProjet {
    font-size: 0.75em;
    position: relative;
    font-family: var(--f-bold);
    display: inline-block;
    vertical-align: bottom;
    margin: 0 0.15em 0.3em;
    padding-bottom: 0;

    background-position: 0 88%;
    background-size: 250% 2px;

    &::before {
      --finalWidth: 14;
      --finalHeight: 1.4;

      position: absolute;
      top: 100%;
      left: calc((var(--finalWidth) * 50% - 50%) * -1);
      transform: scale(calc(1 / var(--finalWidth)), 0.05) translateY(-170%);

      padding: 0.4em;
      padding-top: 0.55em;
      width: calc(var(--finalWidth) * 100%);
      height: calc(var(--finalHeight) * 100%);

      background: color-mix(in srgb, var(--c-rubrique, #fff) 94%, transparent);
      color: transparent;
      content: attr(title);
      white-space: pre-wrap;
      word-break: break-all;
      opacity: 0;
      font-size: 0.75em;

      transform-origin: center top;
      transition:
        opacity 0.3s 0.3s,
        color 0.3s,
        transform 0.3s,
        background-position 0.2s;
      transition-timing-function: var(--ease-custom2);

      pointer-events: none;
      text-align: center;
    }

    &:hover,
    &:focus-visible {
      background-position: 0 128%;

      &::before {
        color: #fff;
        opacity: 1;
        transition:
          opacity 0s,
          color 0s,
          transform 0.3s,
          background-position 0.2s;
        transform: scale(1);
        pointer-events: auto;
      }
    }
  }

  ul,
  ol {
    list-style-type: none;

    li {
      margin-left: 4rem;
      margin-right: 4rem;
      margin-bottom: 1rem;

      &::before {
        content: "->";
        color: var(--c-textMeta);
        margin-left: -1.5em;
        width: 1.5em;
        display: inline-block;
      }
    }
  }

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

/* ==========================================================================
   Infos
   ========================================================================== */

.module--infos {
  h1 {
    font-size: 1.6rem;
    line-height: 1.6;
  }

  a {
    display: inline;
    cursor: pointer;
    color: #fff;
    padding: 0.1em 0;
    margin: -0.1em 0;

    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 250% 1px;
    transition: all 0.25s;

    outline: 1px solid transparent;

    &:hover {
      background-size: 250% 10%;
    }
    &:focus-visible,
    &.is--active {
      padding: 0.1em 0.12em;
    }

    &[data-rubrique] {
      color: var(--c-rubrique);
      background-image: linear-gradient(
        to right,
        var(--c-rubrique),
        var(--c-rubrique) 50%,
        transparent 50%,
        transparent
      );

      &:focus-visible {
        outline: 1px solid var(--c-rubrique);
      }
    }
  }
}

.module--cv {
  position: relative;
  padding-top: 22vh;
  font-size: 0.9em;

  a {
    display: inline;
    cursor: pointer;
    color: #fff;
    padding: 0.1em 0 2px;
    margin: -0.1em 0;
    text-decoration: none;

    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 200% 1px;
    transition: none;
  }

  .m_detail--item ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-content: flex-start;

    > * {
      background-color: rgba(255, 255, 255, 0.02);
      flex: 0 1 calc(33.333% - var(--t-margin) / 2);
      min-width: 250px;

      padding: calc(var(--t-margin) / 2) var(--t-margin);
      margin: 0 calc(var(--t-margin) / 2) calc(var(--t-margin) / 2) 0;

      transition: background-color 0.4s 4s ease-out;

      &:hover {
        background-color: rgba(255, 255, 255, 0.05);
        transition: background-color 0.2s 0s ease-out;
      }

      &::before {
        display: none;
      }
    }
  }
}

/* ==========================================================================
   Project list (home, infos, projects)
   ========================================================================== */

.module--projetList {
  position: relative;
  margin-top: var(--t-margin);
  padding-top: calc(var(--t-margin) * 2);

  html.js & {
    opacity: 1;
    transition: opacity 0.6s 0.6s ease-out;
  }
  html.js body.is--loading & {
    opacity: 0;
  }
}

/* category headings and projects, reordered by main.js (`order`) */
.module--projetList--titles {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 0;
  margin-bottom: calc(var(--t-margin) * 2);
  list-style-type: none;
  z-index: 101;
  pointer-events: none;

  h3 {
    flex: none;
    margin-bottom: 1px;
    width: 100%;
    opacity: 1;
    max-height: none;
    transition: opacity 0.4s;

    &.is--hidden {
      padding: 0;
      margin: 0;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
    }
  }
}

.module--projetList--titles--projetName {
  --vignette: 100%;
  --vignette-ratio: 2.5;

  position: relative;
  flex: none;
  width: var(--vignette);
  height: 0;
  padding: 0 0 calc(var(--vignette) / var(--vignette-ratio));
  overflow: visible;
  transition: opacity 0.8s ease-out;
  pointer-events: auto;

  @media (min-width: 48em) {
    --vignette: 50%;
    --vignette-ratio: 2;
  }
  @media (min-width: 62em) {
    --vignette: 33.333%;
    --vignette-ratio: 1.6;
  }
}

.module--projetList--titles--projetName--links {
  position: absolute;
  inset: 0;
  overflow: hidden;
  text-align: center;
  transition:
    color 0.4s ease-in-out,
    background-color 0.4s ease-in-out,
    opacity 0.5s ease-in,
    border 0.2s linear;

  &:focus-visible {
    outline: 1px solid var(--c-rubrique);
  }
}

.module--projetList--titles--projetName--links--index {
  font-size: 5rem;
  display: block;
  position: absolute;
  top: 48%;
  right: 60%;
  width: 40%;
  transform: translate3d(0, -50%, 0);
  transform-origin: center;
  padding-right: 2.5%;
  text-align: right;
  line-height: 1;
  z-index: 0;
  color: var(--c-rubrique);
  transition:
    color 0.8s ease-out,
    transform 0.9s ease-out,
    opacity 0.8s,
    background 0.44s,
    right 0.6s ease-out,
    -webkit-text-stroke 0.4s ease-out;

  @media (min-width: 48em) {
    font-size: 7rem;
  }

  .is--visited & {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--c-rubrique);
    -webkit-text-fill-color: transparent;
  }
}

.module--projetList--titles--projetName--links--name {
  font-size: 1rem;
  color: var(--c-rubrique);
  display: block;
  position: absolute;
  top: 48%;
  left: 40%;
  width: 60%;
  transform: translate3d(0, -50%, 0);
  z-index: 1;
  padding-left: 2.5%;
  line-height: 1.4;
  text-align: left;
  transition:
    color 0.8s ease-out,
    transform 0.9s ease-in-out,
    opacity 0.8s,
    background 0.44s,
    left 0.6s;

  @media (min-width: 48em) {
    font-size: 1.3rem;
  }
}

.module--projetList--titles--projetName--links--corners {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  overflow: hidden;
  top: 0;
  left: 0;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  color: var(--c-rubrique);
  background-color: transparent;
  transition:
    width 0.4s ease-in,
    height 0.4s ease-out,
    background-color 0.7s;

  /* glow following the mouse (--x / --y set by main.js) */
  &::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 1px;
    left: var(--x);
    top: var(--y);
    background: radial-gradient(circle closest-side, transparent, transparent);
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    transition:
      width 0.2s,
      height 0.2s;
    pointer-events: none;
  }
}

/* hover on the list: dim the other projects, open the hovered one */
.module--projetList--titles:hover
  .module--projetList--titles--projetName[data-type] {
  .module--projetList--titles--projetName--links:not(:hover) {
    .module--projetList--titles--projetName--links--index,
    .module--projetList--titles--projetName--links--name {
      opacity: 0.8;
    }
  }

  .module--projetList--titles--projetName--links:hover {
    .module--projetList--titles--projetName--links--index {
      right: 50%;
      transform: translate3d(50%, -50%, 0) scale(1.8);
    }
    .module--projetList--titles--projetName--links--name {
      transform: translate3d(-25%, -50%, 0) scale(1.2);
      color: #fff;
      background-color: transparent;
    }
    .module--projetList--titles--projetName--links--corners {
      opacity: 1;
      width: 100%;
      height: 100%;
      background-color: color-mix(in srgb, var(--c-rubrique) 84%, transparent);

      &::after {
        width: 500px;
        height: 500px;
        background: radial-gradient(
          circle closest-side,
          var(--c-rubrique),
          transparent
        );
      }
    }
  }
}

/* full-screen covers, shown when hovering a project */
.module--projetList--visuelWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 100;
  pointer-events: none;
}

.module--projetList--visuelWrapper--bgmask {
  position: fixed;
  inset: 0;
  z-index: -5;
  opacity: 0;
  background-color: var(--c-pagebg);
  transition: opacity 0.1s ease-out;
}

.module--projetList--visuelWrapper--visuel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  opacity: 0;
  visibility: hidden;

  transform: translate3d(0, 0, 0);
  transform-origin: center;
  z-index: 1;

  will-change: opacity, transform;
  transition:
    opacity 0.4s linear,
    transform 0.4s ease-out;

  &[srcset] {
    visibility: visible;
  }

  &.was--shown {
    z-index: 0;
  }

  &.is--shown {
    opacity: 0.4;
    transition: opacity 0.4s 0.4s ease-out;
  }

  /* the clicked project */
  &.is--visuelProjet {
    opacity: 1;
    z-index: 2;
    transition: opacity 0.4s ease-in;
  }
}

/* ==========================================================================
   Project
   ========================================================================== */

.module--projet {
  padding-bottom: calc(var(--t-margin) * 2);
  transition:
    opacity 0.4s ease-out,
    margin 1.5s ease-out;

  h3 {
    color: var(--c-rubrique);
  }

  a:focus {
    outline: 1px solid var(--c-rubrique);
  }
}

.module--projet--header {
  position: relative;
  z-index: 10;
  padding: 0 calc(var(--t-margin) * 2) var(--t-margin);
  margin-top: var(--t-bandeauImage);
  margin-bottom: -5px;
  color: var(--c-textColor);
  background-color: var(--c-pagebg);

  transition:
    transform 0.6s ease-out,
    background-color 0.4s ease;
  transition-timing-function: var(--ease-custom);

  /* on load, the header rises over the cover */
  transform: translate3d(0, 10vh, 0);

  body:not(.is--loading)[data-visuel=""] & {
    transform: translate3d(0, 0, 0);
  }
}

.module--projet--header--text {
  width: 100%;
  margin: 0 auto;
  max-width: var(--t-largemaxwidth);
  padding-top: 1.5rem;
  display: flow-root;
  transition: opacity 0.2s ease-out;

  h1,
  h2,
  h3 {
    margin: 0;
  }
}

.module--projet--header--text--index {
  font-size: 1.15rem;
  font-family: var(--f-bold);
  display: inline-block;
  width: 2em;
  margin-right: 0;

  [data-type] & {
    color: var(--c-rubrique);
  }
}

.module--projet--header--text--name {
  font-size: 1rem;
  display: inline-block;

  @media (min-width: 48em) {
    font-size: 1.3rem;
  }
}

.module--projet--header--text--colLeft {
  font-size: 1.2rem;
  max-width: 60.5ch;
  padding-right: calc(var(--t-margin) * 2);
  margin-top: calc(var(--t-margin) / 2);
  margin-bottom: calc(var(--t-margin) * 2);

  @media (min-width: 48em) {
    font-size: 1.4rem;
    max-width: 51.857ch;
    float: left;
    width: 66%;
  }

  > *:first-child {
    margin-top: 0;
  }
  p {
    margin-top: calc(var(--t-margin) / 2);
  }
}

.module--projet--header--text--colRight {
  margin-top: var(--t-margin);
  line-height: 1.71;

  @media (min-width: 48em) {
    float: left;
    width: 34%;
  }

  :first-child:not(h3) {
    margin-top: 0;
  }

  h3 {
    margin-top: var(--t-margin);
  }

  p {
    margin: 0;
  }
}

/* project links, in the category color */
.module--projet[data-type] {
  .module--projet--header--text a,
  .module--projet--text a {
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 200% 1px;
    transition: all 0.25s;
    background-image: linear-gradient(
      to right,
      var(--c-rubrique),
      var(--c-rubrique) 50%,
      transparent 50%,
      transparent
    );
  }
}
.module--projet {
  .module--projet--header--text a:hover,
  .module--projet--text a:hover {
    background-size: 250% 10%;
  }
}

/* cover: fixed behind the header, in full screen when zoomed in
   (on arrival from the project list, or on click) */
.module--projet--visuel {
  background-color: transparent;
  color: var(--c-textColor);
  overflow: hidden;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  z-index: 0;

  figure {
    margin: 0;
  }

  /* (more specific than `.media-image .FigureImage-lazy`) */
  .media-image .FigureImage-lazy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate3d(0, calc(-50% + var(--t-bandeauImage) / 2), 0);
    opacity: 0.95;
    transition:
      transform 0.6s ease-in-out,
      opacity 0.5s ease-out;
    transition-timing-function: var(--ease-custom2);

    body[data-visuel="zoomedIn"] & {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }

    picture,
    img {
      display: block;
      width: 100%;
      height: auto;
      position: relative;
    }
  }
}

body[data-visuel="zoomedIn"] .module--projet {
  .module--projet--header,
  .module--projet--header ~ .module--projet--text:nth-of-type(1) {
    transform: translate3d(0, calc(100vh - var(--t-bandeauImage)), 0);
  }
}

/* text sections, split by `---` lines, alternate dark and light */
.module--projet--text {
  position: relative;
  z-index: 10;
  background-color: var(--c-pagebg);
  color: var(--c-textColor);
  padding: var(--t-margin) calc(var(--t-margin) * 2);
  transition:
    opacity 0.9s,
    transform 0.6s;
  transition-timing-function: var(--ease-custom);

  /* line at the bottom */
  &:last-child:nth-of-type(odd) {
    padding-bottom: 0;

    &::after {
      content: "";
      border-top: 1px solid #444;
      display: block;
      max-width: var(--t-largemaxwidth);
      width: 100%;
      margin: calc(var(--t-margin) * 2) auto 0;
    }
  }

  &:nth-of-type(even) {
    background-color: var(--c-pagebgwhite);
    color: var(--c-pagebg);

    > :is(.media-image, .media-video, .video, .media-tweet) .FigureImage-lazy {
      background-color: #ebebeb;
    }
  }

  figure {
    margin: 0;
  }

  > :is(.media-image, .media-video, .video, .media-tweet) {
    display: block;
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: var(--t-largemaxwidth);
    margin: 0 auto;

    &.largeur--Colonne {
      max-width: 66ch;
    }

    + :is(.media-image, .media-video, .video) {
      padding-top: 1rem;
    }

    .twitter-tweet {
      margin: 0 auto !important;
    }

    .FigureImage-lazy {
      background-color: #232323;
    }

    .legende,
    .caption-bottom,
    figcaption {
      margin-left: 0;
      padding: 0;
      max-width: 76ch;
      font-size: 0.8em;
      margin-top: 0.4em;

      p {
        margin-top: 0.4em;
        max-width: 76ch;
        padding: 0;
      }
    }
  }

  .media-video.capture_siteweb {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding-top: 40px;
    background-color: #e3e3e3;
    box-shadow: 0 0 30px -10px #ccc;
  }

  .video {
    max-width: 600px;

    iframe {
      width: 100%;
      height: 350px;
    }
  }

  p,
  ul,
  ol {
    &:empty {
      display: none;
    }

    &:not(:empty) {
      max-width: 66ch;
      margin: 0 auto;
      padding-top: 0.8rem;
      padding-bottom: 1.3rem;

      & + p,
      & ul,
      & ol {
        padding-top: 0;
      }
    }
  }

  h2 {
    font-size: 1.2rem;
    max-width: 60.5ch;
    margin: 0 auto;
    padding-top: 1em;
    padding-bottom: 0.5em;

    @media (min-width: 48em) {
      font-size: 1.4rem;
      max-width: 51.857ch;
    }
  }
}

/* ==========================================================================
   Images (image kirbytag)
   ========================================================================== */

.media-image.largeur--1\/2 {
  width: 50%;
  min-width: 250px;
}

.media-image .FigureImage-lazy {
  position: relative;

  picture,
  img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.media-image img {
  transition:
    opacity 0.4s ease-out,
    filter 0.8s linear;
}

.media-image .image {
  background-color: transparent;
}

/* fade-in once loaded (is--loaded set by main.js) */
html.js .media-image .FigureImage-lazy img {
  opacity: 0;

  &.is--loaded {
    opacity: 1;
  }
}
