
@media screen and (max-width: 950px){
  :root {
    --arrondis-1: 4px;
    --arrondis-2: 8px;
    --arrondis-xl: 100rem;
    --arrondis-sm: 4px;
    --arrondis: 8px;
    --arrondis-lg: 100rem;
    --bordure: 1px solid #BBBBBB;
    --bordure-size-1: 1px;
    --bordure-size-2: 2px;
    --bordure-type: solid;
    --bordure-color: #BBBBBB;
    --ombre-sm:0 0 7px rgba(0, 0, 0, 0.25);
    --ombre:0 0 12px rgba(0, 0, 0, 0.3);
    --ombre-lg:0 0 25px rgba(0, 0, 0, 0.35);
    --ombre-hover:0 0 25px rgba(0, 0, 0, 0.35);
    --transition-mode:cubic-bezier(0.11, 0.77, 0.36, 0.97);
    --transition: 0.25s all cubic-bezier(0.11, 0.77, 0.36, 0.97);
    --flou: blur(8px) brightness(90%) saturate(0.8);
    --flou-clair: blur(8px) brightness(130%);
    --flou-sombre: blur(8px) brightness(78%);
    --font-size--1:0.875rem;
    --font-size-1:1rem;
    --font-size-2:1.15rem;
    --font-size-3:1.25rem;
    --font-size-4:1.4rem;
    --font-size-5:1.6rem;
    --font-size-6:1.8rem;
    --font-size-7:2.2rem;
    --space-0: 0;
    --space-1: 0.2rem;
    --space-2: 0.4rem;
    --space-3: 0.8rem;
    --space-4: 1.6rem;
    --space-5: 3.2rem;
  }
}


body{
  position: fixed;
  top:0;
  bottom:0;
  left:0;
  right:0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
}

*{
    hyphens: none !important;
    -webkit-hyphens: none !important;
    font-family: "Fira Sans template" !important;
}

#export div, #export p, #export span, #webapp{
    margin: 0;
    padding: 0;
    font-kerning: normal;
    font-feature-settings: normal;
}

#webapp{
  background-image: linear-gradient(45deg, var(--gris-l2), var(--gris));
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-content: stretch;
  justify-content: space-around;
  align-items: stretch;
  padding: var(--space-3);
  grid-gap: var(--space-3);
  overflow-y: scroll;
}
#export{
    display: inline-block;
    flex: 0 0 auto;
    line-height: 0;
    margin: 0;
    padding: 0;
    align-self: center;
    text-align: center;
    width: 100%;
  overflow: hidden;
  border-radius: var(--arrondis);
  box-shadow: 0 0.5rem 1rem 8px rgb(0 0 0 / 25%) !important;
  transform-origin: top left;
}
html body #screen {
    display: block;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #373CF5;
    /*height: 394px;*/
    min-width: 700px;
    width: 700px;
    max-width: 700px;
    overflow: hidden;
    text-align: left;
    line-height: 0;
    display: inline-block;
    font-size:12px;
    transform-origin: top left;
}

html #t-demo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  opacity: 0;
}

#aremplacer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}



/* OUTILS --------------------------------------------------------------------------------------------------------------------------------- */


@keyframes AnimationName {
  0%{background-position:91% 0%}
  50%{background-position:10% 100%}
  100%{background-position:91% 0%}
}

#webapp.generation-en-cours::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: blur(4px);
  background: linear-gradient(218deg, rgba(55, 61, 245, 0.7), rgba(0, 172, 224, 0.7), rgba(7, 201, 194, 0.7), rgba(73, 165, 40, 0.7), rgba(155, 186, 0, 0.7), rgba(255, 186, 49, 0.7), rgba(255, 121, 31, 0.7), rgba(227, 50, 50, 0.7), rgba(229, 46, 150, 0.7), rgba(165, 24, 226, 0.7), rgba(55, 61, 245, 0.7));
  background-size: 900% 900%;
  animation: AnimationName 5s ease-in-out infinite;
}
#webapp.generation-en-cours::after{
  content: "Génération du visuel en cours";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 99999;
  color: white;
  font-size: var(--font-size-7);
  font-weight: 100;
  text-align: center;
  transform: translateY(-50%);
}
.alertie{
	display: block;
	position: absolute;
	top:0;
	bottom: 0;
	right:0;
	left:0;
	background-color: rgba(224,0,3,0.67);
	color: white;
	font-size: 20px;
	font-weight: 800;
	text-align: center;
	padding: 2em;
}

#outils {
  margin: 0;
  padding: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  overflow: auto;
  right: auto;
  height: 100%;
  width:100%;
  border-radius: var(--arrondis-2);
  box-shadow: var(--ombre);
}
#outils > div {
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--arrondis-2);
}

#outils #pills-tab{
  background-color: var(--gris-l1) ;
  z-index: 50;
  position: relative;
  overflow: hidden;
}
#pills-tab > a{
  transition: var(--transition);
  font-size: var(--font-size-2);
  font-weight: bold;
  background-color: transparent;
  position: relative;
  z-index: 30;
}
#pills-tab > a.active{
  background-color: var(--gris-l2);
  box-shadow: var(--ombre) ;
  z-index: 40;
}
#pills-tab > a:hover{
  background-color: white;
  box-shadow: var(--ombre-hover) ;
  z-index: 50;
}

#outils .tab-content{
	margin: auto;
    max-height: calc(100% - (2 * ((var(--space-2) + var(--space-1)) + (var(--space-2) + var(--space-1)) + var(--font-size-2))));
    overflow-y: auto;
}

#outils .tab-content .container{
    padding: var(--space-4) var(--space-4) !important;
}

#outils .input-minus-plus input {
    width: calc( 3rem + ( var(--space-2) * 2 ));
    flex:0 1 auto;
    text-align: center;
}

#telechargement{
    background: #373CF5;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    line-height: 1em;
    font-size: var(--font-size-2);
    padding: calc(var(--space-2) + var(--space-1));
	  width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 100;
    bottom:0;
    max-width: 100%;
    width:100%;
}
#telechargement:hover{
    background: #0000CC;
}

[id*='zone-']{
    padding: 0 1rem; 
	max-width: 900px;
	margin: 0 auto
}

canvas {
    display: none;
    position: fixed;
    top: 0em;
    right: 0;
    z-index: 999999;
}



#export {
  max-width: 700px;
}
#outils{
  max-width: 600px;
}


@media screen and (max-width: 1300px){
  #export {
    max-width: 700px;
  }
  #outils{
    max-width: calc(100% - 700px);
  }
}


@media screen and (max-width: 1200px){
  #export {
    max-width: 600px;
  }
  #outils{
    max-width: calc(100% - 600px);
  }
  #outils .tab-content .container {
    padding: var(--space-4) var(--space-3) !important;
  }
}


@media screen and (max-width: 1050px){
  #export {
    max-width: 500px;
  }
  #outils{
    max-width: calc(100% - 500px);
  }
}


@media screen and (max-width: 950px){
  /*body{
    position: relative !important;
  }*/
  #webapp {
    flex-direction: column-reverse;
    align-items: center;
  }
  #export {
    max-width: 500px;
  }
  #outils{
    max-width: 500px;
    min-height: 500px;
  }
  .range-typo {
    width: calc(100% - 9rem) !important;
    margin: 0 2rem 0 7rem !important;
  }
  .sceditor-button.sceditor-button-bold:after {
    content: "G" !important;
  }
  .sceditor-button.sceditor-button-italic:after {
    content: "I" !important;
  }
  .sceditor-button:after {
    font-size: 1.4rem !important;
    width: 2rem !important;
  }
  .sceditor-button {
    font-size: 1.4rem !important;
    width: 2rem !important;
  }
  
  #list-illustration .illustration,
  #list-picto .picto {
    flex: 0 0 calc(50% - var(--space-2)) !important;
  }

}






/*--DETAIL -------------------------------------------------------------------*/

textarea{
  min-height: 11rem;
}
.range-typo{
  width: calc(100% - 11rem);
  padding: .35rem 0;
  margin: 0 2rem -1rem 9rem;
  top: -2rem;
  background-color: white;
  position: relative;
  z-index: 80;
  cursor: pointer;
}
.range-typo:before{
  content: 'Tt';
  top: 0.45rem;
  left: -1.15rem;
  display: block;
  position: absolute;
  font-weight: bold;
  color: var(--gris-f1);
  font-size: 12px;
}
.range-typo:after{
  content: 'Tt';
  top: 0.07rem;
  right: -1.5rem;
  display: block;
  position: absolute;
  font-weight: bold;
  font-size: 21px;
  color: var(--gris-f1);
}

h2{
  font-size: var(--font-size-4);
    color: var(--gris);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.form-control[type=file] {
  overflow: hidden;
  position: relative;
  padding: var(--space-3) var(--space-3);
  border: var(--arrondis-1);
  opacity: 1;
  height: 4.5rem;
  z-index: 20;
  transition: var(--transition);
  box-shadow: var(--ombre);
}
.form-control[type=file]:hover {
  transform: scale(1.05);
  transform-origin: center;
  box-shadow: var(--ombre-hover);
}
.form-control[type=file]::before {
  z-index: 25;
  content:"";
  position: absolute;
  width: 100%;
  top: 0rem;
  left: 0;
  height: 100%;
  background-color: var(--gris-l2);
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M11 40q-1.2 0-2.1-.9Q8 38.2 8 37v-7.15h3V37h26v-7.15h3V37q0 1.2-.9 2.1-.9.9-2.1.9Zm11.5-7.65V13.8l-6 6-2.15-2.15L24 8l9.65 9.65-2.15 2.15-6-6v18.55Z'/%3E%3C/svg%3E");
  background-position: center 0.5rem;
  background-repeat: no-repeat;
  background-size: 2.7rem;
}
.form-control[type=file]:hover::before {
  background-color: var(--blanc);
}
.form-control[type=file]::after {
  z-index: 30;
  content: attr(affiche);
  position: absolute;
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 0 var(--space-2);
  top: 3rem;
  height: 1rem;
  font-size: 0.8rem;
  left: 0;
  color: var(--gris-f1);
}
.input-group .btn{
  border-radius: 0 var(--arrondis-1) var(--arrondis-1) 0;
}



/* ----------------------------------------------
VISUEL 
--------------------------------------------- */

#tab-visuel{
  display: flex;
  flex-wrap: nowrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  align-items: stretch;
  justify-content: center;
  flex-direction: row;
  align-content: stretch;
  grid-gap: var(--space-2);
}
#tab-visuel button {
  flex: 1 1 33%;
  display: flex;
  background-color: var(--gris-l1);
  width: 100%;
  min-height: 100%;
  padding: var(--space-2) var(--space-1);
  transition: var(--transition);
  font-size: var(--font-size-1);
  font-weight: 700;
  color: var(--gris-f1);
  border: none;
  border-radius: var(--arrondis-2) var(--arrondis-2) 0 0;
  text-align: center;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  align-content: center;
}
#tab-visuel button span {
  display: inline-block;
  transition: var(--transition);
  font-size: var(--font-size-1);
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.2em;
  padding: 0 0 0 var(--space-1);
}

#tab-visuel button svg{
  display: block;
  margin: 0 auto;
  fill: var(--gris);
  width: 2rem;
  height: 2rem;
  transition: var(--transition);
  flex: 1 0 2rem;
}


#tab-visuel button:hover{
  color: var(--bleu);
}
#tab-visuel button:hover svg, 
#tab-visuel button.active svg{
  fill: var(--bleu-l1);
}

#tab-visuel button.active{
  color: var(--bleu);
  background-color: var(--blanc);
}


#tab-visuel-contient .tab-pane{
  padding: var(--space-4) var(--space-3);
}


.range-img{
  width: calc(100% - 4rem);
  padding: .5rem 0;
  margin: 0 2rem 0 2rem;
  top: 0rem;
  background-color: white;
  position: relative;
  z-index: 80;
  cursor: pointer;
}
.range-img:before{
  content: '⊡';
  top: 0.45rem;
  left: -1.15rem;
  display: block;
  position: absolute;
  font-weight: bold;
  color: var(--gris-f1);
  font-size: 12px;
}
.range-img:after{
  content: '⊡';
  top: 0.07rem;
  right: -1.5rem;
  display: block;
  position: absolute;
  font-weight: bold;
  font-size: 21px;
  color: var(--gris-f1);
}
#list-illustration,
#list-picto{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
#list-illustration .illustration,
#list-picto .picto {
  display: block;
  flex: 0 0 calc(33% - var(--space-2));
  margin: var(--space-1);
  padding: var(--space-2);
  border-radius: var(--arrondis-1);
  background-color: var(--gris-l1);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
#list-illustration .illustration img,
#list-picto .picto img{
  border-radius: var(--arrondis-1);
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 3;
}
#list-illustration .illustration span,
#list-picto .picto span{    
  display: inline-block;
  font-size: var(--font-size--1);
  line-height: var(--font-size-1);
  color: var(--gris-f1);
  transition: var(--transition);    
  white-space: break-spaces;
  word-break: break-all;
}

#list-illustration .illustration:hover,
#list-picto .picto:hover {
  transform: scale(1.1);
  transform-origin: center;
  background-color: var(--gris-l2);
  box-shadow: var(--ombre);
  z-index: 12;
}

#list-illustration .illustration.active,
#list-picto .picto.active {
  background-color: var(--bleu-l1);
}
#list-illustration .illustration.active span,
#list-picto .picto.active span {
  color: var(--blanc);
}

#list-illustration .illustration:before,
#list-picto .picto:before {
  content: "";
  z-index: 2;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  top: 1.5rem;
  left: calc(50% - .75rem);
  vertical-align: -0.125em;
  border: 0.18rem solid var(--gris);
  border-right-color: transparent;
  border-radius: 50%;
  animation: 1s var(--transition-mode) infinite spinner-border;
}

.sup-spinner:before {
  content:none !important;
}



/*-----------------------------------------
logos partenaires
----------------------------------------*/

#logo-partenaire-supprime-1,
#logo-partenaire-supprime-2,
#logo .form-check{
  margin: var(--space-2) 0;
  padding: var(--space-1) var(--space-2);
  margin-right: var(--space-2);
  background-color: var(--gris);
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  border-radius: var(--arrondis-1);
}
#logo-partenaire-supprime-1:hover,
#logo-partenaire-supprime-2:hover{
  background-color: var(--gris-l1);
}

#logo .form-check{
  background-color: #ffffff;
}

#logo .form-check-input{
  float: none;
  margin-left: 0;
}

.form-check, .form-check-inputm, .form-check-label{
  cursor: pointer;
}



/*  CHARGEMENT IMAGE 
___________________________________________________*/
.t-illustration-chargement:before {
  content: "";
  z-index: 1;
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(55, 61, 245, 0.7);
  backdrop-filter: blur(4px);
}

.t-illustration-chargement:after {
  content: "";
  z-index: 2;
  display: inline-block;
  position: absolute;
  top: calc(50% - 55px);
  left: calc(50% - 55px);
  width: 110px;
  height: 110px;
  vertical-align: -0.125em;
  border: 20px solid var(--bleu-l2);
  border-right-color: transparent;
  border-radius: 50%;
  animation: 1s var(--transition-mode) infinite spinner-border;
}
#screen.t-illustration-chargement:before{
  z-index: 10000;
}
#screen.t-illustration-chargement:after {
  z-index: 10001;
}