/* analachina.com — same look as the 2011 theme, fluid instead of fixed 960/1000 px. */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

a, a:visited { color: #fff; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
img { border: 0; max-width: 100%; height: auto; }

/* Full-screen background photo, as the old "supersized" script did. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #000;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top;
}
.bg-bottom-right .bg { background-position: right bottom; }

/* Header: ADEM logo, site logo, menus */
.site-header {
  padding: 0 30px;
  height: 330px;
}
.adem { display: inline-block; margin-top: 33px; line-height: 0; }
.logo { display: block; width: 268px; margin-top: 57px; line-height: 0; }

.menu ul, .submenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
}
.menu li::after, .submenu li::after {
  content: "/";
  display: inline-block;
  margin: 0 10px 0 8px;
  font-weight: 300;
}
.menu { margin-top: 30px; }
.menu a {
  display: inline-block;
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: 17.5px;
  line-height: 1;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 5px solid transparent;
}
.menu li::after { font-size: 16px; }
.menu a.active { border-bottom-color: #fff; }
.menu a:hover { text-decoration: none; border-bottom-color: rgba(255, 255, 255, 0.5); }
.menu a.active:hover { border-bottom-color: #fff; }

.submenu { margin-top: 16px; }
.submenu a {
  display: inline-block;
  font-weight: bold;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 4px solid transparent;
}
.submenu li::after { font-size: 14px; }
.submenu a.active { border-bottom-color: #fff; }
.submenu a:hover { text-decoration: none; border-bottom-color: rgba(255, 255, 255, 0.5); }
.submenu a.active:hover { border-bottom-color: #fff; }

/* Content */
.content {
  max-width: 850px;
  padding: 0 30px 60px;
  margin-top: 100px;
}
.front .content { margin-top: 160px; }

h1 { font-size: 25px; font-weight: normal; line-height: 1.3; margin: 0 0 10px; }
h2 { font-size: 18px; font-weight: bold; line-height: 1.3; margin: 12px 0; }
p { margin: 14px 0; }
.content > h1 + h2, .content > h1 + * > h2:first-child { margin-top: 0; }
.content ol { padding-left: 2em; margin: 14px 0; }
.content ol p { margin: 0; }
.u { text-decoration: underline; }

/* Home: text block a little narrower, like the original */
.front .content { max-width: 850px; }

/* Biography: press quotes */
.presse p { margin: 12px 0; }

/* Course schedule: three venues side by side, one column on small screens */
.salles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
}
.salles h2 { margin-bottom: 12px; }
.tarifs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  column-gap: 30px;
}

/* Photo gallery: same thumbnails, wrapped in rows instead of one 8700 px strip */
.no-bg .content { max-width: none; }
.galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 10px;
}
.galerie a { display: block; line-height: 0; }
.galerie img {
  height: 300px;
  width: auto;
  max-width: none;
  border: 1px solid #333;
}

/* Lightbox (assets/js/galerie.js) */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 60px 20px;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox figcaption { margin-top: 10px; font-size: 13px; text-align: center; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font: 300 44px/1 "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  padding: 10px 16px;
}
.lightbox button:focus-visible { outline: 2px solid #fff; }
.lightbox .close { top: 8px; right: 8px; font-size: 36px; }
.lightbox .prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Videos */
.videos {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 5px;
}
.videos a { display: block; line-height: 0; }
.videos img { width: 200px; height: 150px; object-fit: cover; }
.video {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 14px 0;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Small screens */
@media (max-width: 899px) {
  .salles { grid-template-columns: 1fr; }
  .salles h2.vide { display: none; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; height: auto; }
  .fond-home .bg { background-position: 72% top; }
  .adem { margin-top: 20px; }
  .logo { width: 200px; margin-top: 28px; }
  .menu { margin-top: 24px; }
  .menu a { font-size: 17px; }
  .menu li::after { font-size: 15px; margin: 0 8px 0 6px; }
  .submenu { margin-top: 14px; }
  .content, .front .content { padding: 0 20px 48px; margin-top: 44px; }
  h1 { font-size: 22px; }
  h2 { font-size: 16px; }
  .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
  }
  .tarifs { grid-template-columns: 1fr; }
  .galerie img { height: 150px; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .lightbox figure { padding: 50px 10px 16px; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 6px; transform: none; }
}
