
* {
    box-sizing: border-box;
}

html {
    background-image: url('https://www.editionsduroure.com/waiting/fond.jpg');
    background-position: top center;
    font-family: "Open sans", "Arial", sans-serif;
    padding: 0;
    margin: 0;
}

body {
    position: relative;
    min-height: 100vh;
    padding: 30px 10px;
    margin: 0;
    overflow: clip;
    overflow-y: scroll;
}

header,
footer,
main {
    max-width: 1265px;
    margin-right: auto;
    margin-left: auto;
}

body::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../img/overlay.png");
    background-repeat: no-repeat;
    background-size: cover  ;
    background-position: center bottom;
    opacity: 0.055;
    pointer-events: none;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: #7b7b7b;
    font-size: 14px;
}

header ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 0 0 0 3em;
    margin: 0;
    border-bottom: 1px solid #3333;
}

header ul li a {
    padding: 1em;
    display: block;
}

header ul li:last-child {
    margin-right: 0;
}

header ul li a {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

header ul li.active a {
    color: #A11D06;
}

header li.menu-acces-libre a::before {
    content: "*";
    display: inline-block;
    position: absolute;
    height: 16px;
    width: 16px;
    border-radius: 0;
    background-color: #A11D06;
    right: 9px;
    top: 4px;
    color: #fff;
    text-align: center;
    font-size: 24px;
    line-height: 1.1;
}

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: #7b7b7b;
    font-size: 14px;
    padding-bottom: 120px;

    p {
        font-size: 12px;
    }
}

.cookie-button {
    border: 1px solid #00000022;
    background: #fff;
    padding: 10px 20px;
    color: #000;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    margin: 0 auto 1rem;

    &:focus {
        outline: 2px solid #A11D06;
    }

    &:hover {
        background: #A11D06;
        color: #fff;
        cursor: pointer;
    }

    &:active {
        background: #ea6c54;
        text-shadow: 0 0 1px #000;
        color: #fff;
    }

    &.cookie-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        width: 100%;
        border-radius: 0;
        background-color: #fffa;
        backdrop-filter: blur(3px);
    }
}

h1 {
    text-align: right;
    font-size: 28px;
    font-weight: 400;
    clear: both;
}

h1 span {
    max-width: 777px;
    margin-bottom: 30px;
    float: right;
}

hr {
    border-top: 5px solid #A11D06;
    margin: 30px 0;
    clear: both;
}

p {
    font-size: 20px;
}

#roure_tact,
.roure_tact,
a {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

#roure_tact:hover,
#roure_tact:focus,
.roure_tact:hover,
.roure_tact:focus,
a:hover, a:focus {
    color:#A11D06;
}

hr::before {
    content:"";
    clear: both;
}

#logo {
    mix-blend-mode: multiply;
    height: 100px;
}

#roure_tact,
.roure_tact {
    position: relative;
}

.popover {
    position: absolute;
    left: 0;
    top: calc(100% + 15px);
    color: #fff;
    font-weight: 300;
    background: #8ab067;
    box-shadow: 0 5px 20px #00000033;
    border-radius: 1rem;
    white-space: nowrap;
    padding: .5rem 1rem;
    font-size: 15px;
    animation: appear ease-in-out 300ms;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.popover::before {
    content:'';
    position: absolute;
    top: -20px;
    left: 20px;
    border: 10px solid transparent;
    border-bottom: 10px solid #8ab067;
}

.action {
    display: inline-block;
    height: 30px;
    fill: #fff;
    vertical-align: middle;
}

.action:hover,
.action:hover svg {
    color: #000;
    fill: #000;
}

.action:hover svg {
    animation: mailStend ease-in-out 1000ms infinite both;
}

@keyframes mailStend {
    0%,100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.action svg {
    display: inline-block;
    vertical-align: inherit;
    width: 30px;
    height: 30px;
}

.pdf-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px -15px;
    width: auto;
}

.input-search-container {
    order: -1;
    width: 100%;
    margin: 0 0 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.input-search-container input {
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    font-size: 16px;
    background-color: #fffd;
    background-image: url('../img/search.svg');
    background-repeat: no-repeat;
    background-size: 30px;
    background-position: right 10px center;
    backdrop-filter: blur(10px);
    border: 1px solid #00000022;
    margin: 0;
}

.input-search-container input:focus,
.input-search-container input:hover {
    outline: none;
    border-color: #A11D06;
}

.pdf-container .date-item,
.pdf-container .pdf-container-item {
    margin: 15px;
    width: calc(50% - 30px);
}

.pdf-item {
    display: flex;
    align-items: center;
    background: #fffc;
    box-shadow: 0 6px 10px 3px #0002;
    overflow: hidden;
    position: relative;
    outline: 1px solid #fff;
}

.pdf-item.has-image {
    padding: 5px;
}

.pdf-container .date-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-basis: 100vw;
    box-shadow: none;
    background-image: url('https://www.editionsduroure.com/waiting/fond.jpg');
    background-color: #fff3;
    background-position: top center;
    background-attachment: fixed;
    color: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    margin: 0 -1rem;
    padding: 0 2rem;

    h2 {
        font-size: 32px;
        font-weight: 300;
        max-width: 1265px
    }

    small {
        font-size: 18px;
        display: inline-block;
        vertical-align: middle;
    }
}

.pdf-item img {
    max-width: 50%;
    height: auto;
    @media screen and (min-width: 769px) {
        height: 100%;
        object-fit: contain;
        object-position: top;
    }
}

.pdf-item .content {
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;

    .separator {
        flex: 2 0 100%;
        display: block;
        width: 100%;
        height: 10px;
    }
}

.content h2 {
    font-size: 22px;
    min-height: 2.25em;
    margin: 0.25em 0 1em 0;
    width: 100%;
}

.content p {
    font-size: 14px;
    margin: 1em 0;
    width: 100%;
    min-height: 2em;
}

@media screen and (min-width: 768px) {
    main {
        min-height: 40vh;
    }
}

@media screen and (max-width: 968px) {
    .pdf-container .pdf-item {
        width: 100%;
        flex-direction: column;
    }
    .pdf-container {
        justify-content: center;
    }
    .pdf-container .pdf-container-item {
        width: 280px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .pdf-container .pdf-container-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    hr {
        margin: 15px 0;
    }
    h1 {
        font-size: 26px;
        text-align: left;
    }
    h1 span {
        display: block;
        margin-top: 50px;
        margin-bottom: 0;
        float: none;
    }
    header,main,footer {
        padding: 10px;
    }
    footer {
        padding-bottom: 120px;
    }
    header {
        justify-content: center;
    }
    header ul {
        text-align: center;
        justify-content: center;
        padding: 0;
        border: 0;
    }
    header ul li {
        width: 100%;
        border-bottom: 1px solid #3333;
    }
    footer {
        justify-content: center;
    }
    .content p,
    .content h2 {
        height: auto;
    }
}
