/* -------------------------------- */
/* ------------  PAGE  ------------ */
/* -------------------------------- */

main {
  padding-top: 5rem;
  background-color: var(--color-4);
}
main > *:first-child {
  padding-top: 1rem;
}
@media (max-width: 600px) {
  main > *:first-child {
    padding-top: 0;
  }
}
main > *:last-child {
  padding-bottom: 4rem;
}

/* Presentation */
.section-presentation {
  padding-top: max(2rem,4vw);
}
:is(.section-presentation, .section-presentation-films, .section-presentation-dessins, .section-presentation-divers, .section-presentation-ateliers) .btn {
  margin-top: 1rem;
  margin-right: 1rem;
}
:is(.section-presentation, .section-presentation-films, .section-presentation-dessins, .section-presentation-divers, .section-presentation-ateliers) .container {
  display: grid;
  column-gap: 5rem;
  row-gap: 3rem;
}
:is(.section-presentation-films, .section-presentation-dessins, .section-presentation-divers, .section-presentation-ateliers) .container {
  max-width: min(1032px, 100%);
  margin: max(1rem,3vw) auto;
  padding: max(1rem,2vw) 1rem;
  background-color: var(--color-light);
  border: 1px solid hsl(0 8 90%);
  border-radius: .25rem;
}
.section-presentation .container {
  grid-template-columns: 1fr 1fr;
}
:is(.section-presentation-dessins, .section-presentation-ateliers) .container {
  grid-template-columns: 3fr 2fr;
}
:is(.section-presentation-dessins, .section-presentation-ateliers) .presentation-texte {
  padding-left: max(1rem, 2.5vw);
}
:is(.section-presentation-films, .section-presentation-divers) .container {
  grid-template-columns: 2fr 3fr;
}
:is(.section-presentation-films, .section-presentation-divers) .presentation-texte {
  padding-right: max(1rem, 2.5vw);
}
.section-presentation .container {
  align-items: center;
  padding-top: max(1rem,1vw);
}
@media (max-width: 600px) {
  :is(.section-presentation-films, .section-presentation-dessins, .section-presentation-divers, .section-presentation-ateliers) {
    padding: 0 1rem;
  }
  :is(.section-presentation, .section-presentation-films, .section-presentation-dessins, .section-presentation-divers, .section-presentation-ateliers) .container {
    grid-template-columns: 1fr;
  }
}
.section-presentation h1 {
  padding-top: 0;
  font-size: 2rem;
  text-align: left;
}
@media (max-width: 600px) {
  .section-presentation h1 {
    font-size: 1.75rem;
  }
}
/* .presentation-image {
  background-color: var(--color-4);
} */
.section-presentation .presentation-image img {
  margin-left: auto;
}
@media (max-width: 600px) {
  section:not(.section-presentation) .presentation-image {
    grid-area: 1 / 1;
  }
}
/* .presentation-image img {
  aspect-ratio: 1;
  clip-path: polygon(83.200% 25.800%, 85.100% 28.100%, 86.900% 30.400%, 88.600% 32.700%, 90.200% 35.000%, 91.800% 37.300%, 93.200% 39.600%, 94.500% 41.900%, 95.800% 44.100%, 96.900% 46.400%, 97.800% 48.700%, 98.600% 51.000%, 99.300% 53.300%, 99.800% 55.700%, 100.000% 58.100%, 100.100% 60.500%, 100.000% 63.000%, 99.700% 65.400%, 99.200% 67.800%, 98.500% 70.200%, 97.600% 72.600%, 96.500% 75.000%, 95.200% 77.400%, 93.700% 79.700%, 92.100% 81.900%, 90.300% 84.000%, 88.300% 86.100%, 86.200% 88.100%, 84.000% 89.900%, 81.600% 91.600%, 79.100% 93.200%, 76.500% 94.600%, 73.800% 95.800%, 71.000% 96.900%, 68.000% 97.900%, 65.000% 98.600%, 61.900% 99.200%, 58.800% 99.600%, 55.700% 99.800%, 52.600% 99.900%, 49.500% 99.800%, 46.400% 99.600%, 43.400% 99.200%, 40.400% 98.600%, 37.500% 97.900%, 34.700% 97.000%, 32.000% 96.000%, 29.400% 94.800%, 27.000% 93.500%, 24.700% 92.000%, 22.300% 90.500%, 20.400% 88.800%, 18.600% 87.000%, 16.900% 85.100%, 15.400% 83.000%, 14.000% 80.800%, 12.600% 78.600%, 11.400% 76.300%, 10.200% 74.000%, 8.900% 71.300%, 8.000% 68.800%, 7.100% 66.300%, 6.200% 63.800%, 5.400% 61.200%, 4.600% 58.600%, 3.800% 55.900%, 3.100% 53.200%, 2.400% 50.500%, 1.700% 47.800%, 1.100% 45.200%, 0.700% 42.500%, 0.400% 39.900%, 0.200% 37.300%, 0.000% 34.700%, 0.100% 32.200%, 0.300% 29.700%, 0.700% 27.300%, 1.300% 24.900%, 2.100% 22.600%, 3.100% 20.300%, 4.300% 18.100%, 5.800% 16.000%, 7.500% 14.000%, 9.400% 12.100%, 11.500% 10.300%, 13.800% 8.600%, 16.200% 7.000%, 18.800% 5.600%, 21.500% 4.300%, 24.300% 3.100%, 27.200% 2.200%, 30.100% 1.400%, 33.100% 0.800%, 36.000% 0.400%, 38.900% 0.200%, 41.800% 0.200%, 44.600% 0.400%, 47.400% 0.800%, 50.200% 1.500%, 52.900% 2.400%, 55.500% 3.400%, 58.100% 4.600%, 60.600% 6.000%, 63.100% 7.600%, 65.500% 9.200%, 67.800% 11.000%, 70.100% 12.900%, 72.300% 14.900%, 74.500% 17.000%, 76.600% 19.200%, 78.600% 21.400%, 80.700% 23.600%, 83.200% 25.800%);
} */

/* Sections dernières créations */
.section-actu {
  padding: 3rem 0 max(2rem,3vw);
  background-color: var(--color-light);
}
.section-actu h2 {
  padding-bottom: 2rem;
  text-align: center;
}
.vignette-actu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 1rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 1rem;
}
@media (max-width: 600px) {
  .vignette-actu {
    grid-template-columns: 1fr;
  }
}
.vignette-actu-image img {
  width: auto;
  max-height: 400px;
  margin-left: auto;
}
.vignette-actu h3 {
  padding-bottom: 1rem;
  font-family: "Special Elite", system-ui;
  font-size: 1.5rem;
}
@media (max-width: 600px) {
  .vignette-actu-image img {
    margin: auto;
  }
  .vignette-actu h3 {
    font-size: 1.25rem;
  }
}
.vignette-actu .vignette-liste-categories {
  padding: 0 0 1rem;
}
.vignette-actu p {
  padding-bottom: 2rem;
}

/* Instagram */
.section-instagram {
  padding: 3rem 0 max(2rem,3vw);
  background-color: var(--color-4);
}
.section-instagram h2 {
  padding-bottom: 2rem;
  text-align: center;
}
#sbi_images {
  margin-bottom: 1rem;
}
.sbi_item {
  position: relative;
  border-radius: .5rem;
  box-shadow: 0 0 .5rem #1111;
}
.sbi_item::after {
  position: absolute;
  inset: 0;
  background-color: var(--color-dark);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition-duration: .3s;
}
.sbi_item:is(:hover,:focus,:active)::after {
  opacity: .4;
}
#sb_instagram #sbi_load :is(.sbi_load_btn, .sbi_follow_btn a) {
  margin-bottom: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50% 40%/40% 50%;
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 500;
  transition-duration: .3s;
}
#sb_instagram #sbi_load :is(.sbi_load_btn, .sbi_follow_btn a):is(:hover,:focus,:active) {
  background-color: var(--color-2) !important;
}

/* Section contact */
.section-contact {
  padding-top: 3rem;
  background-color: var(--color-light);
}
.section-contact h2 {
  text-align: center;
}

/* -------------------------------- */
/* -------  PAGE D'ARCHIVE -------- */
/* -------------------------------- */
.section-archives {
  padding: 2rem 0 4rem;
}
.section-archives .container {
  max-width: min(1432px, 100%);
}
.titre-archive {
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  background-color: var(--color-medium);
}
.titre-archive .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  background-color: var(--color-dark);
  color: var(--color-light);
}
.titre-archive h1 {
  padding: 0;
}
.liste-categories {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 2rem;
  row-gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1rem 2rem;
  list-style: none;
}
.taxonomie-active {
  background-color: var(--color-2);
}
@media (max-width: 600px) {
  .liste-categories {
    column-gap: 1rem;
  }
  .liste-categories .btn {
    padding: .5rem 1rem;
    font-size: .9rem;
  }
}
.vignette {
  max-width: 446px;
  background-color: var(--color-light);
  border: 1px solid var(--color-medium);
  border-radius: .25rem;
  box-shadow: .5rem .5rem 0 var(--color-3);
}
.vignette h2 {
  padding: .75rem 1rem;
  font-size: 1.5rem;
  text-align: center;
}
@media (max-width: 600px) {
  .vignette h2 {
    font-size: 1.25rem;
  }
}
.vignette-image {
  height: 250px;
  margin-bottom: .5rem;
  background-color: var(--color-4);
  overflow: hidden;
}
.vignette-image img {
  height: 250px;
  margin: auto;
  transition: .5s;
}
:is(.vignette, .vignette-dessins) a:is(:hover,:focus,:active) .vignette-image img {
  transform: scale(1.05);
}
.vignette-liste-categories {
  padding: .5rem 1rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.vignette-categorie {
  padding: 0 .75rem;
  background-color: var(--color-3);
  border-radius: .25rem;
  color: var(--color-1);
  font-size: .9rem;
  font-weight: 500;
}
.vignette-description {
  padding: .5rem 1rem;
}
.vignette-description p {
  line-height: 1.5;
}
.vignette-lien {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1rem 1rem;
  font-weight: bold;
}
.vignette-lien svg {
  width: 1.5rem;
  transition: .3s;
}
.vignette-lien svg .st0 {
  stroke: var(--color-1);
}
.vignette-lien:is(:hover,:focus,:active) {
  color: var(--color-dark);
}
.vignette-lien:is(:hover,:focus,:active) svg {
  transform: translateX(1rem);
}
.vignette-lien:is(:hover,:focus,:active) svg .st0 {
  stroke: var(--color-dark);
}

/* -------------------------------- */
/* --  Page d'archive des films  -- */
/* -------------------------------- */
.liste-categories li:has(a[href*="fiction"]){
  order: 1;
}
.liste-categories li:has(a[href*="documentaire"]){
  order: 2;
}
.liste-categories li:has(a[href*="clip"]){
  order: 3;
}

/* -------------------------------- */
/* -  Page d'archive des dessins  - */
/* -------------------------------- */
.liste-categories-dessins {
  margin-top: 1rem;
}
.vignette .description-categorie {
  padding: 0 1rem 1rem;
}
.vignette-dessin {
  display: flex;
  align-items: center;
  max-width: 350px;
  overflow: hidden;
}
.sans-dessin {
  padding: 1rem;
  background-color: var(--color-4);
}
.btn-dessin {
  transition: .3s;
}
.btn-dessin:is(:hover,:focus,:active) {
  transform: scale(1.1);
}
.section-archives__description {
  max-width: 80ch;
  margin: 0 auto 2rem;
  text-align: center;
}

/* -------------------------------- */
/* - Page d'archive des ateliers -- */
/* -------------------------------- */
.archive-atelier__presentation p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  text-align: center;
}

/* -------------------------------- */
/* ------------  BLOG  ------------ */
/* -------------------------------- */
.blog-presentation {
  margin-bottom: 2rem;
}
.blog-presentation p {
  max-width: min(900px, 100%);
  margin: 0 auto;
  font-size: 1.25rem;
  text-align: center;
}

/* -------------------------------- */
/* --------  PAGE SINGLE  --------- */
/* -------------------------------- */
.single-header {
  max-width: min(900px, 100%);
  margin: auto;
  text-align: center;
}
.single-title-bloc {
  padding-bottom: 2rem;
}
.h1-single {
  padding-bottom: 0;
}
.single-header .chapeau p {
  max-width: unset;
  font-size: 1.25rem;
}
@media (max-width: 600px) {
  .single-header .chapeau p {
    font-size: 1rem;
  }
}
.video-iframe {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}
.single-presentation-film {
  display: grid;
  grid-template-columns: 2fr 3fr;
  column-gap: max(2rem,3vw);
  justify-content: space-between;
}
@media (max-width: 600px) {
  .single-presentation-film {
    grid-template-columns: 1fr;
  }
}
.image-principale-single {
  width: auto;
  /* max-height: 33vh; */
  margin: 0 auto .5rem;
}
.image-principale-single--dessin {
  max-height: 85vh;
}
.image-principale-single-caption {
  text-align: center;
}
.container-single .vignette-liste-categories {
  max-width: max-content;
  margin: auto;
  padding: 0 0 2rem;
}
.single-content img {
  margin: auto;
}
.single-presentation:not(.single-presentation-film) .single-content {
  max-width: 600px;
  margin: auto;
}
.navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}
.navigation .btn {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navigation .btn:first-child::before,
.navigation .btn:last-child:not(:only-child)::after {
  width: 1.5rem;
  content: url("../images/arrow.svg");
  line-height: 0;
}
.navigation .btn:first-child::before {
  transform: scale(-1,1);
}
@media (max-width: 600px) {
  .navigation .btn span {
    border: 0;
    padding: 0;
    margin: 0;
    position: absolute !important;
    height: 1px; 
    width: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.single-images-film {
  max-width: max-content;
  margin: 0 auto 1rem;
}
@media (max-width: 600px) {
  .single-images-film-container {
    width: 100vw;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 1rem;
    /* padding: 0 1rem; */
    padding-left: 1rem;
    display: flex;
    column-gap: 1rem;
    overflow-x: scroll;
  }
  .single-images-film img {
    max-width: calc(90vw - 2rem);
  }
}
/* Les sauts de ligne du wysiwyg créent des div vides */
.single-content div:empty {
  min-height: 1rem;
}
/* Correction de la taille des div du wysiwyg contenant des images */
.single-content div {
  width: unset !important;
  line-height: 1.75;
}
/* Prise en compte de l'alignement du contenu */
.single-content .aligncenter {
  margin: auto;
}

/* -------------------------------- */
/* -----  Page single dessin  ----- */
/* -------------------------------- */
.container-single-dessin {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  row-gap: 2rem;
}
.single-dessin__nav {
  display: grid;
  place-content: center;
}
.single-dessin__nav img {
  width: 7rem;
  height: 3rem;
}
.single-dessin__nav a[rel="prev"] img {
  transform: scaleX(-1);
}
@media (max-width: 600px) {
  .container-single-dessin {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .single-presentation {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
  }
  .single-dessin__nav {
    grid-row: 2 / 3;
  }
}

/* -------------------------------- */
/* -  Page résultats de recherche - */
/* -------------------------------- */
.resultat-recherche {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  text-align: center;
}
