@layer reset, main, typo, layout, traductions, components, utils;
@layer reset {

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

  /* Prevent font size inflation */
  html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  /* Remove default margin in favour of better control in authored CSS */
  body, h1, h2, h3, h4, p,
  figure, blockquote, dl, dd {
    margin-block-end: 0;
  }

  /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
  ul[role='list'],
  ol[role='list'] {
    list-style: '';
  }

  /* Set core body defaults */
  body {
    min-height: 100vh;
    line-height: 1.5;
  }

  /* Set shorter line heights on headings and interactive elements */
  h1, h2, h3, h4,
  button, input, label {
    line-height: 1.1;
  }

  /* Balance text wrapping on headings */
  h1, h2,
  h3, h4 {
    text-wrap: balance;
  }

  /* A elements that don't have a class get default styles */
  a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
  }

  /* Make images easier to work with */
  img,
  picture {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* Inherit fonts for inputs and buttons */
  input, button,
  textarea, select {
    font-family: inherit;
    font-size: inherit;
  }

  /* Anything that has been anchored to should have extra scroll margin */
  :target {
    scroll-margin-block: 5ex;
  }
}@layer main {
  :root {
    --clr-jaune: #fdd44f;
    --clr-orange: #ff7200;
    --clr-turquoise: #7bddd8;
    --clr-bleu: #0067c6;
    --clr-texte: black;

    --ff-r: museo-sans-rounded, sans-serif; 
    --ff-t: parisine-plus-std-gris, sans-serif;
  } 

  ::selection {
    background-color: var(--clr-bleu);
    color: white;
  }

  body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--ff-r);
  }
} @layer typo {
  body {
    text-wrap: pretty;
    font-size: 1.2rem;
    font-family: var(--ff-t);
    font-weight: 400;
    font-style: normal;
  }
  
  h1,h2,h3 {
    font-family: novecento-sans, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-wrap: balance;
  }
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 2.4rem;
  }
  h3 {
    font-size: 1.8rem;
  }
  
  .texte-right {
    text-align: right;
  }
  
  .ff-r {
    font-family: parisine-plus-std-gris, sans-serif;
  }
  .ff-t {
    font-family: novecento-sans, sans-serif;
  }
}@layer layout {
  .hero {
    position: relative;
    max-width: 1360px;
    margin: 40px auto 60px;
    padding-inline: clamp(20px, 5vw, 40px);

    @media (width >= 900px) {
      margin: 80px auto;
    }
  }

  .hero-img {
    position: relative;
    display: grid;
    justify-items: flex-end;

    @media (width >= 900px) {
      max-width: 780px;
      margin-top: -100px;
      margin-left: 140px;
    }
    @media (width >= 1240px) {
      margin-top: -140px;
    }

    > img {
      width: 100%;
    }
  }

  .date-lieu {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    background: white;
    opacity: 0;
    transform: translateY(-5px);
    animation: fadeIn 500ms 600ms ease-out forwards;

    @media (width >= 1240px) {
      margin-right: 20%;
    }
  }

  .infos-pratiques-wrapper {
    padding: 30px 20px;
    padding-top: 0;
    padding-inline: 0;
    background: var(--clr-turquoise);

    & + & {
      margin-top: 40px;
    }

    h2 {
      margin-block: 0 30px;
      margin-block: 0 30px;
      background: white;
      border: 1px solid var(--clr-turquoise);
      text-align: center;
      padding: 0.25em 20px;
    }
  }

  .infos-pratiques {
    margin-top: 30px;
    padding-inline: 20px;

    h3:first-child {
      margin-top: 0;
    }

    ul {
      padding-left: 0.9em;
    }

    li ul {
      padding-left: 1em;
    }
  }

  .autour-de-l-expo {
    margin-bottom: 0;
    clear: both;
  }

  .site-footer {
    position: relative;
    display: grid;
    align-items: flex-end;
    gap: 0 60px;
    max-width: 1820px;

    @media (width >= 1240px) {
      grid-template-columns: minmax(40%, 730px) auto;
    }
  }

  .presse {
    .site-main {
      margin-top: 80px;
    }

    .site-footer {
      margin-top: 40px;
    }
  }
}
@layer traductions {
  .qr {

    .logo-podium svg {
      --logo-podium-color: var(--clr-turquoise) !important;
    }

    .site-header {
      margin-top:20px;
    }

    .content {
      margin-block: 80px;
    }

    .site-footer {
      margin-top:80px;
    }

    .qr-nav {
      display: flex;
      justify-content: center;
      gap: 40px;
      max-width: 80%;
      margin-block: 20px;
      margin-inline: auto;

      a {
        display: grid;
        place-content: center;
        width: 44px;
        height: 44px;
        line-height: 1;
      }

      .prev {
        transform: rotate(-180deg);
      }
    }

    h1 {
      margin-top:10px;

      small {
        font-size: 50%;
      }
    }

    h2 {
      margin-bottom: 40px;

      small {
        font-size: 70%;
      }
    }

    h3 {
      margin-block:40px;
    }

    h1,
    h2,
    h3 {
      font-family: var(--ff-t);
      text-transform: uppercase;
      word-break: break-word;
    }
  }

  blockquote {
    display: flex;
    align-items: stretch;
    gap: 1ch;
    max-width: 80%;
    margin-right: 0;
    margin-left: auto;
    line-height: 1.2;
    text-wrap: pretty;
    font-weight: bold;
    font-size: 1.6rem;
    text-align: right;

    &.bloc {
      position: relative;
      padding-right: 3ch;
    }

    &.bloc::before {
      content:'';
      position: absolute;
      display: block;
      right:0;
      top:0;
      bottom:0;
      width:1.5ch;
    }

    &.turquoise::before {background-color: var(--clr-turquoise);}
    &.jaune::before {background-color: var(--clr-jaune);}
    &.bleu::before {background-color: var(--clr-bleu);}
    &.orange::before {background-color: var(--clr-orange);}
  }

  .cube {
    display: inline-block;
    width: 2ch;
    height: 2ch;
    margin-right: 1ch;
  }

  hr {
    display: block;
    margin-block: 60px;
  }

  .zone {
    display: grid;
    place-content: center;
    place-items: center;
    width: 3.5ch;
    margin-block: 30px 0;
    aspect-ratio: 1 / 1;
    border: 1px solid currentColor;
    font-family: Georgia,Times,Times New Roman,serif;
  }

  .zone-turquoise {
    .zone, hr {color:var(--clr-turquoise);}
  }
  .zone-jaune {
    .zone, hr {color:var(--clr-jaune);}
  }
  .zone-bleu {
    .zone, hr {color:var(--clr-bleu);}
    .video-num {color:white;}
  }
  .zone-orange {
    .zone, hr {color:var(--clr-orange);}
    .video-num {color:white;}
  }

  .video-num {
    display: grid;
    place-content: center;
    margin-top: 10px;
    padding:0.5em;
    border-radius:50%;
    width: 3ch;
    height: 3ch;
    font-size: 1.4rem;
    font-weight: bold;
  }

  .typewriter {
    font-family: 'Courier New', Courier, monospace;
  }
}
@layer components {
  .button,
  button {
    display: inline-block;
    padding: 0.4em 1.4em;
    border: 2px solid currentColor;
    border-radius: 10px;
    background: var(--clr-jaune);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-family: var(--ff-t);
    color: var(--clr-texte);
    transition: background-color 100ms ease-in;

    &:hover,
    &:focus {
      background-color: white;
    }
    &:active {
      transform: scale(0.98);
    }
  }

  .language-nav {

    ul {
      display:flex;
      justify-content: center;
      gap:10px;
      margin-block: 10px 0;
      padding:0;
      list-style: "";
    }
    a {
      display: grid;
      place-content: center;
      width:44px;
      height: 44px;
      background: white;
      text-decoration: none;
      font-size: 1rem;
      font-weight: 400;

      &:hover,
      &:focus {
        outline:1px solid currentColor;
        font-weight: bold;
      }

      &.active {
        color: black;
        font-weight: bold;
        outline:1px solid currentColor;
      }
    }
  }

  .logo-la-premiere {
    margin-top: 30px;
    margin-bottom: -15px;
    margin-left: auto;
    width: 70px;

    @media (width >= 1240px) {
      margin-right: 200px;
      width: 85px;
    }
  }

  .logo-podium {
    position: relative;
    display: block;
    width: min(380px, 90%);
    z-index: 3;

    &:hover {
      svg {
        --logo-podium-color: var(--clr-turquoise);
      }
    }

    svg {
      --logo-podium-color: var(--clr-jaune);
      width: 100%;
      height: auto;
    }
  }

  .hero-photo {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeIn 400ms 300ms ease-out forwards;
  }

  .hero-bg {
    position: absolute;
    opacity: 0;
    animation: fadeIn 800ms 200ms ease-out forwards;
  }

  .date {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
  }
  .date time {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 0.8lh);
    grid-template-rows: repeat(2, 0.8lh);
    padding-inline: 0.6em 0.4em;
    outline: 2px solid var(--clr-jaune);
    outline-offset: -0.35em;
    line-height: 1;
    font-size: 4rem;
    font-weight: bold;

    @media (width >= 900px) {
      font-size: 6rem;
    }
  }
  .date-debut {
    position: relative;

    &::before {
      --unit: 90px;
      content: "";
      position: absolute;
      top: calc(-1 * var(--unit));
      left: 0;
      display: block;
      width: 2px;
      height: calc(50% + var(--unit));
      background-color: var(--clr-jaune);
    }

    @media (width >= 560px) {
      &::before {
        --unit: 100px;
      }
    }

    @media (width >= 768px) {
      &::before {
        --unit: 120px;
      }
    }

    @media (width >= 900px) {
      &::before {
        --unit: 140px;
      }
    }

    &::after {
      content: "";
      position: absolute;
      bottom: 50%;
      left: 0;
      display: block;
      width: 23px;
      height: 2px;
      background-color: var(--clr-jaune);
    }
  }
  .date-fin {
    position: relative;
    z-index: -1;
    margin-top: 80px;
    margin-left: -120px;

    @media (width >= 900px) {
      margin-left: -95px;
    }

    &::before {
      content: ">";
      font-family: var(--ff-t);
      font-weight: 900;
      position: absolute;
      top: 20px;
      left: -23px;
      font-weight: 900;
      color: var(--clr-turquoise);
    }

    @media (width >= 900px) {
      &::before {
        top: 40px;
        font-size: 90%;
      }
    }

    & .annee {
      color: var(--turquoise);
    }
  }
  .date .date-fin .annee {
    color: var(--clr-turquoise);
  }
  .date span {
    align-self: center;
    justify-self: center;
    position: relative;
    padding-inline: 4px;
    background: white;
    z-index: 2;
  }
  .date .mois {
    grid-row: 2;
    padding: 0.1em;
    background: white;
    font-size: 50%;
    z-index: 2;
  }
  .date .annee {
    grid-column: 2;
    grid-row: span 2;
    margin-top: 0;
    transform-origin: center;
    transform: rotate(270deg);
    font-weight: 400;
    font-size: 70%;
    background: white;
    line-height: 0.6;
    color: var(--clr-jaune);
    padding-block: 0px 9px;
  }

  .lieu {
    width: 100%;
    margin-top: 10px;
    text-align: right;
    font-size: 2.3rem;
    font-weight: bold;

    @media (width >= 900px) {
      margin-right: 1.6em;
      font-size: 3.2rem;
    }
  }

  .logo-tm {
    position: relative;
    display: block;
    width: min(33vw, 200px);

    @media (width >= 600px) {
      margin-top: -80px;
    }

    &:hover,
    &:focus {
      svg {
        --logo-tm-color: #bc134f;
      }
    }

    svg {
      --logo-tm-color: #1d1d1b;
      width: 100%;
      height: auto;
    }
  }

  .texte-intro {
    font-size: 1.32rem;

    > :first-child {
      margin-top: 0;
    }
    strong {
      font-size: 1.46rem;
    }
  }

  .bloc-jaune {
    width: min(54ch, 100%);
    padding-inline: 0;
    margin-left: 0;
    border: 1px solid var(--clr-orange);

    h2 {
      display: flex;
      flex-direction: column;
      gap: 0.05em;
      margin: 0 auto;
      padding: 0.25em 20px;
      background-color: var(--clr-jaune);
      text-align: center;
      color: var(--clr-texte);

      small {
        font-size: 60%;
      }
    }

    h3 {
      margin-top: 30px;
    }
  }
  .bloc-jaune-texte {
    padding: 20px;

    h3 {
      text-wrap: initial;

      &:first-of-type {
        margin-top: 0;
      }
    }
  }
  .bloc-jaune-dates {
    margin-top: 0;
    text-transform: uppercase;

    small {
      text-transform: lowercase;
    }
  }
  .bloc-jaune-infos {
    margin-block: 20px;
    margin-left: -20px;
    padding-left: 15px;
    border-left: 5px solid var(--clr-turquoise);
    font-size: 1rem;

    > * {
      margin-top: 0;
    }
  }

  .illu-interactive {
    position: relative;
    display: grid;
    order: -5;

    img {
      width: 100%;
    }
  }
  .illu-interactive-bg {
    position: absolute;
  }
  .illu-interactive-photo {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(40px);
    animation: fadeIn 400ms ease-out both;
    animation-timeline: view();
    animation-range: entry 30% cover 70%;

    @media (min-width: 1640px) {
      transform: translateX(100px);
    }
  }

  .visite-animee {
    @media (width >= 1640px) {
      transform: translateX(-160px);
    }

    .illu-interactive {
      @media (width >= 900px) {
        order: 2;
      }
    }
  }

  .offre-combinee {
    font-size: 0.9rem;
  }

  .groupes-intro {
    max-width: 32ch;
    margin-bottom: 30px;
    font-size: 1.32rem;
  }

  .animation-tout-public {
    @media (width >= 1640px) {
      transform: translateX(160px);
    }

    .illu-interactive-bg {
      rotate: 180deg;
    }

    .illu-interactive-photo {
      transform: translateX(-40px);

      @media (width >= 1640px) {
        transform: translateX(-100px);
      }
    }
  }

  .dans-l-expo {
    position: relative;
    display: flex;
    gap: 60px;
    flex-direction: column;
  }

  .dans-l-expo__intro {
    display: flex;
    gap: 150px 60px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    width: 1330px;
    margin-inline: auto;
    padding-inline: 20px;
    max-width: 100%;
    overflow: clip;
  }

  .dans-l-expo__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-inline: auto;
    padding-inline: 20px;
    max-width: 1560px;

    /*@media (min-width: 900px) {
      grid-template-columns: repeat(2, 1fr);
    }
    @media (min-width: 1640px) {
      grid-template-columns: repeat(4, 1fr);
    }*/
  }

  .dans-l-expo__item {
    max-width: 44ch;
    margin-top: 40px;
    clear: both;

    @media (max-width: 899px) {
      opacity: 0;
      transform: translateX(-20px);
      animation: fadeIn 400ms ease-out both;
      animation-timeline: view();
      animation-range: entry-crossing 50%;
    }

    img {
      max-width: 140px;

      @media (min-width: 600px) {
        float: left;
        shape-outside: circle(50%);
        margin-right: 1em;
      }
    }

    h3 {
      margin-top: 10px;

      @media (min-width: 600px) {
        margin-top: 0;
      }
    }

    p {
      margin-top: 10px;
    }
  }

  .plateau {
    display: block;
    width: 800px;
    max-width: 90vw;
  }

  .dauphin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    border-radius: 50%;
    aspect-ratio: 1/1;
    width: 20rem;
    height: 20rem;
    background-color: var(--clr-jaune);
    text-align: center;
    font-size: 1.1rem;
    color: var(--clr-texte);
    animation: rotate 600ms ease-out both;
    animation-timeline: view();
    animation-range: entry 50% cover 50%;

    @supports (animation-timeline: view()) {
      transform: rotate(-10deg);
    }

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      display: block;
      border-radius: 50%;
      background-color: var(--clr-jaune);
      z-index: 1;
      opacity: 0.6;
    }

    p {
      position: relative;
      margin: 0;
      padding: 1em;
      z-index: 2;
    }

    img {
      position: absolute;
      bottom: 0;
      right: 0;
      top: -107px;
      right: -110px;
      mix-blend-mode: soft-light;
    }
  }

  .evenements {
    position: relative;
    display: grid;
    align-items: baseline;
    justify-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 2240px;
    margin-block: 60px;
    margin-inline: auto;
    padding-inline: 40px;
    overflow: clip;

    @media (min-width: 900px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1240px) {
      grid-template-columns: repeat(3, 1fr);
    }

    @media (min-width: 1640px) {
      grid-template-columns: repeat(4, 1fr);
    }

    article {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 5px;
      max-width: 380px;
      z-index: 3;

      @media (max-width: 899px) {
        opacity: 0;
        transform: translateX(-20px);
        animation: fadeIn 400ms ease-out both;
        animation-timeline: view();
        animation-range: entry-crossing 50%;
      }

      @media (min-width: 900px) {
        max-width: 100%;
      }

      &:nth-child(2) {
        animation-delay: 200ms;
      }
      &:nth-child(3) {
        animation-delay: 400ms;
      }
      &:nth-child(3) {
        animation-delay: 600ms;
      }
      &:nth-child(4) {
        animation-delay: 800ms;
      }
      &:nth-child(5) {
        animation-delay: 1000ms;
      }
      &:nth-child(6) {
        animation-delay: 1200ms;
      }
      &:nth-child(7) {
        animation-delay: 1400ms;
      }
      &:nth-child(8) {
        animation-delay: 1600ms;
      }

      & > * + * {
        margin-block: 0;
      }
    }

    a {
      display: inline-block;
      width: fit-content;
      text-decoration: none;
      overflow: clip;
    }

    :has(a:is(:hover, :focus)) {
      h3 {
        background-size: 100% 100%;
      }

      img {
        transform: scale(0.99);
        transform-origin: left bottom;
      }
    }

    time {
      font-weight: bold;
    }
  }

  .evenement-img {
    position: relative;
    line-height: 1;

    img {
      width: 100%;
      outline: 2px solid var(--clr-jaune);
      outline-offset: -2px;
      padding: 8px;
      background-color: white;
      transform-origin: left bottom;
      transition: transform 150ms ease-out;
    }

    p {
      position: absolute;
      left: 8px;
      bottom: 18px;
      background: var(--clr-turquoise);
      padding: 0.2em;
      font-size: 1rem;
    }
  }

  .evenement-title {
    margin-top: 5px;

    a::after {
      content: "";
      display: block;
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    h3 {
      position: relative;
      display: inline;
      background-image: linear-gradient(
        to right,
        var(--clr-jaune) 0%,
        var(--clr-jaune) 100%
      );
      background-repeat: no-repeat;
      background-size: 0% 100%;
      transition: background-size 150ms ease-out;
      -webkit-box-decoration-break: clone;
      box-decoration-break: clone;
    }
  }

  .evenement-lieu {
    font-size: 90%;
  }

  .site-footer__inner {
    position: relative;
    z-index: 5;
    background-color: white;

    @media (width < 1240px) {
      border-top: 2px solid var(--clr-turquoise);
    }
  }

  .sponsors {
    padding-inline: 20px;
  }

  .soutien {
    text-align: center;

    @media (min-width: 1840px) {
      text-align: left;
    }
  }

  .sponsors-list {
    margin-block: 20px 0;
    padding-inline: 20px;

    ul {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      align-items: center;
      padding-inline: 0;
      list-style: "";
    }

    a:is(:hover, :focus) {
      img {
        opacity: 0.8;
      }
    }

    img {
      height: 50px;
      width: auto;
      transition: opacity 100ms ease-out;
    }

    .sponsors-list__big {
      width: 100%;

      img {
        height: 100px;
      }
    }
  }

  .sponsors-list__small {
    max-width: 940px;
    margin-inline: auto;
  }

  .site-footer-presse {
    margin-block: 40px;
    text-align: center;

    @media (min-width: 1840px) {
      margin-block: 60px;
      margin-right: 50px;
      margin-left: auto;
      text-align: right;
    }
  }

  .presse-link {
    background: white;
    border: 1px solid;
    font-weight: 200;
    font-size: 1rem;
    transition:
      color 150ms ease-out,
      background-color 150ms ease-out,
      border 150ms ease-out;

    @media (min-width: 1840px) {
      translate: 0 100px;
    }

    &:hover,
    &:focus {
      background-color: black;
      border: 1px solid black;
      color: white;
    }
  }

  .plongeuse {
    margin-left: -40px;
    transform: translate(-60px, 60px);
    animation: fadeIn 800ms ease-out both;
    animation-timeline: view();
    animation-range: entry-crossing 50%;
  }

  .sponsors-txt {
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
    text-wrap: pretty;

    @media (min-width: 1840px) {
      text-align: left;
    }

    small {
      font-size: 0.9rem;
    }
  }
}
@layer utils {
  .wrapper {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
  }

  .grid-auto {
    display: grid;
    gap: 40px 60px;

    @media (width >= 900px) {
      grid-auto-flow: column;
      grid-auto-columns: 1fr;
      align-items: center;
    }
  }

  .vertical-space {
    margin-block: 100px;

    @media (width >= 1240px) {
      margin-block: 200px;
    }
  }

  .cache:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .gap {
    gap: 40px;
  }

  .clr-jaune {
    color: var(--clr-jaune);
  }
  .clr-orange {
    color: var(--clr-orange);
  }
  .clr-turquoise {
    color: var(--clr-turquoise);
  }
  .clr-bleu {
    color: var(--clr-bleu);
  }
  .clr-texte {
    color: var(--clr-texte);
  }

  .fond-jaune {
    background-color: var(--clr-jaune);
  }
  .fond-orange {
    background-color: var(--clr-orange);
  }
  .fond-turquoise {
    background-color: var(--clr-turquoise);
  }
  .fond-bleu {
    background-color: var(--clr-bleu);
  }

  .text-center {
    text-align: center;
  }
  .text-right {
    text-align: right;
  }
  .text-bold {
    font-weight: bold;
  }

  .text-uppercase {
    text-transform: uppercase;
  }

  .text-400 {
    font-weight: 400;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translate(0);
    }
  }

  @keyframes rotate {
    to {
      transform: rotate(0deg);
    }
  }
}
