/* remove the bump scroll effect */
:root {
  overscroll-behavior: none;
}

*{
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
.salo-variable{
  font-family: 'salo-variable', sans-serif;
}

body{
  margin: 0;
  background: #222; /* linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9)), */
  background: #c3e2ff url('img/background-blur.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: "futura-pt",Futura,system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  /* backdrop-filter: blur(80px); */
  text-transform: uppercase;
  max-width: 768px;
  margin: 0 auto;
  overscroll-behavior: contain;
}

@media (min-width:1024px){
  body{
    max-width: none;
  }
}

svg defs *{
  transition: all 0.6s ease ;
}

svg{
  border: 6px solid #fff;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

h2{
  display: none;
}

.logo-mobile{
  width: 120px;
  margin: 16px;
}

@media (min-width:1024px){
  .logo-mobile{
    display: none;
  }
}


@media (min-width:1024px){
h2{
  display: block;
 font-size: 1em;
 font-weight: 400;
}
}

ul{
  padding-left: 0;
  margin-top: 0;
}
li{
  list-style-type: none;
}


.hidden{
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (min-width:1024px){
  .main{
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
    align-items: start;
  }
}

.toolbar{
  background: #fff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  padding:12px 12px;
  margin: 8px ;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}


@media (min-width:512px){
  .toolbar{
    grid-template-columns: repeat(6, 1fr);  
  } 
}

@media (min-width:1024px){
  .toolbar{
    padding: 24px;
    grid-template-columns: 1fr;  
  } 
}
.toolbar>*{
  grid-column: span 1;
}

.toolbar .color{
  /* grid-column: 1 / -1; */
}

@media (min-width:512px){
  .toolbar>*,.toolbar .color{
    grid-column: span 2;
  }
  .toolbar .custom,.toolbar .justify{
    grid-column: span 3;
  }
  .toolbar .wish{
    grid-column: 1 / -1;
  }
}

@media (min-width:1024px){
  .toolbar>*,
  .toolbar .custom,.toolbar .justify{
    grid-column: 1/-1;
  }
}


.toolbar>img{
  margin:0 0 24px;
  width:88px;
  display: none;
}



@media (min-width:1024px){
.toolbar>img{
  margin:0 auto 24px;
  width:140px;
  display: block;
}
}

@media (min-width:1024px){
  .toolbar>div{
    border-top: 1px solid #eee;
    margin-bottom: 12px;
  }
}



.format_buttons{
  display: grid;
  grid-template-columns: repeat(2,auto);
  gap:12px;
  justify-content: start;
  align-items: center;
}
.button_portrait{
  display: inline-block;
  width: 40px;
  height: 50px;
  cursor: pointer;
  background-color: rgba(176, 176, 176, 0.3);
  opacity: 0.5;
  border: 1px solid rgba(30, 79, 255, 0.3);
}

.button_paysage{
  display: inline-block;
  width: 50px;
  height: 40px;
  cursor: pointer;
  background-color: rgba(176, 176, 176, 0.3);
  box-shadow: 0 0 1px 1px #1e4fff23;
  border: 1px solid rgba(30, 79, 255, 0.3);
  opacity: 0.5;
}

.format_buttons>div.current{
  background: #fff;
  opacity:1;
  box-shadow: 0 0 8px 0px #1e4fff83;

}

.current{
  position: relative;
  
}
.current::after{
  position: absolute;
  bottom:-4px;
  right:-4px;
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: url(img/check.svg) no-repeat center center;
  border-radius: 8px;
  border:1px solid #fff;
}



.theme_buttons{
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  justify-content: start;
}

.button_color,
.button_wind,
.button_sun,
.button_water{
  width: 44px;
  height: 44px;
}

@media (min-width:768px){
  .button_color,
  .button_wind,
  .button_sun,
  .button_water{
    width: 48px;
    height: 48px;
  }
}

.theme_buttons>div{
  display: inline-block;
  background-size: 80% 80%;
 
  cursor: pointer;
  box-shadow: 0 0 1px 1px #1e4fff23;
  border-radius: 30px;
  background-color: rgba(176, 176, 176, 0.143);
}
.theme_buttons>div.current{
  box-shadow: 0 0 8px 0px #1e4fff83;
  background-color: #fff;
  /* border-radius: 8px; */
}

.button_wind{
  background: url(img/wind.svg) no-repeat center center;
}

.button_sun{
  background: url(img/sun.svg) no-repeat center center;
}

.button_water{
  background: url(img/water.svg) no-repeat center center;
}



.button_color{
  display: inline-block;
  border-radius: 50%;
  margin-right: 12px;
  cursor: pointer;
  background-color: #ddd;
}

.button_color.current{
  box-shadow: 0 0 3px 0px #1e4fff83;
}

.wish{
    /* grid-column: 1/-1; */
}

.wish_select{
  display: inline-block;
  width: 100%;
  border:none;
  height: 36px;
  padding: 0 30px 0 12px;
  border-radius: 8px;
  /* margin-right: 24px; */
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fafafa;
  background-image: url('img/arrow_down.svg');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  border: 1px solid #ccc;
  text-overflow: ellipsis;
}
.format::before,
.theme::before,
.color::before,
.wish::before,
.custom_slider::before,
.justify_slider::before{
  display: block;
  font-size: 0.8em;
  margin-bottom: 8px;
  color: #222;
  overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.format::before{
  content: 'Format/Size';
}

.theme::before{
  content: 'Vous êtes plutôt/You are more';
}

.color::before{
  content: 'Ambiance/Mood';
}

.wish::before{
  content: 'Votre souhait/Your wish';
}

.custom_slider::before{
  content: 'Intensité/Intensity';
}

.justify_slider::before{
  content: 'Justification/Justification';
}

@media (min-width:1024px){
  .theme::before,.format::before,.color::before,
  .custom_slider::before,
  .justify_slider::before{
    display: none;
  }
}

.slider{
  touch-action: pan-x; /* Autorise uniquement le mouvement horizontal */
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  /* opacity: 0.7; */
  -webkit-transition: .2s;
  transition: opacity .2s;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1E4DFF;
  cursor: pointer;
  opacity: 1;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1E4DFF;
  cursor: pointer;
  border: none;
}

@media (min-width:1024px){
  .spacer{
    height:24px;
  }
}

.button_save{
  position: fixed;
  bottom: 24px;
  right: 24px;
  background:rgba(255, 255, 255, 0.7) url(img/download.svg) no-repeat center center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  z-index: 99999;
  box-shadow: 0 0 8px 0px #1e4fff83;
  background-color: #fff;
 }

.button_save span{
  display: none;  
}

@media (min-width:1024px){
  .button_save{
    position: static;
    width: auto;
    height: auto;
    text-transform: uppercase;
    appearance: none;
    display: inline-block;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: none;
    font-size: 0.9em;
          background: #1E4DFF;

  }
  .button_save span{
    display: inline-block;  
  }
}

/* SVG DRAW AREA */
.draw{
  display: grid;
  place-items: center;
  margin: 8px;
  box-sizing: border-box;
}
@media (min-width:1024px){
  .draw{
    padding: 24px;
    min-height: 100vh;
  }
}

.draw svg{
  /* width: auto;
  max-height: 80vh; */
  /* max-width: 100%;
  height: auto; */

  /* object-fit: contain; */
  display: block;
  max-width: 100%;
  height:auto;
  opacity: 0;
  /* border: 20px solid red; */
  /* background: rgba(255,255,255,0.6); */
  /* transition: all 0.6s ease ; */
  /* transform: scale(0.5); */
}

@media (min-width:1024px){ 
  .draw svg{
    border-radius: 3px;
    position:absolute;
    max-width: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);  
  }
}

.lang{
  position: fixed;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang ul{
  display: flex;
  margin: 0;
  padding: 8px 2px;
}
.lang li{
  margin: 0 12px 0 12px;
}
.lang a{
  text-decoration: none;
  color: #1E4DFF;
  font-weight: 600;
}
.lang a:hover, .lang a.lang_current{
  text-decoration: underline;
}


.notification{
  position: fixed;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
} 

.notification.show{
  opacity: 1;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { color: #999; }
  50% { color: #000; }
}