/*
Theme Name: Promusica
Version: 0.3
Author: Thibault Maudet
*/
:root {
  --font-main: "Roboto", sans-serif;
  --font-secondary: "Engagement", cursive;
  --font-main-color: #333333;
  --font-secondary-color: #e24242;
  --background-main: #ffffff;
  --background-secondary: #fafafa;
  --border-main-color: #aaaaaa;
}
/* ---------------------------------------------------
   RESET
   --------------------------------------------------- */
*:where(:not(iframe, canvas, img, svg, video):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
a,
button {
  cursor: revert;
  color: inherit;
  text-decoration: none;
}
ol,
ul,
menu {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
}
textarea {
  white-space: revert;
}
meter {
  -webkit-appearance: revert;
  appearance: revert;
}
::placeholder {
  color: unset;
}
:where([hidden]) {
  display: none;
}
:where([contenteditable]) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  /*-webkit-line-break: after-white-space;*/
}
:where([draggable="true"]) {
  -webkit-user-drag: element;
}
/* ---------------------------------------------------
   BASIC STYLES
   --------------------------------------------------- */
body {
  font-family: var(--font-main);
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--font-main-color);
  background-color: var(--background-main);
  font-size: 14px;
}
body.menu-open {
  overflow: hidden;
}
body.menu-open header {
  opacity: 1;
}
body :where(figure) {
  margin: 0;
}
body :where(.wp-block-columns:last-of-type) {
  margin-bottom: 0;
}
.font-main-color {
  color: var(--font-main-color);
}
.font-secondary-color {
  color: var(--font-secondary-color);
}
h1 {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: normal;
  line-height: 14px;
}
h2 {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--font-secondary-color);
}
h3 {
  font-size: 1.2rem;
  font-weight: 500;
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h5 {
  font-size: 1rem;
}
/* ---------------------------------------------------
   HEADER
   --------------------------------------------------- */
header {
  position: fixed;
  width: 100%;
  background-color: transparent;
  opacity: 0.9;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
  z-index: 1000;
}
header.active {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 1;
  backdrop-filter: blur(4px);
}
header.active .header .title h1 a img {
  width: 75px;
}
header.active .header .title h1 span {
  display: none;
}
header .header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
header .header .title {
  text-align: center;
}
header .header .title h1 {
  font-size: 1.6rem;
}
header .header .title h1 a {
  display: block;
}
header .header .title h1 a img {
  filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.4));
  width: 134px;
  transition: width 0.4s ease;
}
header .header .title h1 span {
  font-size: 14px;
  font-family: var(--font-main);
}
header .header .burger {
  position: absolute;
  left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  cursor: pointer;
}
header .header .menu {
  position: absolute;
  left: -100vw;
  top: 0;
  transition: left 0.3s ease-out;
  width: 100vw;
  height: 100vh;
  background: var(--background-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 20px;
  border: 6px solid var(--font-main-color);
}
header .header .menu.active {
  left: 0;
}
header .header .menu .close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 32px;
}
header .header .menu .logo a {
  display: block;
}
header .header .menu .logo img {
  width: 150px;
}
header .header .menu .menu-principal-container ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
header .header .menu .menu-principal-container ul li {
  padding: 20px;
}
header .header .menu .menu-principal-container ul li a {
  font-size: 1rem;
  font-weight: bold;
  transition: opacity 0.3s ease-out;
}
header .header .menu .menu-principal-container ul li a:hover {
  text-decoration: none;
  opacity: 0.8;
}
header .header .menu .menu-principal-container ul li:last-child a {
  color: var(--font-secondary-color);
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
header .header .menu .menu-principal-container ul li:last-child a::before {
  content: "\f63c";
  font: normal normal normal 16px / 1 'Lineicons';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: inherit;
}
@media screen and (min-width: 768px) {
  header .header {
    max-width: 1400px;
    margin: auto;
    position: relative;
    column-gap: 40px;
  }
  header .header .burger {
    display: none;
  }
  header .header .menu {
    position: static;
    width: auto;
    height: auto;
    border: none;
    flex-direction: row;
    background: none;
    padding: 0;
  }
  header .header .menu .close {
    display: none;
  }
  header .header .menu .logo {
    display: none;
  }
  header .header .menu .menu-principal-container ul {
    flex-direction: row;
    column-gap: 40px;
  }
  header .header .menu .menu-principal-container ul li {
    padding: 0;
  }
}
/* ---------------------------------------------------
   MAIN
   --------------------------------------------------- */
main section {
  padding: 32px 15px;
}
main section:nth-child(even) {
  background: var(--background-secondary);
}
main section.news .section-wrapper .article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
main section.news .section-wrapper .article-grid article.post:hover .post-thumbnail a {
  transform: scale(1.08);
}
main section.news .section-wrapper .article-grid article.post .post-thumbnail {
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
main section.news .section-wrapper .article-grid article.post .post-thumbnail > a {
  background-image: var(--thumb-url);
  background-size: cover;
  background-position: center;
  display: block;
  height: 100%;
  transition: transform 0.3s ease;
}
main section.news .section-wrapper .article-grid article.post .post-thumbnail .icon-link {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  font-size: 24px;
  border-radius: 8px;
  padding: 2px;
  color: var(--font-main-color);
  transition: background 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
main section.news .section-wrapper .article-grid article.post .post-thumbnail .post-category {
  position: absolute;
  left: 10px;
  top: 10px;
}
main section.news .section-wrapper .article-grid article.post .post-thumbnail .post-category a {
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
main section.news .section-wrapper .article-grid article.post .post-title {
  margin-bottom: 10px;
}
main section.news .section-wrapper .article-grid article.post .post-date {
  font-size: 0.75rem;
  margin-bottom: 5px;
}
main section.news .section-wrapper .article-grid article.post .post-excerpt p {
  display: inline;
}
main section.news .section-wrapper .article-grid article.post .post-excerpt .read-more {
  text-decoration: underline;
}
main section.news .section-wrapper .article-grid article.post:first-of-type .post-thumbnail {
  aspect-ratio: 9 / 10;
}
main section.news .section-wrapper .article-grid .concerts-sidebar {
  padding: 20px;
  border: 1px solid var(--border-main-color);
  border-radius: 8px;
}
main section.news .section-wrapper .article-grid .concerts-sidebar h3 {
  margin-bottom: 20px;
}
main section.news .section-wrapper .article-grid .concerts-sidebar .liste-concerts {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
main section.news .section-wrapper .article-grid .concerts-sidebar .liste-concerts .concert-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-main-color);
}
main section.news .section-wrapper .article-grid .concerts-sidebar .liste-concerts .concert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
main section.news .section-wrapper .article-grid .concerts-sidebar .liste-concerts .concert-item .concert-date {
  margin-bottom: 10px;
}
main section.news .section-wrapper .article-grid .concerts-sidebar .liste-concerts .concert-item address {
  margin-bottom: 10px;
}
main section.news .section-wrapper .article-grid .concerts-sidebar .liste-concerts .concert-item .concert-titre {
  font-weight: 700;
}
main section.news .section-wrapper .article-grid .concerts-sidebar .liste-concerts .concert-item .concert-link {
  margin-top: 10px;
  display: inline-block;
  text-decoration: underline;
}
main section.history p {
  margin-bottom: 12px;
  line-height: 20px;
}
main section.history p em {
  font-style: italic;
}
main section.history ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
main section.history strong {
  font-weight: 700;
}
main section.contact {
  background: var(--font-main-color);
  color: #ffffff;
}
main section.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
main section.contact form > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
main section.contact form p label {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
  width: 100%;
}
main section.contact form p label .wpcf7-form-control-wrap {
  display: inline-block;
  margin-top: 5px;
  text-transform: none;
  font-weight: 400;
  width: 100%;
}
main section.contact form p label .wpcf7-form-control-wrap[data-name="your-subject"]::before {
  position: absolute;
  right: 10px;
  content: "\eefb";
  font: normal normal normal 24px / 1 'Lineicons';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333333;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
main section.contact form p label .wpcf7-form-control-wrap input,
main section.contact form p label .wpcf7-form-control-wrap select,
main section.contact form p label .wpcf7-form-control-wrap textarea {
  background: #ffffff;
  border-radius: 8px;
  color: var(--font-main-color);
  padding: 10px 16px;
  width: 100%;
}
main section.contact form p label .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  margin-top: 5px;
}
main section.contact form p input[type="submit"] {
  background: var(--font-secondary-color);
  color: #FFFFFF;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  padding: 12px 26px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease-out;
}
main section.contact form p input[type="submit"]:hover {
  opacity: 0.8;
}
main section.breadcrumb {
  background: var(--background-secondary);
}
main section.breadcrumb p {
  font-size: 0.8rem;
}
main section.breadcrumb p a {
  text-decoration: underline;
}
main section.post-content {
  padding-top: 0;
}
main section.post-content .section-wrapper .entry-header {
  margin-bottom: 50px;
}
main section.post-content .section-wrapper .entry-header .post-thumbnail {
  margin-bottom: 20px;
}
main section.post-content .section-wrapper .entry-header .post-thumbnail img {
  width: 100%;
}
main section.post-content .section-wrapper .entry-header .entry-title {
  font-size: 20px;
  font-family: var(--font-main);
  line-height: normal;
  margin-bottom: 5px;
}
main section.post-content .section-wrapper .entry-header .entry-meta {
  font-size: 0.8rem;
}
main section.post-content .section-wrapper .entry-content h2 {
  font-size: 1.1rem;
}
main section.post-content .section-wrapper .entry-content p {
  margin-bottom: 16px;
}
main section.post-content .section-wrapper .entry-footer a {
  text-decoration: underline;
}
@media screen and (min-width: 576px) {
  main section.contact form {
    flex-direction: row;
    justify-content: center;
  }
}
@media screen and (min-width: 768px) {
  main section {
    padding: 64px 20px;
  }
  main section .section-wrapper {
    max-width: 1400px;
    margin: auto;
  }
  main section.news .section-wrapper .article-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    align-items: start;
    gap: 20px;
  }
  main section.news .section-wrapper .article-grid article.post {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  main section.news .section-wrapper .article-grid article.post:first-of-type .post-thumbnail {
    aspect-ratio: unset;
  }
  main section.news .section-wrapper .article-grid article.post.post-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  main section.news .section-wrapper .article-grid article.post.post-2 {
    grid-column: 2;
    grid-row: 1;
  }
  main section.news .section-wrapper .article-grid article.post.post-3 {
    grid-column: 2;
    grid-row: 2;
  }
  main section.news .section-wrapper .article-grid article.post .post-thumbnail {
    aspect-ratio: unset;
    height: 100%;
    min-height: 120px;
  }
  main section.news .section-wrapper .article-grid article.post .post-title {
    margin-bottom: 5px;
  }
  main section.news .section-wrapper .article-grid article.post .post-excerpt {
    margin-bottom: 5px;
  }
  main section.news .section-wrapper .article-grid .concerts-sidebar {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
  main section.breadcrumb {
    padding: 32px 20px;
  }
  main section.breadcrumb .section-wrapper {
    max-width: 1024px;
  }
  main section.post-content .section-wrapper {
    max-width: 1024px;
  }
}
@media screen and (min-width: 1024px) {
  main section {
    padding: 64px 25px;
  }
  main section.news .section-wrapper .article-grid {
    grid-template-columns: 1.2fr 1.2fr 1fr;
  }
  main section.news .section-wrapper .article-grid article.post.post-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  main section.news .section-wrapper .article-grid article.post.post-2 {
    grid-column: 2;
    grid-row: 1;
  }
  main section.news .section-wrapper .article-grid article.post.post-3 {
    grid-column: 2;
    grid-row: 2;
  }
  main section.news .section-wrapper .article-grid article.post .post-thumbnail {
    min-height: 200px;
  }
  main section.news .section-wrapper .article-grid .concerts-sidebar {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  main section.breadcrumb {
    padding: 32px 25px;
  }
  main section.post-content .section-wrapper .entry-content h2 {
    font-size: 1.6rem;
  }
}
