*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    --primary: 237, 94%, 81%;
    --background: #F7F9FB;
    --background-secondary: 256, 12%, 12%;
    --background-secondary-dark: 256, 10%, 10%;
    --background-secondary-light: 257, 11%, 16%;
    --text-primary: 0, 0%, 0%;
    /* Colors */
    --black: 0, 0%, 0%;
    --contour: #BFC9D9;
    --white: 0, 0%, 100%;
    --quite-gray: 0, 0%, 50%;
    --grooble: 10, 28%, 93%;
    /* Sizes */
    --heading-large: 5.6rem;
    --heading-medium: 3.6rem;
    --heading-small: 2.4rem;
    --paragraph: 1.11rem;
    --navbar-buttons: 2.4rem;
    /* misc */
    --transition-main: .175, .685, .32;
    /* Fonts */
    --font-main: "Poppins";
}

/* ===========
    Variabels
   =========== */

html,
body {
    margin: 0;
    width: 100%;
    color: hsl(var(--text-primary));
    font-family: var(--font-main);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* ============
    Typography
   ============ */

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

/* Font Size */
h1 {
    font-size: var(--heading-medium);
    margin-bottom: 50px;
}

h2 {
    font-size: var(--heading-medium);
}

h3 {
    font-size: var(--heading-small);
}

h4 {
    font-size: calc(var(--heading-small) - .2rem);
}

h5 {
    font-size: calc(var(--heading-small) - .4rem);
}

h6 {
    font-size: calc(var(--heading-small) - .6rem);
}

/* Font Weight */
h1,
h2 {
    font-weight: 700;
}

h3,
h4,
h5,
h6 {
    font-weight: 800;
}

/* Paragraphs */
p {
    margin-top: 20px;
    font-size: var(--paragraph);
}

.date-creation {
    font-size: 1rem;
    color: hsl(var(--quite-gray));
    margin-top: 0;
}

/* Images */

img.pp-nav {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 13px;
}

img.pp-profil {
    height: 230px;
    width: 230px;
    border-radius: 50%;
    object-fit: cover;
}

img.pp-preview {
    height: 200px;
    width: 200px;
    border-radius: 50%;
    border: 1px solid black;
    object-fit: cover;
    cursor: pointer;
}

img.pp-post {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5vw;
    margin-left: 0.5vw;
}

img.pp-liste {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5vw;
    margin-left: 0.5vw;
}

/* Links */


a {
    color: rgb(39, 82, 146);
    font-size: var(--paragraph);
    cursor: pointer;
}

.retour {
    color: black;
    margin-left: 2vw;
    margin-top: 1dvh;
    align-self: flex-start;
    font-size: 1.3rem;
}

.lien-connexion-inscription {
    text-decoration: none;
}

.lien-connexion-inscription:hover {
    text-decoration: underline;
}

.retour:hover {
    text-decoration: underline;
}
.lien-com{
    text-decoration: none;
}
.lien-com:hover {
    text-decoration: underline;
}




/* =========
    Buttons
   ========= */

button {
    padding: .8em 1.2em;
    border: 1px solid var(--contour);
    background-color: hsl(var(--background));
    font-size: var(--paragraph);
    cursor: pointer;
    outline: none;
}

.reset-pp{
    padding: .8em 1.2em;
    border: 1px solid var(--contour);
    background-color: hsl(var(--background));
    font-size: var(--paragraph);
    cursor: pointer;
    outline: none;
}

button:focus {
    box-shadow:
        0 0 0 2px var(--black),
        0 0 0 3px hsl(var(--white));
    border: 1px solid transparent;
}

.button-newPost {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: rgb(194, 194, 255);
    border-radius: 15px;
    box-shadow: transparent 0 0 0 3px, rgba(18, 18, 18, .1) 0 6px 20px;
    color: #121212;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    outline: none;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    z-index: 3;
    transition: box-shadow .2s, -webkit-box-shadow .2s;
}

.button-newPost:hover {
    box-shadow: #121212 0 0 0 3px, transparent 0 0 0 0;
}

/* =======
    Lists
   ======= */

ul,
ol {
    margin: 1em 0;
}

/* =======
    Tables
   ======= */

.container-table {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 33px 30px;
}

.wrap-table {
    width: 1170px;
}

table {
    border-spacing: -1;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

table th tr {
    height: 60px;
    background: #36304a;
}
table thead tr{
    background-color: rgb(128, 128, 128);
    color: white;
    height: 50px;
}

table * {
    position: relative;
  }
  table td, table th {
    padding-left: 8px;
  }
  table tbody tr {
    height: 50px;
  }
  table tr:last-child {
    border: 0;
  }
  table td, table th {
    text-align: left;
  }
  table td.l, table th.l {
    text-align: right;
  }
  table td.c, table th.c {
    text-align: center;
  }
  table td.r, table th.r {
    text-align: center;
  }
  
  
  .table100-head th{
    font-size: 18px;
    color: #fff;
    line-height: 1.2;
    font-weight: unset;
  }
  
  tr:nth-child(even) {
    background-color: #f5f5f5;
  }
  
    tr {
    font-size: 15px;
    line-height: 1.2;
    font-weight: unset;
  }
  
  .column1 {
    width: 260px;
    padding-left: 40px;
  }
  
  .column2 {
    width: 160px;
  }
  
  .column3 {
    width: 245px;
  }
  
  .column4 {
    width: 110px;
    text-align: right;
  }
  
  .column5 {
    width: 170px;
    text-align: right;
  }
  
  .column6 {
    width: 222px;
    text-align: right;
    padding-right: 62px;
  }
  
  
  @media screen and (max-width: 992px) {
    table {
      display: block;
    }
    table > *, table tr, table td, table th {
      display: block;
    }
    table thead {
      display: none;
    }
    table tbody tr {
      height: auto;
      padding: 37px 0;
    }
    table tbody tr td {
      padding-left: 40% !important;
      margin-bottom: 24px;
    }
    table tbody tr td:last-child {
      margin-bottom: 0;
    }
    table tbody tr td:before {
      font-size: 14px;
      line-height: 1.2;
      font-weight: 700;
      position: absolute;
      width: 40%;
      left: 30px;
      top: 0;
    }
    table tr td:nth-child(1):before {
        content: "Photo";
      }
    table tr td:nth-child(2):before {
      content: "Prenom";
    }
    table tr td:nth-child(3):before {
      content: "Nom";
    }
    table tr td:nth-child(4):before {
      content: "Email";
    }
    table tr td:nth-child(5):before {
      content: "Modifier";
    }
    table tr td:nth-child(6):before {
      content: "Supprimer";
    }
  
    .column4,
    .column5,
    .column6 {
      text-align: left;
    }
  
    .column4,
    .column5,
    .column6,
    .column1,
    .column2,
    .column3 {
      width: 100%;
    }
  
    tr {
      font-size: 14px;
    }
  }
  
  @media (max-width: 576px) {
    .container-table100 {
      padding-left: 15px;
      padding-right: 15px;
    }
  }


/* =======
    Forms
   ======= */

form {
    margin: 0;
}

.form-inscription{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7vw;
}

@media screen and (max-width: 768px) {
    .form-inscription{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2vh;
    }
}

.form-preview-pp{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
}

fieldset {
    margin: 0;
    padding: .5em 0;
    border: none;
}

input {
    padding: .8em 1.2em;
    font-size: var(--paragraph);
    background-color: white;
    border: 2px solid black;
}

textarea {
    padding: .5em 1em;
    font-size: var(--paragraph);
    font-family: var(--font-main);
    background-color: white;
    border: 2px solid black;
    outline: none;
}

input,
textarea {
    transition: all .2s ease-in-out;
}

input:hover,
input:focus,
textarea:hover,
textarea:focus {
    box-shadow:
        0 0 0 2px hsl(var(--black)),
        0 0 0 3px hsl(var(--white));
    border: 2px solid transparent;
}

select {
    padding: .8em 1.2em;
    border: 1px solid var(--contour);
    font-size: var(--paragraph);
    outline: none;
}


/* =========
    Flexbox
   ========= */

.flexbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flexbox-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.flexbox-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Columns */
.flexbox-col {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.flexbox-col-left {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.flexbox-col-left-ns {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
}

.flexbox-col-right {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
}

.flexbox-col-start-center {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

/* Spacings */
.flexbox-space-bet {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ========
    Navbar
   ======== */

#navbar {
    top: 0;
    padding: 0;
    width: 5em;
    height: 100vh;
    position: fixed;
    background-color: hsl(var(--background-secondary));
    transition: width .35s cubic-bezier(var(--transition-main), 1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2;
}

#navbar:hover {
    width: 16em;
}

#navbar::-webkit-scrollbar-track {
    background-color: hsl(var(--background-secondary));
}

#navbar::-webkit-scrollbar {
    width: 8px;
    background-color: hsl(var(--background-secondary));
}

#navbar::-webkit-scrollbar-thumb {
    background-color: hsl(var(--primary));
}

.navbar-items {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/* Navbar Items */
.navbar-item {
    padding: 0 .5em;
    width: 100%;
    cursor: pointer;
}

.navbar-item-inner {
    padding: 1em 0;
    width: 100%;
    position: relative;
    color: hsl(var(--quite-gray));
    border-radius: .25em;
    text-decoration: none;
    transition: all .2s cubic-bezier(var(--transition-main), 1);
}

.navbar-item-inner:hover {
    color: hsl(var(--white));
    background: hsl(var(--background-secondary-light));
    box-shadow: 0 17px 30px -10px hsl(var(--black), .25);
}

.navbar-item-inner-bonjour {
    padding: 1em 0;
    width: 100%;
    position: relative;
    color: hsl(var(--white));
    border-radius: .25em;
    text-decoration: none;
    transition: all .2s cubic-bezier(var(--transition-main), 1);
}

.navbar-item-inner-icon-wrapper {
    width: calc(5rem - 1em - 8px);
    position: relative;
}

ion-icon {

    font-size: calc(var(--navbar-buttons) - 1rem);
}

.link-text {
    margin: 0;
    width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all .35s cubic-bezier(var(--transition-main), 1);
    overflow: hidden;
    opacity: 0;
}

.link-text-bonjour {
    margin: 0;
    padding-left: 15px;
    width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all .35s cubic-bezier(var(--transition-main), 1);
    overflow: hidden;
    opacity: 0;
}

#navbar:hover .link-text {
    width: calc(100% - calc(5rem - 8px));
    opacity: 1;
}

#navbar:hover .link-text-bonjour {
    width: calc(100% - calc(5rem - 8px));
    opacity: 1;
}

/* ======
    Main
   ====== */

#main {
    margin: 0 0 0 5em;
}

#main>h2 {
    width: 80%;
    max-width: 80%;
}

#main>p {
    width: 80%;
    max-width: 80%;
}

hr {
    border: none;
    border-top: 3px double black;
    color: black;
    overflow: visible;
    text-align: center;
    height: 5px;
    width: 80%;
    margin-top: 40px;
    margin-bottom: 20px;
}

.barre-com {
    border-top: 3px dotted black;
}

.barre-com:after {
    background-color: hsl(var(--background));
    content: 'Commentaires';
    padding: 0 4px;
    position: relative;
    top: -13px;

}



/* =============
    ::Selectors
   ============= */

/* Selection */
::selection {
    color: hsl(var(--white));
    background: hsla(var(--primary), .33);
}

/* Scrollbar */
::-webkit-scrollbar-track {
    background-color: hsl(var(--background));
}

::-webkit-scrollbar {
    width: 8px;
    background-color: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
    background-color: hsl(var(--primary));
}