.titre-formation {
    font-size: 3rem;
    font-weight: 300;
    text-align: left;
    margin-bottom: 2rem;
    margin-left: 8px;
}
.formations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

.partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

.card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-template-rows: 210px auto 80px;
  grid-template-areas: "image" "text" "stats";

  font-family: roboto;
  text-align: center;
  border-radius: 5px;
  background: white;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.3);
  transition: 0.5s ease;
  cursor: pointer;
  margin:10px;
  background: #FFFFFF;
}

.card__partner {
  padding-top:3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0.5fr, 1fr));
  grid-template-rows: 120px auto;
  grid-template-areas: "image" "text";
  align-items: center;

  font-family: roboto;
  text-align: center;
  border-radius: 5px;
  background: white;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.3);
  transition: 0.5s ease;
  margin:10px;
  background: #FFFFFF;
}


.card__partner:hover {
  background: #e2e2e2;
}

.card__partner .card-text div p {
  margin: 0px;
  line-height: .6rem;
  font-size: 0.5rem;
  font-weight: 400;
  padding-bottom: .5rem;
}

.card__partner p, .card__partner ul li {
  font-size: 0.55rem;
}
.card__partner .card-text h4 {
  margin-bottom:0;
  padding-bottom: 0.25rem;
}

.card__partner .card-text {
align-self: flex-start;
}

.partners a, .partners a:visited, .partners a:hover {
color: #3a414e;
text-decoration: none;
}

@media screen and (min-width: 640px) and (max-width: 1024px) {

  .formations {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    margin:5vw;
  }
}

@media screen and (max-width: 640px) {

 .partners, .card__partner {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom:2rem;
}
.card__partner {
grid-template-rows: 120px auto;
}

.card__partner p {
  font-size: 0.8rem;
}

.card__partner .card-text div p {
  line-height: .8rem;
  font-size: 0.7rem;
  padding-bottom: 1rem;
  margin-left: 1rem;
}

}

.card:first-child {
    background: none;
    box-shadow: none;
    transition: 0.5s ease;
    cursor: default;
    border: 0px;
    grid-template-rows: auto;
}

.card:first-child:hover {
    transform: none;
    box-shadow: none;
  }

.card-intro {
    grid-area: intro; 
    display: grid;
    grid-template-columns: .666fr;
}

/* images des formations */

.card-image.gsc1 {
    background: url("/user/pages/images/GSC-01.jpg");
    background-size: cover;
}
.card-image.gsc2 {
    background: url("/user/pages/images/GSC-02.jpg");
    background-size: cover;
}
.card-image.gsc3 {
    background: url("/user/pages/images/GSC-03.jpg");
    background-size: cover;
}
.card-image.gscr1 {
    background: url("/user/pages/images/GSCR-01.jpg");
    background-size: cover;
}
.card-image.gscr2 {
    background: url("/user/pages/images/GSCR-02.jpg");
    background-size: cover;
}
.card-image.gscs1 {
    background: url("/user/pages/images/GSCS-01.jpg");
    background-size: cover;
}
.card-image.gscs2 {
    background: url("/user/pages/images/GSCS-02.jpg");
    background-size: cover;
}
.card-image.gscs3 {
    background: url("/user/pages/images/GSCS-03.jpg");
    background-size: cover;
}

/* carte formation */

.card-image {
    grid-area: image;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.card li {
    list-style: none;
}

.card ul {
    margin-left:0;
}

.card-text {
    grid-area: text;
    margin: 0 25px;
    font-size:0.8rem;
    text-align: left;
}

.card p, .card-text li  {
    font-size:0.8rem;
    font-weight: 300;
    text-align: left;
}

.card-text li  {
    margin-left: 18px;
    list-style: disc ;
  }

.card-stats {
  grid-area: stats; 
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
 
.card-intro {
    grid-area: intro; 
    display: grid;
    grid-template-columns: .666fr;
}

.box-public {
    display:inline-block;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 0.25em 1em;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: white !important;
}

.card-stats .stat {
  padding:8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
}
.card-stats .border {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.card-stats .value{
  font-size: 1.1rem;
  font-weight: 500;
}
.card-stats .value sup{
  font-size:12px;
}
.card-stats .type{
  font-size:0.8rem;
  font-weight: 300;
  text-transform: uppercase;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 5px 5px 15px rgba(0,0,0,0.6);
}

.formation-titre h4, .card-text h4 {
   font-size: 1.2rem;
   margin-top:0;
}

.formation-titre p, .formation-titre h4 {
   padding:20px;
}

.card-text h4  {
    padding: 20px 0;}

.formation-titre p {
    margin-bottom: 0;
 }

/* CAT1 */

.cat1 {
    color:#222830;
}

.bg-cat1, .cat1 .card-stats {
    background: #FF0101;
}

/* CAT2 */

.cat2 {
    color: #222830;
}

.bg-cat2, .cat2 .card-stats {
    background: #A80000;
}

/* CAT3 */

.cat3 {
    color:#222830;
}

.bg-cat3, .cat3 .card-stats {
    background-color:#070510;
}

td, th {
    width: 20%;
    height: 3rem;
    text-align: center;
    background: rgb(235, 235, 235);

  }
  th {
    background: grey;
    border-color: white;
    font-size: .7rem;
    color: white;
    padding: 5px;
  }

tr:first-child th {
      font-size: 1.5rem;
      font-weight: 500;
  }
tr:first-child th:first-child {
    background: none;
  }

  tr:first-child th:nth-child(2) {
    background: #FF0101;
  }

  tr:first-child th:nth-child(3) {
    background: #A80000;
  }

  tr:first-child th:nth-child(4) {
    background: #070510;
  }

  .card__benefit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .card__item_benefit {
    border-radius: 15px;
    padding: 10px;
    color: black;
    box-shadow: 2px 3px 15px rgba(5, 95, 95, 0.4);
    background: rgb(168,0,0,.85);

    font-size: 1rem;
    font-weight: 500;
    margin: 8px 0;
  }
  
  .card__benefit > div {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-gap: 1rem;
  }

  .element {
    display:flex;
    align-items:center;
  }
  
  .card__item_benefit:nth-child(2) {
    background: rgb(168,0,0);
    background: linear-gradient(180deg, rgba(168,0,0,0.1) 0%, rgba(168,0,0,0.3) 100%);
    margin-top: 30px;
  }
  
  .card__item_benefit:nth-child(3){
    background: rgb(168,0,0);
    background: linear-gradient(180deg, rgba(168,0,0,0.3) 0%, rgba(168,0,0,0.5) 100%);
  }
  
  .card__item_benefit:nth-child(4){
    background: rgb(168,0,0);
    background: linear-gradient(180deg, rgba(168,0,0,0.5) 0%, rgba(168,0,0,0.8) 100%);
  }
  
  .card__item_benefit:last-child{
  background: rgb(3, 0, 0);
  line-height: 1.5;
  font-weight: 400;
  color: white;
  padding-bottom: 12px;
  }
  
  .benefit h4, .benefit h3 {
    margin-top:0;
    margin-bottom:0;
  }