@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&family=Roboto:ital,wght@0,100..900;1,100..900&family=Silkscreen:wght@400;700&display=swap');

html {
    font-size: .625em;
}

:root {
  
  /* Grid */
  --grid-number-columns: 12;
  --grid-row-height: 90px;
  
  /* Colors */
  --body-background-color: #565c68;
  --main-title-color: #958479;
  --card-background-color: #d2dadd;
  --card-title-color: #ffffff;
  --card-subtitle-color: #929a9c;
  --card-border-color: #edeceb;
  --card-mini-title-color: #000000;
  --text-color: #72757a;
  
  /* Fonts */
  --font-text: "Poppins", sans-serif;
  --font-title: "Poppins", sans-serif;
  --font-main-title: "Silkscreen", sans-serif;
  
  /* Mobile */
  @media screen and (max-width: 767px) {
    
    /* Grid */
    --grid-number-columns: 6;
    --grid-row-height: 40px;
    
    /* Colors */
    --main-title-color: blue;
    
  }
  
  /* dark theme 
  --body-background-color: #242d3a;
  --main-title-color: #ffffff;
  --card-background-color: #0f1016;
  --card-title-color: #ffffff;
  --card-border-color: #343d44;
  --card-mini-title-color: #ffffff;
  --text-color: #919294;
  */
  
}


body {
  margin: 0;
  padding: 0;
  background: var(--body-background-color);
  font-family: var(--font-text);
  font-weight: 400;
  font-style: normal;

  /* centrage vertical de tout le site */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

img {
  display: block;
  max-width: 100%;
}

p {
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--text-color);
  margin: 0;
}

/* Photo de profil */

.avatar {
  position: relative;
  max-width: 70px;
  overflow: hidden;
  border-radius: 50%;
  
  &::before {
    content: '';
    position: absolute;
    display: block;
    top: .2rem;
    left: .2rem;
    right: .2rem;
    bottom: 0;
    border-radius: 50%;
    background-color: #e5d2be;
    z-index: 0;
  }
  
  &::after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: var(--card-background-color);
    z-index: 1;
  }
  
  img {
    position: relative;
    z-index: 2;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem;

/* Mobile */
  @media screen and (max-width: 767px) {
  padding: 0.5rem;
}
}


.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-number-columns), 1fr);
  grid-auto-rows: var(--grid-row-height);
  gap: 1.4rem;
}

/* Toutes les card */
.card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--card-border-color);
  background: var(--card-background-color);
  box-shadow: rgba(100, 100, 111, 0.05) 0 5px 24px 0;
  
  /* Card info Charles */
  &:nth-child(1) {
    grid-column: span 3;
    grid-row: span 3;
    
    /* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 6;
      grid-row: span 5;
      /*border: 5px solid red;*/
    }
    
  }
  
  /* dimension des card selon leur n° d'ordre */
  
  /* Card mare */
  &:nth-child(2) {
    grid-column: span 2;
    grid-row: span 3;
    
    /* Mobile */
    @media screen and (max-width: 767px) {
      grid-row: span 4;
    }
  }
  
  /* Card street */
  &:nth-child(3) {
    grid-column: span 2;
    grid-row: span 3;
    
    /* Mobile */
    @media screen and (max-width: 767px) {
      grid-row: span 4;
    }
  }
  
  /* Card Mes albums */
  &:nth-child(4) {
    grid-column: span 3;
    grid-row: span 3;
    
    /* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 2;
      grid-row: span 4;
    }
  }
  
  /* Card Alain */
  &:nth-child(5) {
    grid-column: span 2;
    grid-row: span 3;

/* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 3;
      grid-row: span 3;
    }


  }
    
  /* Card Dernier Voyage */
  &:nth-child(6) {
    grid-column: span 3;
    grid-row: span 3;
  }
  
  /* Card Plans Drone */
  &:nth-child(7) {
    grid-column: span 2;
    grid-row: span 3;

    /* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 3;
      grid-row: span 3;
    }


  }
  
  /* Card Faune & flore */
  &:nth-child(8) {
    grid-column: span 2;
    grid-row: span 3;

/* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 3;
      grid-row: span 3;
    }

  }

  /* Card Pralo */
  &:nth-child(9) {
    grid-column: span 3;
    grid-row: span 3;
  }
  
  /* Card Tutos Piwigo */
  &:nth-child(10) {
    grid-column: span 2;
    grid-row: span 1;

/* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 3;
      grid-row: span 1;
    }

  }

  /* Card Tutos Synology */
  &:nth-child(11) {
    grid-column: span 2;
    grid-row: span 1;

    /* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 3;
      grid-row: span 1;
    }

  }
  
  /* Card Pierre */
  &:nth-child(12) {
    grid-column: span 1;
    grid-row: span 1;

/* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 1;
      grid-row: span 1;
    }

  }
  
  /* Card Datardigrade */
  &:nth-child(13) {
    grid-column: span 1;
    grid-row: span 1;

/* Mobile */
    @media screen and (max-width: 767px) {
      grid-column: span 1;
      grid-row: span 1;
    }



  }
}

/* Card Charles */
.card-charles {
  /*display: flex;
  flex-direction: column;
  justify-content: space-between; */
  
  .heading {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    
    .title {
      color: var(--main-title-color);
      font-size: 2.4rem;
    }
  }
  
  .main-title {
    color: var(--main-title-color);
  }
}

/* Card Type Picture */
.card-type-picture {
  padding: 0;
  
  &:hover {
    img {
      transform: scale(1.2);
      transition: 1.2s;
    }
  }
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
  }
  
  .overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0));
    text-align: center;
    padding: 4rem 2rem 2rem;

    .overlay-title {
      color: var(--card-title-color);
      font-size: 1.8rem;
      font-weight: 400;
      line-height: 1.3;
      margin: 0;
    }

    .overlay-subtitle {
      color: var(--card-subtitle-color);

    }

  }
}

/* Card type mini */
.card-type-mini {
  display: flex;
  align-items: center;
  padding: 2rem;
  
  .mini-content {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .mini-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--card-mini-title-color);
  }
  
  img {
    width: 30px;
    height: 30px;
  }
}

/* Card type tiny */
.card-type-tiny {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;

  .mini-title {
    font-size: 1.2rem;
    font-weight: 500;
     text-align: center;
    color: var(--card-mini-title-color);
    margin: 0;
  }

  img {
    width : 30px;
    height: 30px;
    margin: 0 auto .5rem;
  }

/* Mobile */
    @media screen and (max-width: 767px) {
      img {
    width : 20px;
    height: 20px;
    margin: 0 auto .1rem;
  }
      .mini-title {
    font-size: 0.8rem;

    }

}
}

