@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins',sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    background: var(--colors-background);
    color: var(--colors-font);
    width: 100%;
    font-size: 100%;

}


/**********************/
/********Header********/
/**********************/

header{
    background: var(--colors-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 1.3em;

}

header a{
    text-decoration: none;
    color: var(--colors-font);
}

.headerfonction{
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag {
  margin-right: 20px;
  position: relative;
  width: 40px;
  height: 30px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.france {
  background: linear-gradient(
    to right,
    #192f8e 33%,
    #fff 33%,
    #fff 67%,
    #e01414 0
  );
}

.united_kingdom {
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: #213064;
}

.united_kingdom__plus {
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1.25px white) drop-shadow(1.25px 0 white)
    drop-shadow(-1.25px 0 white) drop-shadow(0 -1.25px white);
}

.united_kingdom__plus .plus {
  width: 100%;
  height: 100%;
  background-color: #e51837;
  clip-path: polygon(
    0% 43%,
    45% 43%,
    45% 0%,
    55% 0%,
    55% 43%,
    100% 43%,
    100% 58%,
    55% 58%,
    55% 100%,
    45% 100%,
    45% 58%,
    0% 58%
  );
}

.united_kingdom__x {
  position: absolute;
  inset: 0;
}

.united_kingdom__x > .x__strip-1,
.united_kingdom__x > .x__strip-2 {
  position: relative;
  background-color: rgb(255 255 255);
  height: 4.84px;
  transform: rotate(-28deg) scalex(1.3) translate(-4.54px, 11.06px);;
}

.united_kingdom__x > .x__strip-2 {
  transform: rotate(28deg) scalex(1.3) translate(1.97px, 7.12px);
}

.united_kingdom__x > .x__strip-1::before,
.united_kingdom__x > .x__strip-1::after,
.united_kingdom__x > .x__strip-2::before,
.united_kingdom__x > .x__strip-2::after {
  position: absolute;
  background-color: #e51837;
  content: "";
  width: 50%;
  height: 1.51px;
}

.united_kingdom__x > .x__strip-1::before {
  bottom: 1.06px;
}

.united_kingdom__x > .x__strip-1::after {
  top: 1.06px;
  left: 50%;
}

.united_kingdom__x > .x__strip-2::before {
  bottom: 1.06px;
}

.united_kingdom__x > .x__strip-2::after {
  top: 1px;
  left: 50%;
}

/**********************/
/********Footer********/
/**********************/

footer{
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px 20px;
    font-size: 1em;
}

footer a{
    text-decoration: none;
    color: var(--colors-font);
}

/**********************/
/******Light/Dark******/
/**********************/

.theme-switcher {
    --theme-switcher-radius: 40px;
    --theme-switcher-padding: 4px;
    --theme-switcher-outline-color: light-dark(#fbd144, #fbd144);
    --theme-switcher-outline-size: 2px;
    --theme-switcher-background: light-dark(#e8ebeb, #0c151c);
    --theme-switcher-icon-size: 24px;
    --theme-switcher-icon-color: #fbd144;
    --theme-switcher-icon-background: light-dark(#ffffff, #161f26);
    --theme-switcher-transition: 0.25s;
  
    display: inline-flex;
    justify-content: start;
    width: calc((var(--theme-switcher-icon-size)) * 2.3);
    padding: var(--theme-switcher-padding);
    border: 0;
    outline: var(--theme-switcher-outline-size) solid var(--theme-switcher-outline-color);
    border-radius: var(--theme-switcher-radius);
    background-color: var(--theme-switcher-background);
    line-height: 0;
    cursor: pointer;
    
    &::before {
      content: "";
      flex: 0 0 0;
      transition: var(--theme-switcher-transition) flex-grow;
      will-change: flex-grow;
    }
  
    & * {
      pointer-events: none;
    }
  
    & > .theme-icon {
      padding: 2px;
      border-radius: 50%;
      color: var(--theme-switcher-icon-color);
      background-color: var(--theme-switcher-icon-background);
      rotate: 0deg;
      transition: var(--theme-switcher-transition) rotate;
    }
    
  
    & [class^="theme-icon-"] {
      width: var(--theme-switcher-icon-size);
      height: var(--theme-switcher-icon-size);
    }
    
    &:focus-visible {
      outline-color: currentcolor;
      outline-offset: 2px;
    }
    
    &[aria-pressed="false"] {
  
      & .theme-icon-dark {
        display: none;
      }
    }
  
    &[aria-pressed="true"] {
      
      & .theme-icon-light {
        display: none;
      }
      
      & > .theme-icon {
        rotate: 240deg;
      }
  
      &::before {
        flex: 1 0 0;
     }
    }
  
  }
  
  :root {
    color-scheme: light dark;
    --colors-white-header: #ffffff;
    --colors-black-header: #161f26;
    --colors-white-background: #e8ebeb;
    --colors-black-background: #0c151c;
    --colors-white-font: #363636;
    --colors-black-font: #ffffff;
    --colors-white-active: #363636;
    --colors-black-active: #fbd144;
    --colors-header: light-dark(var(--colors-white-header), var(--colors-black-header));
    --colors-background: light-dark(var(--colors-white-background), var(--colors-black-background));
    --colors-font: light-dark(var(--colors-white-font), var(--colors-black-font));
    --colors-active: light-dark(var(--colors-white-active), var(--colors-black-active));
  }
  
  &[data-theme="light"] {
    color-scheme: light;
  }
  
  &[data-theme="dark"] {
    color-scheme: dark;
  }
  
  @media (prefers-reduced-motion: reduce) {
    * {
      transition: none !important;
    }
  }
  
  html {
    color: var(--colors-primary);
    background-color: var(--colors-secondary);
    font-family: system-ui, sans-serif;
  }
  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }
  