@font-face {
    font-family: Skingrape;
    src: url('/assets/fonts/Skingrape.otf');
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1;
}

.leaflet-popup-content * {
    margin: 0;
}

*,
*::after,
*::before {
    margin: 0;
    box-sizing: border-box;
}

a[aria-current='page'] {
    font-weight: bolder;
}

input,
button,
select,
textarea {
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

button,
select {
    cursor: pointer;
}

main {
    margin: 2em 2em 0;
}

.profile {
    max-width: 256px;
    margin-inline: auto;
}

.pfp-link {
    display: block;
    position: relative;
    width: fit-content;

    & .tooltip {
        position: absolute;
        bottom: -3em;
        opacity: 0;
        color: whitesmoke;
        background-color: #111b;
        padding: 0.33em 0.5em;
        border: #fff5 2px solid;
        border-radius: 0.33em;
        left: 50%;
        translate: -50% 0;
        transition: bottom ease 888ms, opacity 888ms;
        pointer-events: none;
        backdrop-filter: blur(8px);
        width: max-content;
        -webkit-backdrop-filter: blur(8px);
        z-index: 1000;
    }

    &:hover .tooltip {
        bottom: -1.5em;
        opacity: 1;
        pointer-events: all;
        transition: bottom ease 444ms, opacity 444ms;

        &:hover {
            background-color: #111f;
        }
    }
}

.pfp {
    border-radius: 100vw;
    border: 1px grey solid;
}

.whoami {
    position: relative;
    width: fit-content;
    padding-right: 0.5em;
    font-size: 1.5em;

    & span {
        display: block;
    }

    & .second-line {
        font-weight: 300;
        font-style: italic;
        color: dimgray;
        font-size: 0.8em;
    }
}

.edit {
    position: absolute;
    top: 0;
    right: -24px;
    background: none;
    border: none;

    opacity: 0.7;
    transition: 444ms opacity;

    &:hover {
        opacity: 1;
        transition: 200ms opacity;
    }
}

.label-input-wp {
    display: flex;
    flex-direction: column;
    gap: 0.33em;
    margin-bottom: 0.67em;

    &:has(input[type="checkbox"]) {
        flex-direction: row-reverse;
    }
}

#biography {
    resize: vertical;
    min-height: 3em;
    min-height: 3lh;
    max-height: 6em;
    max-height: 6lh;
}

#pfp-image {
    display: block;
    position: relative;
    background-size: cover;
    z-index: 1;
    background-position: center;
    height: 256px;
    width: 256px;
    border-radius: 1000vw;
    border: 1px grey solid;
}

.cancel-input-wp {
    position: relative;

    & input,
    & textarea {
        display: block;
        width: 100%
    }
}

.back {
    position: absolute;
    background: none;
    border: none;
    transition: rotate ease 444ms, opacity 444ms;
    line-height: 0;
    top: 0.66em;
    right: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 16px;
    aspect-ratio: 1;

    & svg {
        transition: inherit;
        opacity: 0.7;
    }

    &:hover {
        transition: rotate ease 200ms, opacity 200ms;

        & svg {
            opacity: 1;
            rotate: 15deg;
        }
    }

    #pfp-image & {
        top: unset;
        right: 1.33em;
        bottom: 1.33em;
        padding: 0.33em;
        border-radius: 1000vw;
        background-color: dimgray;
        width: unset;
        min-width: 16px;
        border: 6px white solid;

        & svg {
            fill: white;
        }
    }
}

input:is([type="text"]),
textarea,
select,
button:not(.back, .edit) {
    padding: 0.33em 0.8em;
    border-radius: 0.8em;
    width: 100%
}

input,
textarea,
select,
button:not(.back, .edit) {
    border: 2px black solid;
}

input:is([type="text"]),
select,
button:not(.back, .edit) {
    border-radius: 1000vw;
    line-height: 1;
}

.btn-wp {
    padding-top: 0.33em;
    display: flex;
    gap: 0.33em;
}

.map-wp {
    position: relative;

    img.leaflet-marker-icon:not(.other-people) {
        filter: hue-rotate(180deg);
    }

    .eye {
        position: absolute;
        display: block;
        top: 0.7em;
        right: 0.7em;
        z-index: 1000;
        cursor: pointer;
        padding: 0.33em;
        pointer-events: all;

        svg {
            display: block;
            width: 32px;
            aspect-ratio: 1;
            opacity: 0.67;
        }

        .show {
            display: none;
        }
    }

    &:has(#hide-others-check:checked) {
        .eye .show {
            display: block;
        }

        .eye .hide {
            display: none;
        }

        img.leaflet-marker-icon.other-people,
        img.leaflet-marker-shadow.other-people {
            display: none;
        }
    }
}

@media screen and (width <=600px) {
    main {
        margin: 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
}

header {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    height: 10vh;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    z-index: 2;
}

nav {
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

nav img {
    height: 50px;
    width: auto;
}

nav a {
    color: whitesmoke;
}

.co-ins {
    background: #138d4a;
    padding: 10px 15px;
    border-radius: 10px;
    color: #F5EFE6;
    display: flex;
    gap: 8px;
}

.co-ins a {
    color: #F5EFE6;
}

.profil {
    overflow: hidden;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.profil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 19px;
    overflow: hidden;
}

.h .main {
    display: flex;
    transition: transform 0.2s ease-in-out;
}

.h:hover .main {
    transform: translateY(15%);
    color: var(--nav-hvr-clr);
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
}

h2 {
    color: #084122;
    padding: 20px 0;
    text-align: center;
}

section {
    padding: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(33.333% - 20px);
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.left-image {
    width: 150px;
    /* Fixed width for circular images */
    height: 150px;
    /* Fixed height for circular images */
    border-radius: 50%;
    /* Makes the image round */
    object-fit: cover;
    /* Ensures the image covers the area */
    margin-bottom: 10px;
    /* Space between image and text */
}

.text-content {
    padding: 10px;
    text-align: center;
}

.text-content h3 {
    margin-bottom: 10px;
    color: #138d4a;
}

.text-content p {
    color: #555;
}

.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    background-image: url('/assets/images/jard2.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
}

.hero-content {
    background-color: #0005;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 40px;
    margin: auto;
    margin-top: 100px;
    backdrop-filter: blur(8px);
    width: fit-content;
    border-radius: 2em;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 7rem;
}

.hero-text p {
    font-size: 3rem;
    margin-top: 20px;
    font-weight: bold;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.hero-buttons .btn {
    background-color: #138d4a;
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
}

.hero-buttons .btn:hover {
    background-color: #0b7038;
}

.footer {
    background-color: #138d4a;
    color: white;
    height: 25vh;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    margin-top: 100px;
}

.f1 {
    display: flex;
    flex-direction: column;
}

.f1 h2 {
    margin-bottom: 50px;
}

.f1,
.f2,
.f3 {
    margin-top: 30px;
}

.f2 img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Styles spécifiques pour le dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Pour que le dropdown fonctionne sur clic */
.dropdown-btn {
    cursor: pointer;
}

/* Classe pour afficher le dropdown */
.dropdown-content.show {
    display: block;
}

/* Styles spécifiques pour la liste des jardins */
.jardin {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.jardin-content {
    display: flex;
    gap: 20px;
}

.jardin-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.jardin-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jardin-info p {
    margin: 0;
}

.link-button {
    background-color: #138d4a;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.link-button:hover {
    background-color: #0b7038;
}

/* Styles spécifiques pour la liste des graines */
section {
    padding: 20px;
    background-color: #fff;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 2rem;
    color: #138d4a;
    margin-bottom: 20px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead {
    background-color: #138d4a;
    color: white;
}

th,
td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #138d4a;
    color: white;
}

td img.seed-image {
    width: 100px;
    height: auto;
    border-radius: 10px;
}

.buy-button {
    background-color: #138d4a;
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #0b7038;
}

/* Styles pour la grille de parcelles */
.parcels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    /* Pour répartir les parcelles */
}

/* Styles pour chaque parcelle */
.parcel {
    width: calc(33.33% - 20px);
    /* Pour avoir 3 parcelles par ligne avec espace */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Image de la parcelle */
.parcel-image {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    object-fit: cover;
}

/* Contenu de la parcelle */
.parcel-info {
    padding: 20px;
}

/* Titre de la parcelle */
.parcel-info h3 {
    color: #138d4a;
    margin-bottom: 10px;
}

/* Autres détails de la parcelle */
.parcel-info p {
    color: #555;
    margin-bottom: 8px;
}

/* Bouton Réserver */
.reserver-button {
    background-color: #138d4a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.reserver-button:hover {
    background-color: #0b7038;
}

/* CSS spécifique pour le contenu principal */
main {
    padding: 20px;
}

.profile-container {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-info {
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-actions button {
    background-color: #138d4a;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-actions button:hover {
    background-color: #0b7038;
}

.messages-gardens-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.messages-section,
.gardens-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.messages-section h3,
.gardens-section h3 {
    color: #138d4a;
    margin-bottom: 10px;
}

.garden {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.garden-left {
    flex: 0 0 auto;
    margin-right: 20px;
}

.garden-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.garden-info {
    flex: 1 1 auto;
}

.garden-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.grey-background {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.grid-item p {
    margin-bottom: 8px;
}

.grid-item button {
    background-color: #138d4a;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.grid-item button:hover {
    background-color: #0b7038;
}


form.t {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 90px;
    flex-direction: column;
    border: #138d4a 2px solid;
    padding: 20px;
    border-radius: 40px;
    width: 500px;
    margin: 0 auto;

}


form.t input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    border: #138d4a 1px solid;
    color: black;
    background-color: white;
}

input.b {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    border: #138d4a 1px solid;
    color: black;
    font-size: 25px;
    background-color: white;
}

input.b:hover {
    color: #138d4a;
    border: 3px solid #138d4a;
}

.h2 {
    text-align: center;
    margin-bottom: 20px;
}

.no {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10vh;
}

.no a {
    color: black;
    border: black 1px solid;
    padding: 10px;
    border-radius: 10px;
    margin-left: 40px;
    width: 150px;
    text-align: center;
}

.no a:hover {
    color: #138d4a;
    border: #138d4a 1px solid;
}

header {
    top: 0;
    position: fixed;
    background-color: #0008;
    backdrop-filter: blur(8px);
}
