/* MOBILE FIRST — les points de rupture sont dans responsive.css */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: var(--margin);
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
}

a:hover { border-bottom-color: currentColor; }

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

strong, b { font-weight: 600; }
em, i { font-style: italic; }

.muted { color: var(--color-muted); }
.plain-list { list-style: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* fondu à l'arrivée sur la page */
#fade { opacity: 0; transition: opacity 0.4s ease-out; }
#fade.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #fade { transition: none; } }

/* ---- E N - T Ê T E ---- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--gap);
  margin-bottom: 3em;
}

.site-header a { border: 0; }
.site-header a:hover,
.site-header a.is-active { border-bottom: 1px solid currentColor; }

.menu-toggle {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle__close,
.menu-open .menu-toggle__open { display: none; }
.menu-open .menu-toggle__close { display: inline; }

.site-nav {
  display: none;
  width: 100%;
  padding-top: 1em;
}

.menu-open .site-nav { display: block; }

.site-nav__languages {
  display: flex;
  gap: 0.75em;
  margin-top: 1em;
  text-transform: uppercase;
  font-size: var(--font-size-small);
}

/* ---- G R I L L E ---- */

.grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5em var(--gap);
}

.card {
  display: block;
  border: 0;
  line-height: 1.25;
}

.card:hover { border: 0; }

.card__cover {
  aspect-ratio: 4 / 3;
  margin-bottom: 0.6em;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-placeholder);
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.card:hover .card__cover img { opacity: 0.85; }

.intro {
  max-width: var(--text-width);
  margin-bottom: 3em;
}

/* ---- T E X T E ---- */

.page__title,
.projet__title {
  font-size: 1em;
  margin-bottom: 2em;
}

.text { max-width: var(--text-width); }

.text p,
.text ul,
.text ol,
.text blockquote,
.text figure { margin-bottom: 1.2em; }

.text h2,
.text h3 { font-size: 1em; font-weight: 600; margin: 2em 0 0.6em; }

.text ul { list-style: disc; padding-left: 1.2em; }
.text ol { list-style: decimal; padding-left: 1.4em; }

.text blockquote {
  border-left: 1px solid var(--color-line);
  padding-left: 1.5em;
}

.text blockquote footer { color: var(--color-muted); margin-top: 0.5em; }

hr {
  border: 0;
  border-bottom: 1px solid var(--color-line);
  margin: 3em 0;
}

/* ---- M É D I A S ---- */

.media { margin: 0 0 2.5em; }

.media img,
.media video,
.media__frame { border-radius: var(--radius); }

.media img,
.media video { display: block; width: 100%; }

.media a { border: 0; }

.media figcaption {
  font-size: var(--font-size-small);
  color: var(--color-muted);
  margin-top: 0.6em;
}

.media--video-embed .media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.media--video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media--audio .media__frame { border-radius: 0; }
.media--audio audio { width: 100%; }
.media--audio iframe { width: 100%; border: 0; }
.media__soundcloud { height: 166px; }
.media__title { margin-bottom: 0.5em; }

.glightbox-clean .gslide-title { font-family: var(--font-family); font-weight: normal; }

/* ---- P R O J E T ---- */

.projet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--gap);
}

.projet__header .projet__title { margin-bottom: 0; }
.projet__header { margin-bottom: 2em; }

.projet__infos { margin-bottom: 2em; font-size: var(--font-size-small); }
.projet__infos dl > div { margin-bottom: 0.8em; }

.projet__gallery { margin-top: 2em; }

.related {
  margin-top: 6em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-line);
}

.related__title { font-size: 1em; margin-bottom: 1.5em; }

/* ---- A G E N D A ---- */

.agenda { margin-bottom: 4em; }

.agenda__heading { font-size: 1em; margin-bottom: 1em; }

.agenda__list { list-style: none; border-top: 1px solid var(--color-line); }

.event {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25em var(--gap);
  padding: 0.8em 0;
  border-bottom: 1px solid var(--color-line);
}

.event__text { margin-top: 0.5em; max-width: var(--text-width); }
.event__link { margin-left: 0.3em; border: 0; }
.agenda--past { color: var(--color-muted); }
.agenda--past .muted { color: inherit; }

/* ---- À  P R O P O S ---- */

.columns { display: grid; grid-template-columns: 1fr; gap: 3em var(--gap); }
.columns__side h2 { font-size: 1em; margin-bottom: 1em; }
.columns__side p,
.columns__side div { margin-bottom: 1em; }

/* ---- P I E D  D E  P A G E ---- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1em var(--gap);
  margin-top: 8em;
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1em; }
