@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

/*structure*/
body {
    margin: 0;
}
  
html, body {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: #000000;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

h1, .name, .location, .tagline {
    font-weight: 400;
    font-style: normal;
}

/*navigation*/
/*passer au contenu*/
.skip-links {
    opacity: 0;
    height: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    padding: 6px 0;
    background-color: #DB8876;
    text-decoration: none;
    color: #000000;
    display: block;
    max-width: 170px;
    margin: 0 auto;  
}

.skip-links:focus {
    opacity: 1;
    height: auto;
    margin: 4px auto;
    
}

/*header*/
.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header__wrapper {
    display: flex;
    flex-direction: column;
}

#navbar{
    margin-top: 40px;
}

/*tag dans la navigation */
nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin: 0;
}

nav ul li a {
    border: 0.5px solid #C4C4C4;
    border-radius: 11px;
    padding: 2px 5px;
    margin-right: 5px;
    font-size: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #901C1C;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a:focus,
a.actived{
    background-color: #901C1C;
    color: #fff;
}

.hidden {
    overflow:hidden;
}


/*6 photographes - main*/
main {
    margin: 0 auto;
}

h1 {
    position: absolute;
    color: #901C1C;
    margin: 0;
    font-size: 14px;
    top: 50px;
    right: 20px;
}   

section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /*margin-bottom: 5rem;*/
}

/*photographers cards*/
.profiles {
    text-align: center;
    width: 350px;
    margin-bottom:30px;
}

section img {
    background-color: #565755;
    border-radius: 50%;
    box-shadow: 0 0 0.8rem rgb(134 134 134 / 43%);
    height: 200px;
    margin: 0 auto;
    object-fit: cover;
    overflow: hidden;
    width: 200px;    
}

.name {
    font-size: 36px;
    color: #D3573C;
    margin: 20px 0 0;
}

.location, .tagline, .price {
    margin: 0;
}

.location {
    font-size: 13px;
    color: #901C1C;
}

.tagline {
    font-size: 10px;
}

.price {
    font-size: 9px;
}

.filter {
    display: flex;
    justify-content: center;
    margin-right: 3rem;
    margin-top: .5rem;
}

section ul li {
    list-style: none;
}

section ul li a{
    border: .5px solid #C4C4C4;
    border-radius: 11px;
    color: #901C1C;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    padding: 2px 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

section ul li a:hover, 
section ul li a:focus{
    background-color: #901C1C;
    color: #fff;
}


/*-- RESPONSIVE--*/
@media (min-width:375px) {
    .logo img {
        width:150px;
    }

    h1{
        font-size: 14px;
        top: 60px;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 22px;
        top: 55px;
    }
}

@media (min-width: 992px) {
    .header__wrapper {
      width: calc(100% - 300px);
      align-items: center;
      flex-direction: row;
    }

    #navbar {
      margin: 0 0 0 72px;
    }

    h1 {
        font-size: 30px;
        top: 50px;
    }

    .logo img {
        width:200px;
    }
    
    main {
      max-width: 1200px;
      margin: 100px auto;
    }
}

@media (min-width: 1200px) {
    h1 {
        right: calc((100% - 1200px) / 2);
        font-size: 36px;
    }
}

