@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Caveat:wght@400..700&family=Fjalla+One&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --color-blue: #569dd5;
    --color-beige: #f8f0ea;
    --color-black: #000;
    --color-white: #fff;

    --color-blue-shadow: rgba(86, 157, 213, 0.3);
    --color-black-muted: rgba(0, 0, 0, 0.4);
}

/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/*
*,
*:before,
*:after {
    border: 1px solid red !important;
}
*/

body {
    min-height: 100vh;
    font-size: 16px;
    font-family: sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

body:before {
    content: "";
    background-image: url(../images/etoiles_v2.png);
    background-color: var(--color-beige);
    background-blend-mode: darken;
    background-size: 600px;
    opacity: 0.1;
    z-index: -1;
    position: fixed;
    top: -10%;
    left: -10%;
    right: 0;
    bottom: 0;
    transform: rotate(5deg);
    height: 120vh;
    width: 120vw;
}

/*
.pattern-background {
    position: relative;
    overflow: hidden;
    background-color: var(--color-beige);
}

.pattern-background::before {
    content: "";
    position: absolute;
    inset: -100%;
    transform: rotate(40deg);
    transform-origin: center;
    background-color: var(--color-beige);
    opacity: 0.2;
    background-size: 25px 25px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--color-blue) 0,
        var(--color-blue) 2.5px,
        var(--color-beige) 0,
        var(--color-beige) 50%
    );
    z-index: -1;
}
*/

nav > img {
    width: 150px;
    height: 150px;
    float: left;
    margin-right: 1rem;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    box-shadow: 0 0 2rem var(--color-blue-shadow);
    border-radius: 100%;
}

nav li img{
    max-width: 27px;
    position:relative;
    top:-1px;
}
nav {
    display: flex;
    align-items: center;
    background-color: var(--color-beige);
    padding: 2rem 3rem;
    position: relative;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 0 2rem var(--color-blue-shadow);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding-left: 10rem;
    max-width: 1400px;
    width: 100%;
}

nav ul li {
    cursor: pointer;
}

nav ul li a {
    color: var(--color-black);
    font-size: 1.5rem;
    text-decoration: none;
    font-family: "Fjalla One", sans-serif;
    text-transform: uppercase;
    transition: color 300ms ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li a:hover {
    text-shadow:
        2px 2px 0 var(--color-beige),
        4px 4px 0 var(--color-blue);
    transition: color 300ms ease-in-out;
}
nav ul li a:hover img {
    filter: 
    drop-shadow(1px 1px 0 var(--color-beige))
    drop-shadow(2px 2px 0 var(--color-blue));
} 
main {
    margin: 1rem 0;
    margin-top: 7rem;
}

main #content {
    background-color: var(--color-beige);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border-top: 10px solid var(--color-blue);
    box-shadow: 0 0 2rem var(--color-blue-shadow);
}

h1 {
    font-family: "Caveat Brush", cursive;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.01px;
}

main #content p {
    font-size: 1.4rem;
    line-height: 1.2;
    margin: 0 auto 1.3rem;
}

main #content p:last-child {
    margin-bottom: 0;
}

#responses {
    display: flex;
    align-items: center;
    gap: 0 1rem;
    flex-wrap: wrap;
}

#responses li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-blue);
    font-size: 1.3rem;
    width: calc(50% - 1rem);
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.5rem;
}

#responses li strong {
    font-family: "Caveat Brush", cursive;
    font-size: 140%;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translateY(-4px);
    padding-top: 0.2rem;
}

#responses li span:not(.separator) {
    flex-shrink: 0;
}

#responses .separator {
    color: var(--color-blue);
    flex-shrink: 0;
}

#responses li:before {
    content: url('/images/puce_etoile.png');
    position: relative;
    top: 0;
    flex-shrink: 0;
    margin-right: 0.3rem;
}

.compteur {
    margin: 0.8rem 1.5rem;
    font-size: 1.2rem;
}

footer {
    margin-top: auto;
    align-self: flex-start;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 1rem;
}

footer #sociaux {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: var(--color-beige);
    padding: 1rem;
    border-radius: 1rem;
    border-bottom: 5px solid var(--color-blue);
    box-shadow: 0 0 2rem var(--color-blue-shadow);
    transform: translate(0, 0);
    transition: transform 300ms ease-in-out;
    color: var(--color-black);
    text-decoration: none;
}

footer #sociaux:hover {
    transform: translate(0, 0.2rem);
    transition: transform 300ms ease-in-out;
}

footer #sociaux p {
    font-size: 1.2rem;
}

footer #sociaux img {
    width: 30px;
}

footer #copyright p {
    font-size: 1rem;
    margin: 0;
    color: var(--color-black-muted);
}

footer #copyright p a {
    color: var(--color-black-muted);
    text-decoration: none;
}

@media (max-width: 1450px) {
    main,
    nav {
        margin: 0 2rem;
        margin-bottom: 7rem;
    }

    footer #copyright,
    footer #sociaux {
        margin: 0 2rem;
    }
}

@media (max-width: 900px) {
    nav,
    nav ul {
        flex-direction: column;
        margin: 0;
        gap: 1rem;
    }

    nav ul {
        padding-left: 0;
        text-align: center;
    }

    nav > img {
        top: 7rem;
        transform: translate(-50%);
        left: 50%;
    }

    nav {
        padding: 1rem 2rem;
        padding-bottom: 4rem;
    }
    nav ul li a {
        font-size: 1.3rem;
    }
    main {
        margin-top: 10rem;
    }

    #responses li {
        width: 50%;
    }
}

@media (max-width: 640px) {
    main {
        margin: 1rem;
        margin-top: 10rem;
    }

    main #content h1 {
        font-size: 2.5rem;
    }

    #responses {
        flex-direction: column;
    }

    #responses li {
        width: 100%;
        flex-direction: column;
    }
    #responses .separator {
        display: none;
    }

    footer #copyright,
    footer #sociaux {
        margin: 1rem;
    }

    footer {
        margin-top: 1rem;
        margin-bottom: 0;
        flex-direction: column-reverse;
        justify-content: flex-start;
    }
}