:root {
    --ink: #17211f;
    --muted: #66716d;
    --paper: #f6f7f3;
    --line: #dfe4df;
    --lime: #d9fa55;
    --dark: #193a35
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    display: flex;
    min-height: 100vh
}

aside {
    position: fixed;
    width: 250px;
    top: 0;
    bottom: 0;
    background: var(--dark);
    color: #e9f1eb;
    padding: 31px 18px;
    display: flex;
    flex-direction: column
}

.brand {
    font: 700 18px 'DM Mono';
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    padding: 0 12px
}

.brand span {
    color: var(--lime);
    font-size: 27px;
    vertical-align: -3px
}

nav {
    margin-top: 58px;
    display: grid;
    gap: 5px
}

.nav {
    width: 100%;
    border: 0;
    background: transparent;
    color: #b9c8c3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    border-radius: 8px;
    font: 600 14px Manrope;
    cursor: pointer;
    text-align: left
}

.nav:hover,
.nav.active {
    background: #31544e;
    color: white
}

.nav b {
    margin-left: auto;
    font: 12px 'DM Mono';
    color: var(--lime)
}

.side-bottom {
    margin-top: auto
}

.side-bottom>p,
.eyebrow {
    font: 11px 'DM Mono';
    letter-spacing: 1.3px;
    color: #82958f;
    margin: 0 0 14px
}

.add-feed {
    width: 100%;
    margin-top: 26px;
    border: 1px solid #54716a;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    padding: 11px;
    font: 600 13px Manrope;
    cursor: pointer
}

.add-feed:hover {
    border-color: var(--lime);
    color: var(--lime)
}

#sideCategories {
    display: grid;
    gap: 9px;
    font-size: 12px;
    color: #b9c8c3;
    padding-left: 2px
}

#sideCategories:after {
    content: 'IA\A Cybersécurité\A Web\A Mobile\A Tech';
    white-space: pre-line;
    line-height: 1.8
}

main {
    margin-left: 250px;
    max-width: 1300px;
    width: 100%;
    padding: 64px 7.5%
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end
}

h1 {
    font-size: clamp(32px, 4vw, 50px);
    letter-spacing: -2.5px;
    line-height: 1;
    margin: 0;
    font-weight: 800
}

h1 span {
    color: #7b8782
}

.refresh {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 7px;
    padding: 11px 16px;
    font: 600 13px Manrope;
    cursor: pointer
}

.refresh:hover {
    border-color: #80918b
}

.spinning {
    animation: spin .7s linear infinite
}

.filters {
    display: flex;
    gap: 8px;
    overflow: auto;
    margin: 52px 0 23px;
    padding-bottom: 2px
}

.filter {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: transparent;
    padding: 8px 14px;
    color: #56615c;
    font: 600 12px Manrope;
    cursor: pointer
}

.filter.selected {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 13px 0
}

.status {
    font: 12px 'DM Mono';
    color: #77817d
}

.status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9bd537;
    margin-right: 8px
}

.search {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #89928d;
    font-size: 21px
}

.search input {
    font: 13px Manrope;
    border: 0;
    outline: 0;
    background: transparent;
    width: 190px
}

.articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    padding-top: 20px
}

.card {
    background: #fff;
    border: 1px solid #e7eae6;
    min-height: 270px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    animation: in .4s both;
    animation-delay: var(--delay)
}

.card:hover {
    border-color: #a5b2ac;
    transform: translateY(-2px);
    transition: .2s
}

.card-top,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #89928d;
    font: 11px 'DM Mono'
}

.tag {
    color: #33534c;
    background: #e3f1e7;
    padding: 5px 8px;
    border-radius: 3px
}

.tag.IA {
    background: #eee7ff;
    color: #62527f
}

.tag.Cybersecurite {
    background: #ffede2;
    color: #985d42
}

.tag.Web {
    background: #e1f1fb;
    color: #39718c
}

.tag.Mobile {
    background: #fff3cc;
    color: #836d29
}

.card h2 {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.4px;
    margin: 20px 0 11px
}

.card h2 a {
    color: inherit;
    text-decoration: none
}

.card h2 a:hover {
    text-decoration: underline
}

.card p {
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0
}

.card footer {
    margin-top: auto;
    padding-top: 15px
}

.star {
    background: none;
    border: 0;
    font-size: 20px;
    color: #c6ceca;
    cursor: pointer;
    padding: 0
}

.star.saved {
    color: #e7bd35
}

.loading,
.empty {
    grid-column: 1/-1;
    border: 1px dashed var(--line);
    padding: 55px;
    text-align: center;
    color: var(--muted);
    display: grid;
    gap: 7px
}

.empty strong {
    color: var(--ink);
    font-size: 18px
}

dialog {
    border: 0;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 20px 60px #132b2459;
    width: min(440px, 92vw)
}

dialog::backdrop {
    background: #14251f91
}

dialog form {
    padding: 32px;
    display: grid;
    gap: 16px;
    position: relative
}

dialog h2 {
    margin: 0 0 10px;
    font-size: 25px
}

dialog label {
    font-size: 12px;
    font-weight: 700;
    display: grid;
    gap: 7px
}

dialog input {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font: 14px Manrope
}

.close {
    position: absolute;
    right: 15px;
    top: 11px;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer
}

.submit {
    border: 0;
    border-radius: 5px;
    background: var(--dark);
    color: #fff;
    padding: 12px;
    font: 700 13px Manrope;
    cursor: pointer
}

@keyframes in {
    from {
        opacity: 0;
        transform: translateY(7px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:850px) {
    aside {
        width: 64px;
        padding: 25px 8px
    }

    .brand {
        font-size: 0;
        padding: 0;
        text-align: center
    }

    .brand span {
        font-size: 26px
    }

    .nav span,
    .nav b,
    .side-bottom {
        display: none
    }

    main {
        margin-left: 64px;
        padding: 40px 6%
    }

    .articles {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:560px) {
    body {
        display: block
    }

    aside {
        position: static;
        width: 100%;
        height: 65px;
        flex-direction: row;
        align-items: center;
        padding: 10px
    }

    .brand {
        margin-right: auto
    }

    .nav {
        margin: 0;
        display: flex
    }

    .nav {
        display: contents
    }

    .nav {
        width: auto
    }

    .nav span {
        display: none
    }

    .nav {
        padding: 8px
    }

    .nav.active {
        background: transparent;
        color: var(--lime)
    }

    main {
        margin: 0;
        padding: 30px 20px
    }

    .refresh span {
        display: none
    }

    .articles {
        grid-template-columns: 1fr
    }

    .toolbar {
        gap: 12px
    }

    .search input {
        width: 115px
    }
}


/* PAGINATION HORIZON */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 60px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.page-btn {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  background: transparent;
  color: inherit;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: #f0f0f0;
  color: #171717;
}

.page-btn.active {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-dots {
  padding: 0 4px;
  color: #888;
}

.pagination-info {
  width: 100%;
  text-align: center;
  color: #888;
  font-size: 12px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .pagination {
    gap: 8px;
  }

  .page-btn {
    min-width: 35px;
    height: 36px;
    padding: 0 9px;
  }
}
