@charset "utf-8";
@import '../css/normalize.min.css' layer(reset);

@font-face {
    font-family: 'BlankRiver';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    unicode-range: U+000-5FF;
    src: url('../fonts/BlankRiver.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BlankRiver.woff2') format('woff2'),
        url('../fonts/BlankRiver.woff') format('woff'),
        url('../fonts/BlankRiver.ttf') format('truetype'),
        url('../fonts/BlankRiver.svg#BlankRiver') format('svg');
}


:root {
    --brown: rgba(232, 100, 100, 0.8);
    --silver: rgba(192, 192, 192, 0.5);
    --white: rgba(255, 255, 255, 1);
    --black: rgba(0, 0, 0, 0.8);
    --red: rgba(255, 0, 0, 0.8);
    --green: rgba(0, 128, 0, 0.8);
    --azure: rgba(239, 239, 242, 0.624);
    --aqua: rgba(0, 255, 255, 0.5);
    --blue: rgba(0, 0, 255, 1);
    --gold: rgb(229, 255, 0.5);
    --border-radius: 10px;
    --raduis-haut: 10px 10px 0px 0px;
    --raduis-bas: 0px 0px 10px 10px;
    --shadow: .5rem .5rem .1rem .1rem;
    --max: 99%;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    line-height: 1.7rem;
    background: var(--silver);
    font-family: 'Luciole', sans-serif;
}

body {
    font-size: 1.6rem;
    /* 16px */
    line-height: 1.5rem;
    margin: 0 auto;
    padding: 0;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    overflow-y: scroll;
    background-position: center;
    box-sizing: border-box;
}

pre {
    white-space: pre-wrap;
}

.dark {
    background-color: var(--black);
    color: var(--white);
}

a,
h1,
h2,
h3,
h4,
legend,
button,
.bouton {
    font-family: 'BlankRiver';
    line-height: 2.0rem;
    line-height: 200%;
    font-size: 20px;
    font-size: 2.0rem;
}

.font {
    font-family: 'BlankRiver';
}

h1 {
    line-height: 2.5rem;
    font-size: 25px;
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    line-height: 2.3rem;
    font-size: 23px;
    font-size: 2.3rem;
    text-align: center;
}

strong {
    line-height: 2.0rem;
    font-size: 20px;
    font-size: 2.0rem;
    text-align: center;
}

b {
    font-family: 'BlankRiver';
    font-weight: bold;
    line-height: 2.0rem;
    font-size: 20px;
    font-size: 2.0rem;
    text-align: center;
}

p {
    margin: 1em;
}

img {
    -webkit-filter: grayscale(20%);
    filter: grayscale(20%);
    max-width: 99%;
    height: auto;

}

img,
input[type="image"],
video,
embed,
iframe,
marquee,
object,
table {
    width: 99%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

.lazy {
    position: relative;
    display: inline-block;
    width: 99%;
    height: 0;
    overflow: hidden;

}

.lazy img {
    position: absolute;
    top: 0;
    left: 0;
    width: 99%;
    height: 99%;
    opacity: 1;
    transform: scale(1);
    transition: background 0.5s, opacity 0.5s, transform 0.5s;
}

main img {
    display: block;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.green {
    color: var(--green);
}

.red {
    color: var(--red);
}

.blue {
    color: var(--blue);
}

.white {
    color: var(--white);
}

.efface {
    background-color: var(--silver);
    background-image: linear-gradient(to bottom, var(--silver), var(--white)), url("../pic/x-sign.png");

}

.gras {
    font-weight: bold;
    font: bold;
}

.a11y-nav a:focus,
.a11y-nav a:hover {
    top: 10em;
    text-decoration: none;
}

a {
    color: var(--black);
    border: solid 0.2rem var(--black);
    text-decoration: none;
    -webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    -webkit-box-shadow: var(--shadow) var(--silver);
    box-shadow: var(--shadow) var(--silver);
    background-color: var(--silver);
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    margin: 0.4rem;
    padding: 0.2em;
    cursor: url("../pic/peintur.png"), pointer;
    border-radius: 0.5rem;
}

.bouton,
button {
    cursor: url("../pic/peintur.png"), pointer;
    text-align: center;
    margin: 0.7rem;
    padding: 0.2em;
    color: var(--black);
    border: solid 0.2rem var(--black);
    text-decoration: none;
    -webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    -webkit-box-shadow: var(--shadow) var(--silver);
    box-shadow: var(--shadow) var(--silver);
    background-color: var(--silver);
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    border-radius: 0.5rem;
}

button {
    margin-top: 1rem;
    color: var(--white);
    background: var(--brown);
    border: 0.3rem solid var(--black);
    border-radius: 0.5rem;
    padding: .5em;
}

.button-red {
    margin-top: 1rem;
    color: var(--white);
    background: var(--red);
    border: 0.3rem solid var(--white);
    text-shadow: var(--black) 2px 3px;

    border-radius: 3rem;
    padding: .5em;
}

.bouton {
    padding: .2em;
    border: 0.3rem solid var(--black);
    background-color: var(--silver);
    border-radius: 0.5em;
}

a:hover,
.bouton:hover {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
    text-decoration: underline;
    border-radius: 0.5rem;
}

.linkExt a {
    border-radius: 0.2rem;
    border: solid 0.2rem var(--azure);
    text-decoration: underline;

}

button:hover {
    color: var(--brown);
    background: var(--white);
    transition: 0s linear .05s;
}

.boutonCenter {
    width: 99%;
}

.flou {

    overflow: hidden;
    opacity: 0.5;
    filter: grayscale(100%);
    width: 300px;
    height: 100px;
}

.cente {
    left: -40%;
    top: -50%;
}


.toit {

    background-image: url('../pic/toit.png');
    -webkit-clip-path: polygon(80% 0, 100% 100%, 0 100%, 20% 0);
    clip-path: polygon(80% 0, 100% 100%, 0 100%, 20% 0);
    background-color: var(--brown);

    max-height: 1%;
    text-align: center;
    margin-bottom: .2px;
}

.carousel {
    width: 460px;
    overflow: hidden;
    position: relative;
    margin: auto;
    background: var(--silver);
    border-radius: var(--border-radius);
}

/* Pour l’overlay sur mobile */
.overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay:not(.hidden) {
    opacity: 1;
}

.overlay form {
    width: 90%;
    max-width: 500px;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 0px 10px var(--silver);
    max-height: 80vh;
    overflow-y: auto;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 99%;
}

.item {
    min-width: 99%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.item img {
    width: 99%;
    height: auto;
}

.item a {
    margin-top: 8px;
    text-decoration: none;
    font-size: 14px;
}

.ciel {
    background-color: var(--aqua);
    width: 99%;
    background-image: url('../pic/nuage.png');
    -webkit-animation: clouds_animation 15s linear infinite;
    animation: clouds_animation 15s linear infinite;
}

/* annimation des nuage */


@keyframes clouds_animation {

    100% {
        background-position: 0 0;
    }

    0% {
        background-position: -300px 0;
    }
}

/* messege erreur */

.alert,
.alert2 {
    min-width: 30%;
    max-width: 70%;
    text-align: center;
    padding: 0.5rem;
    margin: 0.5rem;
    border-radius: 0.5rem;
}

.sugg {
    margin: auto;
    min-width: 30%;
    max-width: 80%;
    text-align: center;
    padding: 1rem;
    margin: 1rem;
    border-radius: 0.5rem;
}

.gris {
    background-color: var(--silver);
    color: var(--black);
}

.success {
    background-color: var(--green);
    color: var(--white);
}

.danger {
    background-color: var(--red);
    color: var(--white);
}

.info {
    background-color: var(--blue);
    color: var(--white);
}


.container {
    margin: auto;
    background-color: var(--white);
    width: 99%;
    height: 99%;
    background-image: url('../pic/facade.png');
}


.jeux {
    max-width: 99%;
    max-height: 99%;
}


.header {
    padding: .5em;
    border-top: solid 1.5em var(--brown);
    top: .5px;
}

.centre {
    padding: .1rem .1rem .5rem .1rem;
    margin: auto;
    width: 95%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column wrap;
    flex-flow: column wrap;
}

.header h1 {
    margin: 0;
}

.header nav {
    width: var(--max);
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: wrap;
    flex-flow: wrap;
    padding: 0.5em;

}

.header nav a {
    border-left: ridge 1em var(--brown);
    border-right: ridge 1em var(--brown);
}

/* main */

main {
    background-color: var(--white);
}

.ariane {
    margin: auto;
    width: 95%;
}

.ariane a {
    border: none;
    color: var(--black);
    text-decoration: none;
    box-shadow: none;
}

.main {
    /*color: var(--black);*/
    margin: auto;
    width: 90%;
    border: solid 1px var(--black);
    border-radius: 1rem;

}

section {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column wrap;
    flex-flow: column wrap;
    border-radius: .5em;
}

section main {
    background-color: initial;
    padding: 2em;
}

article {
    margin: auto;
    background-color: var(--azure);
    /* padding: .5rem; */
    margin: .5rem;
    border-radius: .8rem;
    max-width: 99%;
    width: 95%;
    -webkit-box-shadow: .2rem .2rem .2rem .2rem var(--azure);
    box-shadow: .2rem .2rem .2rem .2rem var(--azure);
    border: outset .2rem var(--silver);
}

.article,
.articles {
    margin: auto;
    width: 90%;
}

.reduit {
    min-width: 50%;
    max-width: 80%;
    height: auto;
    max-height: 60%;
    border: outset .2rem var(--silver);
    border-radius: 50%;
    -webkit-box-shadow: .2rem .2rem .05rem .05rem var(--azure);
    box-shadow: .2rem .2rem .05rem .05rem var(--azure);
}

.mini {
    min-width: 20%;
    max-width: 50%;
    height: auto;
    max-height: 60%;
    border: outset .2rem var(--silver);
    border-radius: 50%;
    -webkit-box-shadow: .2rem .2rem .05rem .05rem var(--azure);
    box-shadow: .2rem .2rem .05rem .05rem var(--azure);
}

.logo {
    /* text-align: center; */
    /* min-width: 10%; */
    max-width: 50%;
    height: auto;
    max-height: 40%;
    border: outset .2rem var(--silver);
    border-radius: 50%;
    -webkit-box-shadow: .2rem .2rem .05rem .05rem var(--azure);
    box-shadow: .2rem .2rem .05rem .05rem var(--azure);
}

#compressImg {
    display: none;
    max-width: 30%;
    min-height: 30%;
}

#photoContainer {
    overflow: hidden;
    position: relative;
    width: 300px;
    height: 300px;
    touch-action: none;
    /* Empêche les gestes tactiles par défaut */
}

#photo {
    width: 100%;
    height: 100%;
    cursor: grab;
    user-select: none;
}

.photo {
    border: outset .2rem var(--silver);
    border-radius: 10%;
    -webkit-box-shadow: .5rem .5rem .1rem .1rem var(--azure);
    box-shadow: .5rem .5rem .1rem .1rem var(--azure);
}

.gauche-droite {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: .3em;
}

.gauche {
    float: left;
    width: 47%;
}

.droite {
    float: right;
    width: 47%;
}

.gauche3 {
    float: left;
    width: 27%;
}

.droite3 {
    float: right;
    width: 27%;
}

.gauche7 {
    float: left;
    width: 67%;
}

.droite7 {
    float: right;
    width: 67%;
}

.card,
.cards>* {
    margin: auto;
    padding: .5rem;
    border: 0.1em solid var(--black);
    border-radius: 0.5rem;
}

form {
    margin: 0 auto;
}

form div+div {
    margin-top: .5em;
}

label {
    display: block;
    padding: 0.5em;
}

small {
    display: block;
}


*[hidden],
.hidden {
    display: none;
}


input:invalid:required,
textarea:invalid:required {
    border-bottom: var(--red) solid 0.3rem;
}

input:valid:required,
textarea:valid:required {
    border-bottom: var(--green) solid 0.3rem;
}

input:invalid:required+span:after,
textarea:invalid:required+span:after {
    color: var(--red);
    padding-left: 0.5%;
    content: '✖';
}

input:valid:required+span:after,
textarea:valid:required+span:after {
    color: var(--green);
    padding-left: 0.5%;
    content: '✓';
}

canvas {
    border: 1px solid var(--black);
    max-width: 100%;
    max-height: 100%;
}

input,
textarea,
select {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border-bottom: solid 0.5rem var(--silver);
}

ul {
    list-style: none;
}

li {
    border-top: 0.3rem solid var(--black);
}

table {
    margin: auto;
    table-layout: fixed;
    width: 99%;
    border-collapse: collapse;
    word-wrap: break-word;
    text-align: center;
}

caption,
th,
td {
    display: block;
    border: 2px solid var(--black);
    padding: 10px;
}

thead {
    display: none;
    border-bottom-style: solid;
    border-color: var(--black);
    background: var(--silver);
}

tfoot {
    border-top-style: solid;
    border-color: var(--black);
}

tbody tr:nth-child(odd) {
    background: var(--silver);
}

tbody tr:nth-child(even) {
    background: var(--azure);
}


fieldset {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 1em;
    font-size: 1.6rem;
    border: solid 1px var(--black);
    border-radius: 0.5em;
    -webkit-box-shadow: .2rem .2rem .2rem .2rem var(--silver);
    box-shadow: .2rem .2rem .2rem .2rem var(--silver);
}

legend {
    padding: 1em;
    font-size: 1.9rem;
}

.field {

    padding-top: .5em;
    padding-bottom: .5em;
    border-color: var(--black);

}

.field label {
    max-width: 95%;
    text-align: center;
}

.field small {
    max-width: 95%;
    text-align: center;
}

.field input {
    max-width: 95%;
}

.field textarea {
    max-width: 95%;
}

.publivre {
    background: var(--silver);
}

nav .pagination {
    text-align: center;
    width: auto;
    height: auto;
    height: 10%;
    max-width: 99%;
    position: sticky;
    bottom: 0px;
    z-index: 1000;
    background: var(--silver);
}

/* footer */

.footer {
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 85%;
    text-align: center;
    padding: .5rem;
}

.footer a {
    -webkit-box-shadow: initial;
    box-shadow: initial;
    background-color: initial;
    color: initial;
    border: initial;
}

.contact {
    width: 99%;
    padding: 1%;
    border: double 3px black;
    background-color: var(--silver);
    -webkit-box-shadow: .2rem .2rem .2rem .2rem var(--azure);
    box-shadow: .2rem .2rem .2rem .2rem var(--azure);
}

.goutiere {
    width: auto;
    margin: auto;
    padding: 1rem;
}

.lampe {
    display: block;
    width: 70px;
    height: 90px;
    background-repeat: no-repeat;
    background-image: url('../pic/fille.png');

}

.lampe.dark {
    background-color: initial;
    background-image: url('../pic/rat.png');
}

.lampadaire {
    display: block;
    width: 70px;
    height: 90px;
    background-repeat: no-repeat;
    background-image: url('../pic/lampadaireChat.png');
}

.lampadaire.dark {
    background-color: initial;
    background-image: url('../pic/lampadaire.png');
}

.rat {
    display: block;
    width: 90px;
    height: 90px;
    float: left;
    background-repeat: no-repeat;
    background-image: url('../pic/ratJ.png');
}

.rat.dark {
    background-color: initial;
    background-image: url('../pic/ratN.png');
}

.chat {
    display: block;
    width: 90px;
    height: 90px;
    float: right;
    background-repeat: no-repeat;
    background-image: url('../pic/chatDort.png');
}

.chat.dark {
    background-color: initial;
    background-image: url('../pic/chatMarche.png');
}


/* Style du podium */
.podium {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Style des éléments individuels du podium */
.podium-item {
    background-color: var(--white);
    padding: 10px;
    border: 1px solid var(--black);
    border-radius: 10% 10% 1% 1%;
    width: 150px;
    text-align: center;
    box-shadow: 0 4px 8px var(--black);
}

/* Style des trois premiers éléments */
.podium-item:nth-child(1) {
    background-color: var(--gold);
    /* Couleur du premier élément */
}

.podium-item:nth-child(2) {
    background-color: var(--silver);
    /* Couleur du deuxième élément */
}

.podium-item:nth-child(3) {
    background-color: var(--brown);
    /* Couleur du troisième élément */
}

/* media query */


@media screen and (min-width: 630px) {

    body {
        min-width: 630px;
    }

    .entree {

        -webkit-box-ordinal-group: 2;
        -ms-flex-order: +1;
        order: +1;
        width: 80%;
    }

    .pub img {
        max-width: 50%;
    }
}

@media screen and (min-width:780px) {
    body {
        min-width: 780px;
    }

    .pub img {
        max-width: 40%;
    }

    label {
        width: 99%;
        display: block;
    }

    .centre {
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
    }

    section {
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
    }

    article {
        margin-right: 0;
    }

    small {
        width: 99%;
        display: block;
        text-align: left;

    }

    .field label {
        max-width: 89%;
    }

    .field small {
        max-width: 89%;
    }

    label,
    small {
        display: inline-block;
    }

    .field {
        padding-top: 1em;
        padding-bottom: 1em;
        border-color: var(--black);
    }

    .field label,
    .field small {
        max-width: 89%;
        text-align: left;
    }


    .field input,
    .field textarea {
        max-width: 90%;
    }

    .articles {
        width: 29%;
    }

    thead {
        display: table-header-group;
    }

    caption,
    th,
    td {
        display: table-cell;
    }

    .footer fieldset {
        width: 20%;
    }

    .entree {

        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        max-width: 10%;
        min-width: 10%;
        min-height: 90px;
    }

    .footer {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .reseau {
        min-width: 10%;
        min-height: 60px;
    }

    #map {
        height: 60vh;
    }
}

@media screen and (min-width:1200px) {
    body {
        min-width: 1100px;
    }

    section {
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
    }


    .articles {
        width: 19%;
    }


    .entree {
        display: block;
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        max-width: 30%;
        min-width: 10%;
        min-height: 90px;
    }
}

@media (pointer: coarse) {

    a,
    .botton,
    button {
        padding: .2em;
    }
}

img:is([sizes="auto" i], [sizes^="auto," i]) {
    contain-intrinsic-size: 1200px 900px;
    /* Ratio 4:3 adapté pour décorations */
}

#map {
    height: 500px;
}

/* Style pour les icônes personnalisées */
.custom-marker-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;

}

/* Légende */
.legend-container {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.legend-shape {
    width: 10px;
    height: 10px;
    margin-right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}

/* Style pour la carte */
#map {
    height: 50vh;
    width: 100%;
    margin-bottom: 10px;
}

