@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Poppins:wght@100;200;300;400;500;600&family=Space+Mono&display=swap');

:root{
    --blue: #00b8b8;
    --black: #333;
    --white: #fff;
    --light-color: #666;
    --light-bg: #eee;
    --border: .2rem solid rgba(0,0,0,.1);
    --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
}

* {
    font-family: 'Poppins', sans-serif;
    margin:0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none !important;
    
}

*::-webkit-scrollbar {
    height: .5rem;
    width: 1rem;
}

*::-webkit-scrollbar-track{
    background-color: transparent;
}

*::-webkit-scrollbar-thumb{
    background-color: var(--blue);
}
html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

section{
    padding: 7rem 2rem;
}

.heading{
  text-align: center;
  font-size: 4rem;
  color: var(--black);
  text-transform: uppercase;
  font-weight: bolder;
  margin-bottom: 3rem;
}
#logoinvis{
    width: 200px;
    display: inline-block;
}


.link-btn,
.link-btn:after {
  width: 150px;
  display: inline-block;
  height: 76px;
  line-height: 78px;
  font-size: 1.5rem;
  background: var(--blue);
  text-align: center;
  color: #fff;
  letter-spacing: 1px;
  box-shadow: 6px 0px 0px #00E6F6;
  outline: transparent;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.link-btn:after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);
  
  content: 'Doctolib';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blue);
  text-shadow: -3px -3px 0px #F8F005, 3px 3px 0px #00E6F6;
  clip-path: var(--slice-0);
}

.link-btn:hover:after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

.link-btn2,
.link-btn2:after {
  width: 150px;
  display: inline-block;
  height: 76px;
  line-height: 78px;
  font-size: 1.5rem;
  background: red;
  text-align: center;
  color: #fff;
  letter-spacing: 1px;
  box-shadow: 6px 0px 0px #00E6F6;
  outline: transparent;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#logomobile {
  display: none;
}
.link-btn2:after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);
  
  content: 'Urgence';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blue);
  text-shadow: -3px -3px 0px #F8F005, 3px 3px 0px #00E6F6;
  clip-path: var(--slice-0);
}

.link-btn2:hover:after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

@keyframes glitch {
  0% {
    clip-path: var(--slice-1);
    transform: translate(-20px, -10px);
  }
  10% {
    clip-path: var(--slice-3);
    transform: translate(10px, 10px);
  }
  20% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 10px);
  }
  30% {
    clip-path: var(--slice-3);
    transform: translate(0px, 5px);
  }
  40% {
    clip-path: var(--slice-2);
    transform: translate(-5px, 0px);
  }
  50% {
    clip-path: var(--slice-3);
    transform: translate(5px, 0px);
  }
  60% {
    clip-path: var(--slice-4);
    transform: translate(5px, 10px);
  }
  70% {
    clip-path: var(--slice-2);
    transform: translate(-10px, 10px);
  }
  80% {
    clip-path: var(--slice-5);
    transform: translate(20px, -10px);
  }
  90% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 0px);
  }
  100% {
    clip-path: var(--slice-1);
    transform: translate(0);
  }
}

.header{
    padding: 2rem;
    border-bottom: var(--border);
    position: fixed;
}

.header.active{
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border: 0;
}
.header .logo {
    font-size: 2rem;
    color: var(--black);
}

.header .logo span {
    color: var(--blue);
}

.header .nav a{
    margin: 0 1rem;
    font-size: 1.7rem;
    color: var(--black);
}

.header .nav a:hover{
   color:var(--blue);
}

#menu-btn {
    font-size: 2.5rem;
    color: var(--black);
    cursor: pointer;
    display: none;
}

.home{
    background: url(../images/bg-invis.jpeg) no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 11.5rem;
}

.home .content{
    width: 55rem;
    padding: 1rem;
}

.home .content h3{
    font-size: 5rem;
    color: var(--black);
}

.home .content p{
    line-height: 2;
    font-size: 1.5rem;
    color: var(--light-color);
    padding: 1rem 1rem;
}
.home .content ul {
    font-size: 1.5rem;
    color: var(--light-color);
    padding: 1rem 0;
  	line-height: 2;
}

.blog {
  padding: 5rem;
  margin-top: 17.5rem;
}

.blog .content{
    width: 55rem;
    padding: 1rem;
  	
}

.blog .content h3{
    font-size: 5rem;
    color: var(--black);
}

.blog .content p{
    line-height: 2;
    font-size: 1.5rem;
    color: var(--light-color);
    padding: 1rem 1rem;
}
.blog .content ul {
    font-size: 1.5rem;
    color: var(--light-color);
    padding: 1rem 0;
  	line-height: 2;
}

.lister {
  line-height:1.5;
}
.about .row{
    min-height: 50vh;
}

.about .content span{
    font-size: 2rem;
    color: var(--blue);
}

.about .content h3{
    font-size: 3rem;
    color: var(--black);
    margin-top: 1rem;
}

.about .content p{
    padding:1rem 0;
    font-size: 1.4rem;
    color: var(--light-color);
    line-height: 2;
}
.services{
  background-color: var(--light-bg);
}
.services .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}

.services .box-container .box{
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  box-shadow: var(--box-shadow) ;
  border-radius: .5rem;
}

.services .box-container .box:hover{
  text-align: center;
  padding: 2rem;
  background-color: lightblue;
  box-shadow: var(--box-shadow) ;
  border-radius: 2.5rem;
  transition: all 1s ease-in-out;
}

.services .box-container .box img{
  margin: 1rem 0;
  height: 4rem;
}

.services .box-container .box h3{
  font-size: 2rem;
  padding: 1rem 0;
  color: var(--blue);
}



.services .box-container .box p{
  font-size: 1.5rem;
  color: var(--light-color);
  line-height: 2;
}

.process .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}

.process .box-container .box{
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 3rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}
.process .box-container .box:hover{
  background-color: lightblue;
  padding: 2rem;
  border-radius: 5rem;
  text-align: center;
  box-shadow: 2;
  transition: all 1s ease-in-out;
}

.process .box-container .box img{
  height: 20rem;
  margin: 1.5rem 0;
}

.process .box-container .box h3 {
  font-size: 2rem;
  color: var(--blue);
}

.process .box-container .box p {

  font-size: 1.5rem;
  color: var(--light-color);
  line-height: 2;
}

.footer{
  background-color: var(--light-bg);
}
.footer .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}
.footer .box-container .box{
 text-align: center;
}

.footer .box-container .box i{
height: 5rem;
width: 5rem;
border-radius: 50%;
line-height: 5rem;
font-size: 2rem;
background-color: lightblue;
color: var(--white);
margin-bottom: 1rem;
}

.footer .box-container .box h3{
  font-size: 1.5rem;
  margin: 1rem 1rem;
  color: var(--black);
}

.footer .box-container .box p{
  font-size: 1.5rem;
  color: var(--light-color);
  transform: none;
  line-height: 1;
}

.footer #carte {
  position: relative;
  justify-content: center;
  display: grid;
}


/* media queries */

@media (max-width: 991px){
    html{
        font-size: 55%;
    }
  
    .header .link-btn{
        display: inline-block;
    }
  	#logoinvis{
      display: none;}
  	.home{
      margin-top: 13rem;
    }
  

@media (max-width: 768px){
    section{
        padding: 1rem 1rem;}
  	.navbar {
      background-color: #fff;
  }
    #logoinvis{
      display: none;}
    #menu-btn {
      display: inline-block;
      transition: .2s linear;
    }
  .footer {
    width: auto; 
  }
    #logomobile {
      display: inline-block;
      width: 350px;
      margin-top: 0;
      margin-bottom: 2rem;
      margin-left: auto;
      margin-right: auto;
    
}
    #menu-btn.fa-times{
        transform: rotate(180deg);
    }
    .header .nav{
        position: absolute;
        top:99%; left:0; right:0;
        background-color: var(--white);
        border-top: var(--border);
        border-bottom: var(--border);
        padding: 1rem 0;
        text-align: center;
        flex-flow: column;
        clip-path: polygon(0 0, 100% 0, 0 0);
    }
    .header .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .header .nav a{
        margin: 1rem 0;
        font-size: 2rem;
    }
    .home{
      	background-position: left;
      	margin-top: 12.5rem;
    }
    .home .content{
      margin-top: 1rem;
        width: auto;
    }
  	.home .content ul{
      width: auto;
      line-height: 1.5;
      color: var(--blue);
  	}
  
  .liste {
    padding: auto 50px auto 50px;
  }
  
    .link-btn,
    .link-btn:after {
      width: 200px;
      height: 86px;
      line-height: 88px;
      align-items: center;
    }
  	.link-btn2 {
      align-items:center;
      display: center;
      justify-content: center;
  }

    


@media (max-width: 480px){
    html{
        font-size: 50%;
    }
  	.home {
      margin-top: 0px;}
  
    .home .content h3{
        font-size: 4rem;
    }
  	.home .content ul{
      font-size: 2rem;
      position: left;}
    #logomobile {
      display: block;
      width: 350px;
      position: center;
    }
 .heading{
      font-size: 3rem;
 }
}
  
  @media (max-width: 450px){
    html{
        font-size: 50%;
    }
    .home .content h3{
        font-size: 4rem;
    }
  	.home .content ul{
      font-size: 2rem;
      position: left;}
    #logomobile {
      display: block;
      width: 350px;
      position: center;
    }
 .heading{
      font-size: 3rem;
 }
}

  @media (max-width: 450px){
    #logomobile {
      display: none;
    }
  }
