* {
    font-family: "Comic sans MS", "Helvetica", sans-serif;
    opacity: 1;
}

main {
    animation: fadein 2s;
    -moz-animation: fadein 2s; /* Firefox */
    -webkit-animation: fadein 2s; /* Safari et Chrome */
    -o-animation: fadein 2s; /* Opera */
}
@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-moz-keyframes fadein { /* sur Firefox */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-webkit-keyframes fadein { /* sur Safari et Chrome */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-o-keyframes fadein { /* sur Opera */
    from {
        opacity:0;
    }
    to {
        opacity: 1;
    }
}
.navhaut {
    padding: 10px 50px 5px;
    text-align: center;
    width: 20%;
    color: rgb(192, 73, 30);
    font-size: 20px;
    text-decoration: none;
}    

.navhaut:hover {
    transition: 0.3s;
    background-color: rgba(245, 245, 245, 0.5);
}

.nav-logout-form {
    display: inline-block;
    margin: 0;
}

.nav-logout-button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.navbasbloc {
    width: 70%;
    margin-top: 15px;
}
.navbas {
    padding: 5px 5px 5px;
    text-align: center;
    width: 5%;
    color:black;
    font-size: 17px;
    text-decoration: none;
}    

.navbas:hover {
    transition: 0.3s;
    background-color: rgba(245, 245, 245, 0.5);
}

#page {
    background-color: rgba(245, 245, 245, 0.5);
    }

nav {
    text-align: center;

}

.photoig {
    float: left;
    margin: 15px 30px 50px;
}
.presentation {
    text-align: justify;
    margin-right: 50px;
    width: 70%;
    height: 800px;
}

.presentation p {
    line-height: 1.5;
}

header {
    position: relative;
    animation: none;
    -moz-animation: none; /* Firefox */
    -webkit-animation: none; /* Safari et Chrome */
    -o-animation: none; /* Opera */
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-burger {
    display: none;
}

body {
    background-image: url(Photofond.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    margin-top: 100px;
}

footer {
    clear: both;
    text-align: right;
    bottom: 0;
    margin-right: 5px;
    margin-top: 1000px;
    font-style: italic;

}

.oeuvre {
    width: auto;
    text-align: center;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    height: 420px;
}

.oeuvres-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 18px;
    align-items: stretch;
}

.titreoeuvre {
    text-align: center;
    text-decoration: underline;
    min-height: 2.8em;
    margin-top: 10px;
}

.vendu {
    text-align: center;
    color: brown;
}

.oeuvre-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
}

.vendu-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: brown;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
}

.desactive-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
}
.dimensionsvendu {
    font-style: italic;
    font-size: small;
    text-align: center;
    margin-left: 30%;
}

.dimensions {
    font-style: italic;
    font-size: small;
    text-align: center;
    min-height: 1.5em;
}

.evenements {
    margin-top: 100px;
    height: 1200px;
}

li {
    line-height: 0.7;
    margin-top: 50px;
    margin-left: 50px;
}

.adresseevenement {
    font-style: italic;
}

.prochainevenement {
    color: rgb(143, 23, 23);
}

#mainprochainevenement {
    margin-left: 50px;
    margin-top: 50px;
}

#mainprochainevenement iframe {
    max-width: 100%;
}

.mail {
    text-align: center;
    text-decoration: underline;
    color: red; 
}

a {
    animation-delay: 3s;
}

.peinture {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-oeuvre-form .modal-body {
    padding-top: 18px;
}

.modal-form-preview {
    margin-bottom: 12px;
}

.modal-file-input {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.modal-form-separator {
    margin: 16px 0;
}

.modal-form-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.modal-form-row label {
    margin: 0;
}

.modal-form-row input:not([type="checkbox"]):not([type="hidden"]),
.modal-form-row select {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
}

.modal-form-row-check {
    grid-template-columns: 150px auto;
    justify-content: start;
}

.modal-checkbox {
    width: auto;
    transform: scale(1.1);
    justify-self: start;
}

@media (max-width: 1024px) {
    body {
        margin-top: 40px;
        background-attachment: scroll;
    }

    .photoig {
        float: none;
        display: block;
        max-width: 320px;
        width: 85%;
        margin: 15px auto 20px;
    }

    .modal-form-row,
    .modal-form-row-check {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .modal-form-row input:not([type="checkbox"]):not([type="hidden"]),
    .modal-form-row select {
        width: 100%;
    }

    .modal-checkbox {
        display: inline-block;
    }

    .presentation {
        width: auto;
        height: auto;
        margin: 0 20px;
    }

    .evenements {
        height: auto;
        margin-top: 40px;
    }

    li {
        line-height: 1.3;
        margin-top: 24px;
        margin-left: 20px;
    }

    #mainprochainevenement {
        margin: 30px 20px 0;
    }

    #mainprochainevenement iframe {
        width: 100%;
        height: 360px;
    }

    .navhaut {
        display: inline-block;
        width: auto;
        padding: 8px 14px;
        font-size: 18px;
    }

    .navbasbloc {
        width: 100%;
        margin-top: 10px;
    }

    .navbas {
        display: inline-block;
        width: auto;
        margin: 4px;
        padding: 6px 10px;
        font-size: 15px;
    }

    .oeuvre {
        width: auto;
        padding: 8px 6px 0;
    }

    .oeuvres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    footer {
        margin-top: 60px;
    }
}

@media (max-width: 640px) {
    h1,
    h2 {
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
    }

    .nav-header {
        justify-content: space-between;
        padding: 0 16px;
    }

    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    .nav-burger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: rgb(192, 73, 30);
        border-radius: 2px;
        transition: 0.3s;
    }

    .nav-collapsible {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-collapsible.is-open {
        max-height: 700px;
    }

    .navhaut {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 12px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        box-sizing: border-box;
    }

    .nav-logout-form {
        display: block;
    }

    .navbas {
        display: inline-block;
        width: auto;
        margin: 3px;
        padding: 5px 8px;
        font-size: 14px;
    }

    .oeuvre {
        width: auto;
        float: none;
        padding: 4px 0 0;
    }

    .oeuvres-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .photoig {
        width: 90%;
        max-width: 280px;
        margin: 10px auto 16px;
    }

    .presentation {
        margin: 0 14px;
        width: auto;
        height: auto;
        text-align: left;
    }

    .evenements {
        margin-top: 20px;
    }

    li {
        margin-top: 18px;
        margin-left: 12px;
    }

    #mainprochainevenement {
        margin: 20px 12px 0;
    }

    #mainprochainevenement iframe {
        height: 260px;
    }

    .dimensions,
    .dimensionsvendu {
        margin-left: 0;
    }

    footer {
        text-align: center;
        margin-top: 40px;
    }
}