body{
  font-family: 'Futura-Medium';
  color: #4b4b4b;
  background-color: #fdfae1;
  font-size: 100%;
}
h1 {
  margin-left: 80px;
  margin-bottom: 50px;
  padding-top: 50px;
  font-size: 3rem;
  font-weight: bold;
  color:#ED4618;
}

h2{
  padding: 30px;
  font-size: 2.5rem;
  margin-left: 50px ;
  margin-right: 50px ;
}
h3 {
  padding: 30px;
  font-size: 2rem;
  margin-left: 50px ;
  margin-right: 50px ;
}
p{
  padding: 30px;
  font-size: 1.3rem;
  margin-left: 50px ;
  margin-right: 50px ; 
}
a{
  text-decoration: none;
  padding: 2px;
  font-size: 1.5rem;
  margin-left: 50px ;
  margin-right: 50px ;
  font-family: 'Futura-Medium';
  color: #ffffff;
}
.lien {
  text-decoration: none;
  font-size: 1.5rem;
  font-family: 'Futura-Medium';
  color: #4b4b4b;
  display: block;
  padding-left: 30px;
}
.li {
  text-decoration: none;
  font-size: 1.5rem;
  font-family: 'Futura-Medium';
  color: #ffffff;
  display: block;
  padding-left: 30px;
}

footer{
  background-color: #ED4618;
  text-decoration: none;
  padding: 10px;
  color: #ffffff;
}
h4{
  color: #ED4618;
  padding: 30px;
  font-size: 1.5rem;
  margin-left: 50px ;
  margin-right: 50px ;
}

/*------------------ cigarette --------------------*/

@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i');
* {
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  box-sizing: border-box;
}

header, footer {
  display: block;
}

.cigarette-holder {
  display: flex;
  width: 40vw;
  height: 30px; /* Exemple initial */
  margin: 20px auto 0;
  position: absolute;
  top: 180px;
  right: 0; 
  justify-content: flex-end;
}
@media (max-width: 800px) {
  .cigarette-holder {
    top: 200px;
  }
}
@media (max-width: 600px) {
  .cigarette-holder {
    top: 190px;
  }
}

.cigarette-holder:before {
  content: "";
  position: absolute;
  border-radius: 0 0 50% 50%;
  width: 90%;
  height: 6px;
}

.filter {
  flex-basis: 25%;
  background: -moz-linear-gradient(top, #dd8e04, #f3a41d, #dd8e04);
  background: -webkit-linear-gradient(top, #dd8e04, #f3a41d, #dd8e04);
  background: -o-linear-gradient(top, #dd8e04, #f3a41d, #dd8e04);
  background: linear-gradient(top, #dd8e04, #f3a41d, #dd8e04);
  position: relative;
}

.filter:before {
  content: "";
  position: absolute;
  width: 4px;
  height: 100%;
  background: -moz-linear-gradient(top, #f3a41d, yellow, #f3a41d);
  background: -webkit-linear-gradient(top, #f3a41d, yellow, #f3a41d);
  background: -ms-linear-gradient(top, #f3a41d, yellow, #f3a41d);
  background: -o-linear-gradient(top, #f3a41d, yellow, #f3a41d);
  background: linear-gradient(top, #f3a41d, yellow, #f3a41d);
}

.filter span {
  position: absolute;
  width: 5px;
  height: 3px;
  background: #ffc45e;
  border-radius: 0 3px 0 3px;
}
.filter span:nth-of-type(1) {
  left: 10px;
  top: 4px;
}

.filter span:nth-of-type(2) {
  left: 30px;
  top: 10px;
}

.filter span:nth-of-type(3) {
  left: 52px;
  top: 17px;
}

.filter span:nth-of-type(4) {
  left: 18px;
  top: 16px;
}

.filter span:nth-of-type(5) {
  left: 70px;
  top: 20px;
}

.filter span:nth-of-type(6) {
  left: 40px;
  top: 22px;
}

.filter span:nth-of-type(7) {
  left: 80px;
  top: 6px;
}

.filter span:nth-of-type(8) {
  left: 55px;
  top: 3px;
}

.filter span:nth-of-type(9) {
  left: 42px;
  top: 8px;
}

.filter span:nth-of-type(10) {
  left: 5px;
  top: 19px;
}

.ciggi-body {
  width: 65%;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: -moz-repeating-linear-gradient(left, white 0, white 5px, rgba(0, 0, 0, 0.05) 5px, rgba(0, 0, 0, 0.05) 6px);
  background: -webkit-repeating-linear-gradient(left, white 0, white 5px, rgba(0, 0, 0, 0.05) 5px, rgba(0, 0, 0, 0.05) 6px);
  background: -o-repeating-linear-gradient(left, white 0, white 5px, rgba(0, 0, 0, 0.05) 5px, rgba(0, 0, 0, 0.05) 6px);
  background: repeating-linear-gradient(left, white 0, white 5px, rgba(0, 0, 0, 0.05) 5px, rgba(0, 0, 0, 0.05) 6px);
  background-attachment: fixed;
  animation: ciggiBurnt 14s linear infinite;
}

.ciggi-body:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1), transparent, rgba(0, 0, 0, 0.1));
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.1), transparent, rgba(0, 0, 0, 0.1));
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1), transparent, rgba(0, 0, 0, 0.1));
  background: linear-gradient(top, rgba(0, 0, 0, 0.1), transparent, rgba(0, 0, 0, 0.1));
}

.ciggi-body span {
  display: inline-block;
  background: -moz-linear-gradient(left, rgba(0, 0, 0, 0.6), transparent);
  background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.6), transparent);
  background: -o-linear-gradient(left, rgba(0, 0, 0, 0.6), transparent);
  background: linear-gradient(left, rgba(0, 0, 0, 0.6), transparent);
  width: 6px;
  height: 100%;
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}

.burnt {
  width: 1%;
  margin: 1px 0;
  border-radius: 10px 0 0 10px;
  background: red;
  position: relative;
}
.burnt p {
  position: absolute;
  border-radius: 4px 2px 2px 4px;
  margin: 0;
  left: 0;
  right: 2px;
  height: 100%;
  background: radial-gradient(#232323, #444444) center/5px 5px;
}
.burnt span {
  position: absolute;
  width: 10px;
  height: 6px;
  background: #636363;
  border: 1px solid #4c4c4c;
  transform: skew(-14deg);
}

.smoke, .smoke-2, .smoke-3, .smoke-4, .smoke-5 {
  position: absolute;
  width: 1px;
  height: 25px;
  border-radius: 50%;
  background: black;
  top: 0%;
  left: 0;
  animation: animeSmoke 2.2s linear infinite;
  z-index: -1;
}
.smoke-2 {
  animation: animeSmoke2 1.7s linear 0.5s infinite;
}
.smoke-3 {
  animation: animeSmoke3 2.2s linear 1s infinite;
}
.smoke-4 {
  animation: animeSmoke4 1.7s linear 1.5s infinite;
}
.smoke-5 {
  animation: animeSmoke2 1.7s linear 2s infinite;
}
@keyframes animeSmoke {
  90% {
    opacity: 1;
  }
  
  100% {
    transform: translate(30px, -120px);
    filter: blur(10px);
    opacity: 0;
  }
}
@keyframes animeSmoke2 {
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(0, -120px);
    filter: blur(10px);
    opacity: 0;
  }
}
@keyframes animeSmoke3 {
  90% {
    opacity: 1;
  }
  
  100% {
    transform: translate(20px, -120px);
    filter: blur(10px);
    opacity: 0;
  }
}
@keyframes animeSmoke4 {
  90% {
    opacity: 1;
  }
  
  100% {
    transform: translate(-10px, -120px);
    filter: blur(10px);
    opacity: 0;
  }
}



/*----------------------------------------- partie carte -------------------------------------------------*/
.partie2{
  display: flex;
}
.text{
  width: 40%;
}

.mop {
    width: 60%;
    display: flex;
  }
  
  #europe-map {
    width: 80%;
    height: auto;
    align-items: center;
  }
  #tooltip {
    position: absolute;
    padding: 10px;
    background: #fff;
    border: 1px solid #000000;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
  } 
  #tooltip.visible {
    opacity: 1;
  }
  path {
    fill: rgb(252, 252, 252);
    stroke: #ffffff; 
    stroke-width: 1; 

  }
  path.leg {
    fill: rgb(255, 235, 148); 
  }
  path.med {
    fill: rgb(255, 218, 53); 
  }
  path.bcp {
    fill: rgb(255, 162, 23); 
  }
  path.ext {
    fill: rgb(241, 97, 13); 
  }
  @media (max-width: 600px) {
    .europe-map {
      width: 95%;
    }
  }
  @media (max-width: 600px) {
    .partie2 {
      flex-direction: column;
    }
    .text{
      width: 100%;
    }
  }
  
  /*------------------------------------------- Légende ----------------------------------------------*/
  .legend {
    padding: 10px;
    width: 20%;
    box-sizing: border-box;
  }
  
  .legend-title {
    font-weight: bold;
    padding-bottom: 20px;
  }
  
  .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px; 
  }
  
  .legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  
  .faible {
    background-color: rgb(255, 235, 148);
  }
  .moyenne {
    background-color: rgb(255, 218, 53);
  }
  .elevee {
    background-color: rgb(255, 162, 23);
  }
  .extreme {
    background-color: rgb(241, 97, 13);
  }
  
  @media (max-width: 800px) {
    .mop {
      flex-direction: column;
    }
  
    #europe-map,
    .legend {
      width: 100%; 
    }
  }
  
/*------------------------------ graph1 -----------------------------------*/
.partie3{
  display: flex;
}
.graph-container{
  width: 700%;
  margin: 0 auto;
}
.st0 {
  fill: none;
}

.st1 {
  font-family: 'Futura-Medium';
}

.st2 {
  font-size: 15px;
}

.st3 {
  fill: #EB8E1F;
}

.st4 {
  font-size: 12px;
}

.st5 {
  fill: #ED4618;
}

.st7 {
  fill: #a1a1a1;
  height: 12px;
}

.annee {
  flex: 1;
  font-size: 12px;
}

.st8 {
  fill: none;
  stroke: #000000;
  stroke-width: 2;
  stroke-miterlimit: 10;
}

.st9 {
  fill: #ED9118;
}

.st10 {
  fill: none;
  stroke: #ED9118;
  stroke-miterlimit: 10;
}

.st11 {
  opacity: 0.2;
  fill: #ED9118;
  stroke: #ED9118;
  stroke-miterlimit: 10;
}

.st12 {
  fill: none;
  stroke: #ED4618;
  stroke-width: 2;
  stroke-miterlimit: 10;
}
.rect-style {
  fill: white;
  stroke: black;
  stroke-width: 1;
}

.text-style {
  fill: black;
}
@media (max-width: 600px) {
  .graph-container {
    width: 95%;
  }
  .partie3 {
    flex-direction: column;
  }
}
/* ----------------------------------compteur----------------------------------- */
#compteur {
  text-align: center;
  font-size: 100px;
  font-weight: bold;
  color: #EB8E1F;
  padding: 0;
  margin: 0;
}
.text-value{
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #EB8E1F; 
  padding-bottom: 5px;
}

/* ----------------------------------forme----------------------------------- */
.forme{
  fill: hsl(0, 0%, 8%);
}
.forma{
  fill :#EB8E1F;
}
.partie4 {
  width: 60%;
  margin: 0 auto;
  text-align: center;
}
.milieu{
  text-align: center;
  font-weight: bold;
  color: #EB8E1F;
}

/*-------------------------------- diagramme ---------------------------------*/
.diag{
  display: flex;
    justify-content: center;
    align-items: center;
}
#obj{
  width: 100%;
}
.g2 {
  fill:#b32f0a ;
  background-color: #b32f0a;
}

.g3 {
  fill:#ED4618 ;
  background-color: #ED4618;
}

.g4 {
  fill:#e48a1d ;
  background-color: #e48a1d;
}

.g5 {
  fill:rgb(255, 218, 53);
  background-color: rgb(255, 218, 53);
}

.g6 {
  fill:#faba4b;
  background-color: #faba4b;
}

.g1 {
  fill: #ffffff; 
  background-color: #ffffff;
}
