/*
Theme Name: Chronologie
Theme URI: https://www.jiyong.eu
Author: Jiyong
Author URI: https://www.jiyong.eu
Description: Chronologie
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: -
*/

/* google-webfonts-helper  */

/* montserrat-100 - latin */
@font-face {
  font-display: swap; /* Check   for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  src: url('assets/polices/montserrat-v31-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100;
  src: url('assets/polices/montserrat-v31-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  src: url('assets/polices/montserrat-v31-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 200;
  src: url('assets/polices/montserrat-v31-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('assets/polices/montserrat-v31-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300;
  src: url('assets/polices/montserrat-v31-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('assets/polices/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('assets/polices/montserrat-v31-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('assets/polices/montserrat-v31-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 500;
  src: url('assets/polices/montserrat-v31-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('assets/polices/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 600;
  src: url('assets/polices/montserrat-v31-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('assets/polices/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  src: url('assets/polices/montserrat-v31-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('assets/polices/montserrat-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  src: url('assets/polices/montserrat-v31-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('assets/polices/montserrat-v31-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 900;
  src: url('assets/polices/montserrat-v31-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: 'Rock Salt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/polices/rock-salt-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* chiron-hei-hk-200 - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 200;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chiron-hei-hk-300 - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 300;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chiron-hei-hk-regular - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 400;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chiron-hei-hk-500 - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 500;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chiron-hei-hk-600 - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 600;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chiron-hei-hk-700 - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 700;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chiron-hei-hk-800 - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 800;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* chiron-hei-hk-900 - chinese-traditional */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Chiron Hei HK';
  font-style: normal;
  font-weight: 900;
  src: url('assets/polices/chiron-hei-hk-v5-chinese-traditional-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-serif-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Serif';
  font-style: normal;
  font-weight: 400;
  src: url('assets/polices/roboto-serif-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-serif-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Serif';
  font-style: italic;
  font-weight: 400;
  src: url('assets/polices/roboto-serif-v17-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-serif-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Serif';
  font-style: normal;
  font-weight: 700;
  src: url('assets/polices/roboto-serif-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-serif-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Serif';
  font-style: italic;
  font-weight: 700;
  src: url('assets/polices/roboto-serif-v17-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root{
    --surface:#191B1C;
    --surface-variant:#292929;
    --on-surface:#F8EDE7;
    --on-surface-variant:#BDB5B1;
    --on-surface-principal:#988377;

    --surface-cta:rgba(25, 27, 28, 0.8);
    --on-surface-cta:#988377;

    --surface-texture:url(assets/bg-sombre.png);
    --surface-texture-variant:url(assets/bg-middle.png); 

    --gradient-header:linear-gradient(90deg, RGBA(152, 131, 119, 1) 0%, RGBA(152, 131, 119, 0.2) 50%, RGBA(152, 131, 119, 1) 100%);

    --gradient-button:linear-gradient(45deg, RGBA(152, 131, 119, 1) 0%, RGBA(152, 131, 119, 0.2) 50%, RGBA(152, 131, 119, 1) 100%);
    --gradient-button-hover:linear-gradient(90deg, RGBA(152, 131, 119, 1) 0%, RGBA(152, 131, 119, 0.2) 50%, RGBA(152, 131, 119, 1) 100%);

    --gradient-button-longuelosange:linear-gradient(0deg, RGBA(152, 131, 119, 1) 0%, RGBA(152, 131, 119, 0.2) 50%, RGBA(152, 131, 119, 1) 100%);

    --gradient-separator:linear-gradient(90deg, RGBA(152, 131, 119, 1) 0%, RGBA(152, 131, 119, 0.2) 50%, RGBA(152, 131, 119, 1) 100%);

    --font-display-large:74px;
    --lineheight-display-large:80px;
    --letterspace-display-large:0.5;

    --font-display-little:20px;
    --lineheight-display-little:24px;
    --letterspace-display-little:0.2;

    --lineheight-paragraphe:20px;

    /*font sur une base 16 */
    --font-size-xs:0.75rem; /*12*/
    --font-size-s:1rem; /*16*/
    --font-size:1.5rem; /*24*/
    --font-size-m:2rem; /*32*/
    --font-size-l:3.125rem; /*50*/
    --font-size-xl:5.6rem;

    /* Police */
    --font-title:'Montserrat', sans-serif;
    --font-cta:'Montserrat', sans-serif;
    --font-default:'Roboto Serif', serif;
    --font-chn:'Chiron Hei HK', sans-serif;


  
    /* Radius */

    --border-button:8px;
    --radius-header: 0 0 16px 16px;


    /* Grid */
    --grid-columns: 12;
    --grid-gap: 16px;
    --grid-margin:40px;
    --grid-max-width:1840px;


    /* space */
    --space-1:4px;
    --space-2:8px;
    --space-3:16px;
    --space-4:24px;
    --space-5:32px;
    --space-6:40px;
    --space-7:48px;
    --space-8:56px;
    --space-9:64px;
    --space-10:72px;
    --space-11:80px;
    --space-12:172px;
}

*{
    padding:0;
    margin: 0;
    box-sizing: border-box;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: var(--primary-color);
}

  :focus-visible {
    outline: 3px dotted var(--primary-color);
    outline-offset: 4px;
  }

html, body {
  height: 100%;
  margin: 0;
}

body{
    background-color: var(--surface-variant);
    background-image: var(--surface-texture-variant);
    font-size:16px;
    color:var(--on-surface);
    font-family: var(--font-default);
}

/* raccourcis clavier */

kbd {
    background: var(--surface);
    border-color: var(--on-surface-variant);
    border-style: solid;
    border-width: 1px 1px 3px 1px ;
    border-radius: var(--radius-button);
    padding: 1px 5px;
    font-size: var(--font-size-s);
    display: inline-flex;
}

/* paragraphe */

p{
  line-height: var(--lineheight-paragraphe);
  font-size: var(--font-size-s);
}


/* Header */

header{
  margin: auto;
  position: fixed;
  top:40px;
  z-index: 9999;
  left: var(--grid-margin);
  right: var(--grid-margin);
  padding:0 var(--grid-margin);
  border-radius: var(--radius-header);
  backdrop-filter: blur(24px);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

    header::after{
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 0 0 1px 0;
      background: var(--gradient-header);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite: xor;
      mask-composite: exclude;
      clip-path: inset(calc(100% - var(--header-radius-bottom) - 1px) 0 0 0 round 0 0 var(--header-radius-bottom) var(--header-radius-bottom));
      pointer-events: none;
    }

  header .brand{
    height: 48px;
    width: 48px;
  }

    header .brand svg{
      max-width: 100%;
    }
  
      header nav .nav-header-content{
        display: flex;
        flex-direction: row;
        gap:var(--space-3);
        justify-content: center;
        align-items: center;
      }

        header nav .nav-header-content li{
          position: relative;
        }

          header nav .nav-header-content li::after{
            content:"";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            width: 100%;
            background: var(--gradient-header);
          }

              header nav .nav-header-content li a{
                font-family: var(--font-cta);
                display: flex;
                align-items: center;
                gap:var(--space-2);
                position: relative;
                height: 88px;
                padding:0 var(--space-5);
              }

                header nav .nav-header-content li a::before{
                  content:"";
                  height: 24px;
                  width: 24px;
                  display: flex;
                  background-color: red;
                }


                header nav .nav-header-content li a::after{
                  content:"";
                  display: block;
                  height: 5px;
                  width:10px ;
                  background-color: blue;
                  position: absolute;
                  z-index: 33;
                  transform: translateY(0);
                  transition:all 0.2s ease-in;
                  bottom: 6px;
                  left: 0;
                  right: 0;
                  margin: auto;
                }


/* Home page */

main{
  background:var(--surface-variant) var(--surface-texture-variant);
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
  padding: var(--grid-margin);
  height: 100%;
  position: relative;
}


.home main section{
  background:var(--surface) var(--surface-texture);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  position: relative;
  max-width: var(--grid-max-width);
}

  .home main section::before{
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: red;
    background-image: url(assets/Qin.png);
    background-size: cover;
    z-index: 1;
  }

    .content-main{
      grid-column: 5 / span 4;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap:var(--space-5);
      position: relative;
      z-index: 2;
    }
  
  .group-display{
    display: flex;
    flex-direction: column;
    gap:0;
    text-transform: uppercase;
  }

    .group-display h1{
      font-size: var(--font-display-large);
      font-family: var(--font-title);
      line-height: var(--lineheight-display-large);
      letter-spacing: var(--letterspace-display-large);
      font-weight: 900;
    }

      .group-display em{
        color:var(--on-surface-principal);
        font-style: normal;
      }

    .group-display .subtitle{
      font-size: var(--font-display-little);
      font-family: var(--font-title);
      line-height: var(--lineheight-display-little);
      letter-spacing: var(--letterspace-display-little);
      margin: auto;
      font-weight: 300;
    }

    .content-main-text{
      display: flex;
      flex-direction: column;
      gap:var(--space-4);
    }

    .paragraphes{
      display: flex;
      gap:var(--space-3);
    }

/* Brand */

.brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

  .brand svg{
      fill: var(--on-surface-principal);
  }


/* Button group home*/

.home-cta-group{
  height: 90px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 0px;
  position: relative;
}

  .home-cta-group::before, .home-cta-group::after{
    content: "";
    display: block;
    width: 182px;
    height: 36px;
    bottom: 0;
  }

    .home-cta-group::before{
      left: 110px;
      background-image: url(assets/line-cta-hp.png);
      transform: scaleX(-1) translateX(-99px);
    }

    .home-cta-group::after{
      right: 110px;
      background-image: url(assets/line-cta-hp.png);
      transform: translateX(-99px);
    }
/* Button */

.button-losange {
  position: relative;
  width: 64px;
  height: 64px;
  transform: rotate(-45deg);
  background-color: var(--surface-cta);
  border-radius: var(--border-button);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

  .button-losange-to-bot::before{
    content:"";
    display: block;
    height: 5px;
    width:10px ;
    background-color: blue;
    position: absolute;
    rotate: 45deg;
    z-index: 33;
    transform: translateY(0);
    transition:all 0.2s ease-in;
    opacity: 0;
  }

    .button-losange-to-bot:hover::before{
      opacity: 1;
      transform: translateY(50px);
      transition:all 0.5s ease-in;
    }

  .button-losange::after{
    content: "";
    height: 24px;
    width: 24px;
    display: block;
    background-color: red;
    transform: rotate(45deg);
  }


  .border-mask {
    position: absolute;
    inset: 0;
    border-radius: var(--border-button);
    padding: 1px;
    overflow: hidden;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }

    .border-gradient {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 150%;
      height: 150%;
      transform: translate(-50%, -50%) rotate(45deg);

      background-image: linear-gradient(
        to bottom,
        /* Dégradé HOVER (0–50% de l'image) : 10% -> 0% (à 85% de sa propre échelle) -> 100% */
        rgba(152, 131, 119, 0.1) 0%,
        rgba(152, 131, 119, 0) 42.5%,
        rgba(152, 131, 119, 1) 50%,

        /* Dégradé NORMAL (50–100% de l'image) : 100% -> 20% (au milieu) -> 100% */
        rgba(152, 131, 119, 1) 50%,
        rgba(152, 131, 119, 0.2) 75%,
        rgba(152, 131, 119, 1) 100%
      );
      background-size: 100% 200%;
      background-position: 0% 100%;
      transition: background-position 0.3s ease;
    }

.button-losange:hover .border-gradient {
  background-position: 0% 0%;
}

/*pages*/

.diaporama{
  width: 100%;
  min-height: 100vh;
  background: red;
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 2;
}

  .diaporama::after{
    content: "";
    top:0;
    left: 0;
    right: 0;
    bottom:0;
    position: absolute;
    background-image: var(--gradient-filter);
    mix-blend-mode: multiply;
    z-index: 1;
  }

.grid{
  width: 100%;
  max-width: var(--container-max-width);
  margin: var(--space-11);
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
  position: relative;
  z-index: 2;
}

  .content-01{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 724px;
  }

/*diapo*/

   .diapo .sources-img{
      font-size: var(--font-size-s);
      position: absolute;
      z-index: 3;
      bottom:var(--space-5);
      right: var(--space-11);
    }

      .diapo .sources-img a{
        color:var(--primary-color)
      }

/* Section */

.group-title{
  width:100%;
  container-type: inline-size;
}

h1, h2 {
  line-height: 0.8;
  max-width: 100%;
}

.group-title h1{
  font-size: var(--font-size-xl);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0;
}

.group-title h2{
  font-family: var(--font-cursive);
  font-size: var(--font-size-l);
  font-weight: 400;
  margin-bottom: 16px;
  text-align: center;
}

  .group-title::after{
    content: "";
    height: 5px;
    width: 44px;
    background: var(--primary-color);
    display: block;
    margin: var(--space-5) 0 var(--space-3) 0;
    border-radius: var(--radius-button);
  }

.paragraphes{
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}


/* bouton */

.button-longuelosange{
  height: 55px;
  position: relative;
  background: var(--surface-cta);
  display: flex;
  align-items: center;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image:var(--gradient-button-longuelosange) 1;
}

    .button-longuelosange::before, .button-longuelosange::after{
      content: "";
      height: 57px;
      width: 32px;
      position: absolute;
      display: block;
      background:var(--surface-cta);
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 55"><path d="M1.86 22.38C-0.62 25.34-0.62 29.66 1.86 32.62L18.12 52.12C19.64 53.95 21.89 55 24.26 55H26.05V0H24.26C21.89 0 19.64 1.05 18.12 2.88L1.86 22.38Z"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 55"><path d="M1.86 22.38C-0.62 25.34-0.62 29.66 1.86 32.62L18.12 52.12C19.64 53.95 21.89 55 24.26 55H26.05V0H24.26C21.89 0 19.64 1.05 18.12 2.88L1.86 22.38Z"/></svg>');
      top:-3;
      mask-repeat: no-repeat;
      mask-size: contain;
      -webkit-mask-size: contain;
      z-index: 3;
    }

      .button-longuelosange::before{
        left: -26px;
      }

      .button-longuelosange::after{
        right: -26px;
        transform: scaleX(-1);
      }

    .border-longuelosange {
      position: absolute;
      z-index: 4;
      inset: 0;
      pointer-events: none; /* pour ne pas bloquer les clics/hover sur le bouton */
    }

  .border-longuelosange::before,
  .border-longuelosange::after {
  content: "";
  height: 57px;
  width: 32px;
  position: absolute;
  display: block;
  top: -3px;
  background: var(--gradient-button-longuelosange);
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 31 59"><path d="M24.26 0C21.89 0 19.64 1.05 18.12 2.88L1.86 22.38C-0.62 25.34-0.62 29.66 1.86 32.62L18.12 52.12C19.64 53.95 21.89 55 24.26 55" fill="none" stroke="black" stroke-width="2"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 31 59"><path d="M24.26 0C21.89 0 19.64 1.05 18.12 2.88L1.86 22.38C-0.62 25.34-0.62 29.66 1.86 32.62L18.12 52.12C19.64 53.95 21.89 55 24.26 55" fill="none" stroke="black" stroke-width="2"/></svg>');
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  z-index: 5;
}

.border-longuelosange::before {
  left: -25px;
}

.border-longuelosange::after {
  right: -25px;
  transform: scaleX(-1);
}


.group-button, .menu-links{
  grid-column: 1 / -1;
  margin-top: var(--space-10);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap:var(--space-3);
}


/*navigation*/

.navigation-content{
  position: fixed;
  right: 0;
  bottom:0;
  padding:32px;
  z-index: 999;
}

  .navigation-content .navigation-button{
    display: flex;
    flex-direction: column;
    padding:16px;
    width: 92px;
    gap:16px;
    justify-content: center;
    align-items: center;
    background:transparent;
    border:2px solid var(--on-surface);
    color:var(--on-surface);
    border-radius: 16px;
    cursor: pointer;
  }


  .navigation-content .icone-button{
    width: 32px;
    height: 32px;
    display: block;
    background: red;
  }

  .navigation-content .label-button{
    font-family:var(--font-current);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    font-weight: 600;
  }


/* Settings pannel */


  .settings-pannel[hidden] {
    display: none;
  }

  .settings-pannel{
    position: fixed;
    top:0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 9999;
    background: var(--surface-variant) var(--surface-texture-variant);
    display: grid;
    gap: var(--grid-gap);
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    justify-content: space-between;
    padding:var(--grid-margin);
  }

    .settings-pannel-content{
      grid-column: 1/-1;
      display: grid;
      grid-template-columns: subgrid;
      background: var(--surface) var(--surface-texture);
      justify-content: center;
      align-items: center;
    }

      .section-settings-options{
        grid-column: 4/ span 6;
        width: 100%;
        display: flex;
        max-width: 902px;
        gap: var(--space-6);
        flex-direction: column;
      }

        .section-settings-options-content{
          display: flex;
          flex-direction: column;
        }

          .pannel-title{
            font-family: var(--font-title);
            font-size: var(--font-size-m);
            text-transform: uppercase;
          }

.button-group{
  grid-column: 1/-1;
  background-color: red;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* settings-options */

.settings-pannel .settings-options{
  border-image-source:var(--gradient-separator);
  border-image-slice: 1;
  border-width: 1px 0 0 0;
  border-style: solid;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: var(--space-5) 0;
  align-items: center;
}

.setting-option-textual{
  display: flex;
  flex-direction: column;
  gap:var(--space-2);
}

  .setting-option-textual p{
    color:var(--on-surface-variant);
  }

  .settings-pannel .settings-option-label{
    font-size: var(--space-4);
    font-family: var(--font-title);
    font-weight: 400;
    display: flex;
    align-items: center;
    width: 100%;
  }



  .settings-pannel .settings-option-control{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 280px;
    width: 100%;
    justify-content: space-between;
    font-family: var(--font-title);
    font-size:var(--font-size);
  }

  .settings-pannel .settings-option-btn{
    border:none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    color:var(--on-surface);
    cursor: pointer;
    flex-shrink: 0;
  }

     .settings-pannel .settings-option-btn:disabled{
      opacity: 0.5;
      cursor:not-allowed;
     }

  .settings-pannel .settings-option-val-wrap{
    overflow: hidden;
    display: flex;
    width: 100%;
    text-align: center;
    position: relative;
 
  }

    .settings-pannel .setting-option-config-val {
        display: inline-block;
        position: absolute;
        left: 0; 
        right: 0;
        transition: transform 0.3 ease, opacity 0.3s ease;
        font-weight: 200 ;
    }

    .settings-pannel .footer-setting{
      grid-column: 1/-1;
      padding:var(--space-6);
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      width: 100%;
      align-items: center;
      font-weight: 200;
      justify-content: space-between;
    }

      .settings-pannel .config-hint{
        display: flex;
        flex-direction: row;
        align-items:center;
        gap:var(--space-2);
        font-size:var(--font-size-s)
      }

    .settings-pannel .social{
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      gap:var(--space-3)
    }


/* Chronologie */

.chronologie-bloc{
  display: block;
  height: 16px;
  width:100px;
}

/* Time line générale*/
.timeline__bloc a,
.timeline-ere a,
.timeline__regne a,
.timeline-aire-bloc a {
    color: inherit;
}

/**/

.timeline {
    display: flex;
    position: relative;
    gap: 0;
    background:var(--surface) var(--surface-texture);
    width: 100%;
    grid-column: 1 / -1;
}

.timeline__barre {
    width: 3px;
    background: #333;
    position: absolute;
    left: 160px;
    top: 0;
    bottom: 0;
}


/* Ere Timeline */

  .timeline-eres {
      width: 138px;
      flex-shrink: 0;
      position: relative;
      overflow: visible;
      writing-mode: sideways-lr;
  }

    .timeline-ere {
        position: absolute;
        width: 100%;
        padding: 4px 8px;
        box-sizing: border-box;
        font-weight: bold;
        font-size: 0.85rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .timeline-ere span{
      top:130px;
      font-family: var(--font-title);
      font-size:var(--font-size-s) ;
      position: sticky;
      height: 210px;
    }

  .timeline-ere--periode{ 
    background: #fde8e8; 
    color: var(--on-surface);
  }

.timeline-ere--point   { background: none; }

.timeline-ere--uncertain {
    background: linear-gradient(to bottom, transparent, #fde8e8);
}

.timeline__bloc--uncertain {
    background: linear-gradient(to bottom, transparent, var(--bloc-color, #e8f0fe));
}

/* Blocs milieu */
.timeline-blocs {
    position: relative;
    flex: 1;
}

.timeline__bloc {
    position: absolute;
    background: #e8f0fe;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
}

.timeline__bloc-titre {
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
}

/**/

.timeline-regne-same-start .timeline-regne-header {
    transform: translateY(132px); /* valeur initiale */
}

/* Règnes */
.timeline__regne {
    position: absolute;
    background: #d0e8d0;
    box-sizing: border-box;
    padding: 0;
    font-size: 0.75rem;
    overflow: hidden;
}

.timeline-regne{
    position: absolute;
    background: #ff7f00;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
}

.timeline-regne-header{
  display: flex;
  gap:0;
  flex-direction: column;
  z-index: 200;
  transition: padding-top 0.15s ease;
  transform: translateY(40px); /* valeur initiale */
  padding-left: var(--space-2);
  position: relative;
}

  .timeline-regne-header.is-sticky {
    transform: translateY(calc(var(--sticky-offset, 0px) + 40px));
    padding-top: 0;
  }

.timeline-regne h3{
  font-size: var(--font-size);
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  gap:var(--space-2);
  align-items: center;
}

  .timeline-regne-chinois{
    font-family: var(--font-chn);
  }

.timeline-regne-dates{
  font-size: var(--font-size-s);
  text-transform: uppercase;
}

/* Points dates */
.timeline-dates {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 10;
}

.timeline-date-point {
  z-index: 99;
  position: absolute;
  pointer-events: all;
}

.timeline-date-point a {
    text-decoration: none;
    font-size: var(--font-size-s);
    color:var(--on-surface);
    padding:0 0 var(--space-1) var(--space-10);
    border-bottom: 1px solid var(--on-surface);
}

.timeline-aires{
    position: relative;
    width:200px;
    flex-shrink: 0;
  }

  .timeline-aires-blocs{
      position: relative;
      width: 100%;
      height: 100%;
  }

    .timeline-aire-bloc{
        position: absolute;
        padding: 4px;
        box-sizing: border-box;
        overflow: hidden;
        padding-top:var(--space-7);
    }

      .timeline-aire-bloc::after{
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background-image:var(--surface-texture);
        mix-blend-mode: difference;
        z-index: 2;
      }

.timeline-aire-label {
    display: block;
    font-size: var(--font-size-m);
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 2px;
}

.timeline-aires-points {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 10;
}

.timeline-aires-points .timeline__date-point {
    pointer-events: all;
}

.timeline-scroll-date {
    position: fixed;
    top: 50%;
    left: var(--space-8);
    font-family: var(--font-title);
    transform: translateY(-50%);
    font-size: var(--font-size);
    font-weight: bold;
    color:var(--on-surface);
    pointer-events: none;
    z-index: 1000;
    user-select: none;
}

  .timeline-scroll-line{
    position: fixed;
    top:50%;
    height: 1px;
    background: var(--on-surface);
    left: 180px;
    right: 40px;
  }

.timeline-scroll-date .locution{
  font-size: var(--font-size-s);
  font-family: var(--font-title);
  font-weight: 400;
}

/* Bloc titre */

.timeline-bloc-header{
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 200;
  padding:32px 0 0 24px;
}

  .timeline-bloc-header h2{
    display: flex;
    flex-direction: row;
    font-size:var(--font-size-m) ;
    gap: var(--space-3);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: var(--space-5);
  }

    .timeline-titre-chinois{
      font-family: var(--font-chn);
    }

  .timeline-bloc-dates{
    font-size: var(--font-size-s);
    text-transform: uppercase;
  }

/* content-article */

.content-article{
  width: 1760px;
  background: blue;
  margin: auto;
}

  .header-article{
    background: green;
    max-width: 724px;
    display: flex;
    flex-direction: column;
    gap:16px;
  }

  .content-article .header-article h1{
    text-transform: uppercase;
  }

.personnage-date{
  text-transform: uppercase;
  font-size: var(--font-size-s);
  color:var(--on-surface);
}

.article-regnes{
  display: flex;
  flex-direction: row;
  gap:8px;
}

  .article-regnes .regne{
    width: 132px;
    height: 157px;
    display: flex;
    flex-direction: column;
  }


@media (max-width: 960px) {

  :root {
    /* Grid */
    --grid-columns: 4;
    --grid-gap: 16px;

    /* Taille de texte */
    
    --font-size-xl:4.5rem;
    
  }

  .grid{
    margin: var(--space-5);
    justify-content: center;
    background: green;
  }

  .group-title *{
    display: flex;
    align-items: center;
    justify-content: center ;
  }

  .content-01{
  grid-column: 1 / -1;
  }


}