@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  * {
    margin: 0;
  }
  
  body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  
  /* 5. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 6. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 7. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 8. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  
  :root{
    /* Primary */

--Red: hsl(0, 78%, 62%);
--Cyan: hsl(180, 62%, 55%);
--Orange: hsl(34, 97%, 64%);
--Blue: hsl(212, 86%, 64%);

 /* Neutral */

--Very-Dark-Blue: hsl(234, 12%, 34%);
--Grayish-Blue: hsl(229, 6%, 66%);
--Very-Light-Gray: hsl(0, 0%, 98%);

--ff-poppine: "Poppins", serif;

--fw-200: 200;
--fw-400: 400;
--fw-600: 600;

  }

  body{
    font-family: var(--ff-poppine);
    font-weight: var(--fw-200);
    font-size: 0.938rem;
    background-color: var(--Very-Light-Gray);

  }

  main{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
.header{
    /* border: 3px solid darkgreen; */
    text-align: center;
    margin: 5rem 2rem 4rem 2rem;
    margin-block: rem;
    max-width: 600px;

}
.header__h1{
    font-weight: var(--fw-200);
    color: var(--Very-Dark-Blue);

    font-size: 1.5rem;
}

.header__h2{
    font-weight: var(--fw-600);
    color: var(--Very-Dark-Blue);
    padding-bottom: 1rem;
}

.header__text{
    font-weight: var(--fw-400);
    color: var(--Grayish-Blue);
}

  .cards{
    /* border: 2px solid red; */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* margin: 2rem; */
    margin-inline: 2rem;
    margin-bottom: 3rem;
  }

  .card{

    /* border: 1px solid black; */
    display: flex;
    flex-direction: column;
    max-width: 400px;
    /* height: 300px; */
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.1);    
  }

  .title__card{
    font-size: 1.3rem;
    color: var(--Very-Dark-Blue);
    font-weight: var(--fw-600);
    margin-bottom: 0.6rem;
    
  }

  .text__card{
    font-weight: var(--fw-400);
    font-size: 0.8rem;
    line-height: 1.6rem;
    color: var(--Grayish-Blue);
    margin-bottom: 1.5rem;
  }

  picture{
    /* border: 1px solid red; */
    align-self: flex-end;
    margin-top: 0.6rem;
  }
  /* .card:last-child{
    border: 4px solid red;
    flex-direction: ;
  }  */

  .supervisor{
    border-top: 5px solid var(--Cyan);
  }

  .team_build{
    border-top: 5px solid var(--Red);
  }

  .karma{
    border-top: 5px solid var(--Orange);
  }

  .calcul{
    border-top: 5px solid var(--Blue);
  }

/*responsive works*/

@media (min-width: 600px) {
    .header__h1, .header__h2{
        font-size: 2.7rem;
    }
    .header__text{
        font-size: 1.119rem;
    }
    .cards{
        display: grid;
        grid-template-columns: repeat(2 1fr);
        grid-template-rows: repeat(3 1fr);
        grid-template-areas:
        "start  med1   end"
        "start  med2    end";
        gap: 2rem;
        /* min-width: 600px; */
    }

    .card{
      min-height: 300px;
    }

    .title__card{
        font-size: 1.7rem;
    }

    .text__card{
        font-size: 1rem;
    }
    .supervisor{
        grid-area: start;
        align-self: center;
    }
    .team_build{
        grid-area: med1;
    }
    .karma{
        grid-area: med2;
    }
    .calcul{
        grid-area: end;
        align-self: center;
    }
    picture img{
      width: 80px;
    }
}   