@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1+Code:wght@100..700&family=Playwrite+FR+Moderne:wght@100..400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yellowtail&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Hand:wght@400..700&display=swap');

:root {
  --primary-color: #c72727;
  --secondary-color: #f99500;
  --ternary-color: #009cff;;
  --light-color: #f3f3f3;
  --dark-color: #333;
  --max-width: 1100px;
}

.category {
  --sports-color: #f99500;
  --ent-color: #a66bbe;
  --tech-color: #009cff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  background: var(--light-color);
}

a {
  color: #333;
  text-decoration: none;
}

ul {
  list-style: none;
}

p,.p {
  margin: .5rem 0;
}

img {
  width: 100%;
}

.hide{
  display: none;
}

.border{
  border: 1px solid var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Staatliches', cursive;
  margin-bottom: .55rem;
  line-height: 1.3;
}
p,.p{
  text-align: justify;
}
/* Utility */
.df{
  display: flex;
}
.jcc{
  justify-content: center;
}
.jce{
  justify-content: end;
}
.jcsb{
  justify-content: space-between;
}
.aic{
  align-items: center;
}
.f1{
  flex: 1;
}
.f2{
  flex: 2;
}
.f3{
  flex: 3;
}
.fdc{
  flex-direction:column
}
.fww{
  flex-wrap: wrap;
}
.fwn{
  flex-wrap: nowrap;
}

.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 2rem;
  overflow: hidden;
}

.category {
  display: inline-block;
  color: #fff;
  font-size: 0.55rem;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}

.category-sports { background: var(--sports-color) }
.category-ent { background: var(--ent-color) }
.category-tech { background: var(--tech-color) }

.btn {
  display: inline-block;
  border: none;
  background: var(--dark-color);
  color: #fff;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}

.btn.btn-bordered{
  border: 1px solid var(--dark-color);
}

.btn.btn-no-bgc{
  background-color: transparent;
}

.btn.btn-sm {
  padding: 0.25rem 1rem;
}

.btn-light { background: var(--light-color) }
.btn-primary { background: var(--primary-color) }
.btn-secondary { background: var(--secondary-color) }
.btn-no-border{ border:none; padding: 3px;}
.btn-success { background: rgb(5, 148, 5) }

.text-light { color: var(--light-color) }
.text-primary { color: var(--primary-color) }
.text-secondary { color: var(--secondary-color) }
.text-dark { color: var(--dark-color) }
.text-success { color: rgb(5, 148, 5) }


.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}
.card1-container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card1-container .card{
  font-size: 0.9rem;
  font-family: "M PLUS 1 Code", monospace;
  border: 1px solid var(--light-color);
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: box-shadow 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
  color: var(--light-color);
  background: linear-gradient(90deg, #c72727 10%, #333 0);
  transition: all 0.3s ease-in-out;
}


.card1-container .card code{
  font-weight: 500;
}

.card1-container .card:hover{
  background: linear-gradient(90deg, #c72727 90%, #333 0);
  animation-name: onHoverAnimation;
  animation-duration: 0.3s;
    animation-timing-function: linear;
    animation-delay: 0ms;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
}

.card1-container .card span{
  display: flex;
  width: 100%;
  justify-content: space-between;
}

/* ... */
.card {
  background: #fff;
  padding: 1rem;
}

.card.exercise p, .p{
  font-family: "M PLUS 1 Code", monospace;
  background-color: var(--dark-color);
  color: #eee;
  padding: 10px;
  letter-spacing: 0.15rem;
}

.bg-dark {
  background: var(--dark-color);
  color: #fff;
}

.bg-primary {
  background: var(--primary-color);
  color: #fff;
}

.bg-secondary {
  background: var(--secondary-color);
  color: #fff;
}
.br-5{
  border-radius: 5px;
}
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark a,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary a,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary a {
  color: #fff;
}

.py-0 { padding: 1rem 0 }
.py-1 { padding: 1.5rem 0 }
.py-2 { padding: 2rem 0 }
.py-3 { padding: 3rem 0 }
.px-0 { padding: 0 1rem }
.px-1 { padding: 0 1.5rem }
.px-2 { padding: 0 2rem }
.px-3 { padding: 0 3rem }

.pt-0 { padding-top: 1rem }
.pt-1 { padding-top: 1.5rem }
.pt-2 { padding-top: 2rem }
.pt-3 { padding-top: 3rem }

.p-0 { padding: 1rem }
.p-05 { padding: 0.5rem }
.p-1 { padding: 1.5rem }
.p-2 { padding: 2rem }
.p-3 { padding: 3rem }

.my-0 { margin: 1rem 0 }
.my-1 { margin: 1.5rem 0 }
.my-2 { margin: 2rem 0 }
.my-3 { margin: 3rem 0 }
.mx-1 { margin: 0 1.5rem }
.mx-0 { margin: 0 1rem }
.mx-2 { margin: 0 2rem }
.mx-3 { margin: 0 3rem }
.mr-0 { margin-right: 1rem }
.mr-1 { margin-right: 1.5rem }
.mr-2 { margin-right: 2rem }
.mr-3 { margin-right: 3rem }
.ml-0 { margin-left: 1rem }
.ml-1 { margin-left: 1.5rem }
.ml-2 { margin-left: 2rem }
.ml-3 { margin-left: 3rem }
.mt-0 { margin-top: 1rem }
.mt-1 { margin-top: 1.5rem }
.mt-2 { margin-top: 2rem }
.mt-3 { margin-top: 3rem }
.mb-0 { margin-bottom: 1rem }
.mb-1 { margin-bottom: 1.5rem }
.mb-2 { margin-bottom: 2rem }
.mb-3 { margin-bottom: 3rem }
.m-0 { margin: 1rem }
.m-1 { margin: 1.5rem }
.m-2 { margin: 2rem }
.m-3 { margin: 3rem }

.l-heading {
  font-size: 3rem;
}

.list li {
  padding: .5rem 0;
  border-bottom: #555 dotted 1px;
  width: 90%;
}

.list li.hidden {
  border-bottom: none;
  display: none;
}

.list li a:hover {
  color: var(--primary-color) !important;
}

/* Inner page grid container */
.page-container {
  display: grid;
  grid-template-columns: 5fr 2fr;
  margin: 2rem 0;
  grid-gap: 1.5rem;
}

.page-container > *:first-child {
  grid-row: 1 / span 3;
}
/* Logo */
.top-logo{
  display: flex;
  justify-content: start;
  align-items: end;
}
.top-logo span{
  color: white;
  background-color: var(--primary-color);
  font-family: "M PLUS 1 Code", monospace;
}
/* Navigation */
#main-nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

#main-nav .container {
  display: grid;
  grid-template-columns: 6fr 3fr 2fr;
  padding: 1rem;
  align-items: center;
}

#main-nav .logo {
  width: 180px;
}

#main-nav ul {
  justify-self: end;
  display: flex;
}

#main-nav ul li a {
  padding: 0.75rem;
  font-weight: bold;
}

#main-nav ul li a.current {
  background: var(--primary-color);
  color: #fff;
}

#main-nav ul li a:hover {
  background: var(--light-color);
  color: var(--dark-color);
}

#main-nav .social {
  justify-self: center;
}

#main-nav .social i {
  color: #777;
  margin-right: .5rem;
}

/* Showcase */
.partners{
  background-color: var(--light-color);
}
#showcase {
  color: #fff;
  background: #333;
  padding: 2rem;
  position: relative;
}

#showcase:before {
  content: '';
  background: url('../img/ioc_logo.png') no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  background-color: white;
}

#showcase .showcase-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  height: 50vh;
}

#showcase .showcase-container h1{
  color: var(--light-color);
  font-size: 3rem;
  font-family: "M PLUS 1 Code", monospace;
}

#showcase .showcase-content {
  z-index: 1;
}

#showcase .showcase-content p {
  margin-bottom: 1rem;
}

/* Home Articles */
#home-articles .articles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}

.articles-container.list1{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 1rem;
}

#home-articles .articles-container > *:first-child,
#home-articles .articles-container > *:last-child {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  align-items: center;
  grid-column: 1 / span 2;
}

#home-articles .articles-container > *:last-child {
  grid-column: 2 / span 2;
}

#article .meta {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eee;
  padding: 0.5rem;
}

#article .meta .category {
  margin-top: 0.4rem;
}
article .description{
  color: var(--light-color);
}

/* Footer */
#main-footer {
  background: var(--dark-color);
  color: #fff;
}

#main-footer img {
  width: 150px;
}

#main-footer a {
  color: #fff;
}

#main-footer .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
}

#main-footer .footer-container > *:last-child {
  background: #444;
  grid-column: 1 / span 4;
  padding: .5rem;
  text-align: center;
  font-size: 0.75rem;
}

#main-footer .footer-container input[type='email'] {
  width: 90%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

#main-footer .footer-container input[type='submit'] {
  width: 90%;
}

/* Form */
.form-control{
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label{
  display: block;
}

.form-control{
  border: none;
  background: #eee;
  color: #333;
  font-size: 16px;
  border-radius: 5px;
}

.form-control:focus{
  outline: none;
  border: 1px solid var(--primary-color);
}


.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal .content{
  background: #fff;
  padding: 2rem;
  border-radius: 5px;
  max-width: 500px;
}

/* progressbar */
.progress-bar{
  width: 100%;
  height: 20px;
  background: #999;
  border-radius: 5px;
  margin-bottom: 1rem;
  position: relative;
  margin-bottom: 0;
}

.progress-bar::before{
  content: '';
  height: 100%;
  background: var(--primary-color);
  border-radius: 5px;
  width: 83%;
  position: absolute;
  left: 0;
}

.places{
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.places span:first-child{
  color: var(--primary-color);
}
.places span:last-child{
  color: #999;
}

.editor-container{
  width:100%;
  height: 540px;
  margin: 0 auto;
  position: relative;
  border: 3px solid var(--primary-color);
}

#editor{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  font-size: 20px;
}

.editor-menu{
  padding: 5px;
  background: var(--light-color);
  color: var(--dark-color);
  display: flex;
  justify-content: end;
  align-items: center;
  flex-wrap: wrap;
}

.editor-menu button{
  cursor: pointer;
  /* margin-left: 2px; */
}
.editor-menu select{
  margin-left: 5px;
  padding: 5px;
  border-color: #333;
  background: #eee;
  color: #333;
  border-radius: 5px;
  font-size: 16px;
  margin-left: 10px;
  padding-right: 20px;
  transition: background 0.3s;
}
.icon{
  width:20px;
  cursor: pointer;
}

.icon.x00{
  width:15px
}
.icon.x05{
  width:25px
}
.icon.x1{
  width:30px
}

.icon.x2{
  width:40px
}
.icon.x3{
  width:50px
}

.title-exo{
  display: flex;
  align-items: center;
}

.solution{
  display: flex;
  align-items: end;
}
.solution h3{
  position: relative;
  bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.solution .icon{
  width: 40px;
}

.exercise.homework {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-gap: 1rem;
  align-items: center;
  grid-column: 1 / span 2;
}
.form-add-article input{
  font-family: 'Lato', sans-serif;
}
.no-copy{
  position: relative;
}
.no-copy::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  display: flex;
  z-index: 10;
}

.tags{
  font-family: 'Lato', sans-serif;
  /* background-color: #e8e8e8; */
  margin: 0 2px;
  /* padding: 3px 7px; */
  /* border-radius: 10px; */
  color: var(--primary-color);
  font-style: italic;
  /* border: 1px dotted var(--primary-color); */
}

.pagination{
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--light-color);
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--dark-color);
  border-radius: 5px;
}

.pagination a, strong{
  font-size: 0.7rem;
  margin-right: 0.5rem;
  border: 2px solid var(--primary-color);
  padding: 0.5% 1%;
  border-radius: 5px;
  color: var(--light-color);
}

.pagination strong{
  background-color: var(--primary-color);
}
/* ajoout de cours */

.title{
  margin-bottom: 10px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}
.remark{
  margin-top: 10px;
  color: var(--light-color);
  line-height: 1.5;
  letter-spacing: 0.1rem;
  word-spacing: 0.2px;
  text-align: justify;
  font-weight: 400;
  background: var(--dark-color);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-color);
  overflow-wrap: break-word;
  font-style: italic;
}
.remark::before{
  color: var(--light-color);
  content: 'Remarques';
  font-family: 'Staatliches', cursive;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--primary-color);
  margin-right: 10px;
  font-style: italic;
  border-radius: 10px 0 10px 0;
  box-shadow: -4px -4px var(--light-color);
}

.tips{
  margin-top: 10px;
  color: var(--secondary-color);
  line-height: 1.5;
  letter-spacing: 0.1rem;
  word-spacing: 0.2px;
  text-align: justify;
  font-weight: 400;
  background: #e8e8e8;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--secondary-color);
  overflow-wrap: break-word;
  font-style: italic;
}
.tips::before{
  color: var(--light-color);
  content: 'Tips';
  font-family: 'Staatliches', cursive;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--secondary-color);
  margin-right: 10px;
  font-style: italic;
  border-radius: 10px 0 10px 0;
  box-shadow: -4px -4px var(--dark-color);
}

.nb{
  margin-top: 10px;
  color: white;
  line-height: 1.5;
  letter-spacing: 0.1rem;
  word-spacing: 0.2px;
  text-align: justify;
  font-weight: 400;
  background: #009cff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--secondary-color);
  overflow-wrap: break-word;
  font-style: italic;
}
.nb::before{
  color: var(--dark-color);
  content: 'Nota Bene';
  font-family: 'Staatliches', cursive;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--light-color);
  margin-right: 10px;
  font-style: italic;
  border-radius: 10px 0 10px 0;
  box-shadow: -4px -4px var(--dark-color);
}

.syntax{
  font-size: 1.2rem;
  margin-top: 10px;
  color: var(--light-color);
  line-height: 1.5;
  letter-spacing: 0.1rem;
  word-spacing: 0.2px;
  text-align: justify;
  font-weight: 400;
  background: var(--dark-color);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--light-color);
  overflow-wrap: break-word;
}

.syntax::before{
  color: var(--light-color);
  content: 'Syntaxe';
  font-family: 'Staatliches', cursive;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--primary-color);
  margin-right: 10px;
  font-style: italic;
  border-radius: 10px 0 10px 0;
  box-shadow: -4px -4px var(--light-color);
}

.syntax span,
.syntax span.p{
  color: var(--primary-color);
}
.syntax span.s{
  color: var(--secondary-color);
}
.syntax span.t{
  color: var(--ternary-color);
}
.video{
  display: flex;
  justify-content: center;
  margin-top: 10px;
  color: var(--light-color);
  line-height: 1.5;
  letter-spacing: 0.1rem;
  word-spacing: 0.2px;
  text-align: justify;
  font-weight: 400;
  background: var(--light-color);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--light-color);
  overflow-wrap: break-word;
}

.publish{
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  /* color: var(--primary-color); */
}

#editor.fullscreen{
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: auto;
  /* background: rgba(0, 0, 0, 0.7); */
  display: flex;
  justify-content: center;
  align-items: center;
}



input[type="checkbox"], label{

  cursor: pointer;

} 

.playlist{
  border: 1px solid;
  padding: 2px 5px;
  border-radius: 5px;
  background-color : var(--dark-color);
  color : white;
}

table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid black;
}

@keyframes onHoverAnimation {
  0% {
    background: linear-gradient(90deg, #c72727 10%, #333 0);
  }
  10% {
    background: linear-gradient(90deg, #c72727 10%, #333 0);
  }
  20% {
    background: linear-gradient(90deg, #c72727 20%, #333 0);
  }
  30% {
    background: linear-gradient(90deg, #c72727 30%, #333 0);
  }
  40% {
    background: linear-gradient(90deg, #c72727 40%, #333 0);
  }
  50% {
    background: linear-gradient(90deg, #c72727 50%, #333 0);
  }
  60% {
    background: linear-gradient(90deg, #c72727 60%, #333 0);
  }
  70% {
    background: linear-gradient(90deg, #c72727 70%, #333 0);
  }
  80% {
    background: linear-gradient(90deg, #c72727 80%, #333 0);
  }
  90% {
    background: linear-gradient(90deg, #c72727 85%, #333 0);
  }
  100% {
    background: linear-gradient(90deg, #c72727 90%, #333 0);
  }
}
