@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

:root {

    /* COULEURS ORIGINE */

    /* VERT */
    --bg1: #73bb27;
    /* MARON */
    --h1: #bfa777;

    /* COULEURS CONTRASTE */
    /* --bg1: #4E841A;
    --h1: #8D723F; */
}

.C1 {
    color: var(--bg1);
}

.C2 {
    color: var(--bg1);
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--bg1);
}

.FlexH {
    display: flex;
}

.M5 {
    margin: 5%;
}

.M10 {
    margin: 10%;
}

.MH5 {
    margin-left: 5%;
    margin-right: 5%;
}

.MH10 {
    margin-left: 10%;
    margin-right: 10%;
}

.MH15 {
    margin-left: 15%;
    margin-right: 15%;
}

.Centre {
    width: 100%;
    text-align: center;
}


body {
    margin: 0;
    padding: 0;
    font-family: "Mulish", sans-serif;
}

h1,
h2,
h3,
h4,
p {
    font-family: "muli", sans-serif;
    font-style: normal;
}

p {
    font-weight: 100;
    line-height: 1.4em;
}

h1 {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: var(--h1);
    text-transform: uppercase;
    font-size: 3em;
}

h2 {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: var(--h1);
    /* color: #8D723F; */
    text-transform: uppercase;
    font-size: 2em;
    margin: 2em 0 0 0;
}

h3 {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: var(--h1);
    text-transform: uppercase;
    font-size: 1.5em;
    margin: 2em 0 0 0;
}

section {
    max-width: 100vw;
    overflow: hidden;
    padding: 5% 15%;
}

.Page {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
}

.Bouton {
    display: inline-block;
    font-family: "Muli", Sans-serif;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 15px;
    letter-spacing: 2px;
    fill: #ffffff;
    color: #ffffff;
    background-color: var(--bg1);
    border-radius: 32px 32px 32px 32px;
    padding: 24px 61px 24px 61px;
    text-align: center;
}

.FondGris {
    background-color: rgba(239, 239, 239, 0.54);
}

.Vert {
    color: #73BB27;
}


/* VIGNETTES */
* {
    box-sizing: border-box;
}

.card {
    width: 23%;
    min-width: 300px;
    height: 340px;
    margin: 1%;
    perspective: 10000px;
    z-index: 1;
}

.card p {
    text-align: center;
    vertical-align: middle;
    display: table-cell;
    font-size: 1.3em;
    color: #fff;
    font-weight: 500;
}

.card .content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
    -webkit-transition: all 0.9s ease-in-out;
    box-shadow: -5px 4px 18px 0px rgba(0, 0, 0, 0.5);
}

.card .more {
    display: none;
}

.nomobile .card:hover .content {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.card .front,
.card .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    /*border-radius: 6px;*/
}

.card .front .inner,
.card .back .inner {
    height: 100%;
    display: table;
    transform: translateZ(80px) scale(0.94);
    -webkit-transform: translateZ(50px) scale(0.94);
    width: 100%;
}

.front {
    background-color: #fff;
    background-size: cover;
    background-position: center center;
    -webkit-background-position: center center;
}

.card .front:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    backface-visibility: hidden;
    /*background: linear-gradient(40deg, rgba(0,0,0,0.4), rgba(0,0,0,0.4) );*/
}

.card .front .inner {
    justify-items: center;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-content: center;
    flex-direction: column;
    flex-flow: wrap;
}

/* Ensure front image covers the card and inner content overlays it */
.card .front .card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -o-object-fit: cover;
}

.card .front .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.card .front h2 {
    font-family: "Mulish", sans-serif;
    letter-spacing: 3px;
    color: #fff;
    font-weight: 500;
    font-size: 3em;
    text-transform: uppercase;
    max-width: -moz-fit-content;
    max-width: -webkit-fill-available;
}

.card .front .rating {
    grid-row: 3;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    flex-flow: row nowrap;

    i {
        margin: 0 1px;
    }
}

.card .back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background-color: #fff;
    /*background-color: #a40c0c;*/
}

.card .back .inner {
    justify-items: center;
}

.card .back .info {
    position: relative;
    display: flex;
    align-items: center;
    color: #355cc9;
    grid-row: 3;
}

.card .back .info:not(:first-of-type):before {
    content: '';
    position: absolute;
    left: -0.9em;
    height: 18px;
    width: 1px;
    background-color: #ccc;
}

.card .back .info span {
    font-size: 2em;
    font-weight: 700;
}

.card .back .info i {
    font-size: 1.2em;
}

.card .back .info i:before {
    background: linear-gradient(40deg, #355cc9, rgb(67, 138, 243));
    -webkit-text-fill-color: transparent;
}

.card .back .info .icon {
    margin-left: 0.3em;

}

.card .back .info .icon span {
    display: block;
    margin-top: -0.25em;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.card .back .description {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4em;
    overflow: auto;
    display: table;
    height: 100%;
    width: 100%;
    padding: 1em;
    position: absolute;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.card .back .description ul {
    padding: 0;
}

.card .back .description ul li {
    list-style: none;
    margin-bottom: 1em;
    font-weight: 300;
}

.card .back .description ul li strong {
    font-weight: bold;
}

.card .back .description p {
    color: #000;
}

.card .back .location,
.price {
    font-weight: 600;
    color: #355cc9;
    grid-row: 1;
    font-size: 0.86em;
}

.card .back .location {
    grid-column: 1/3;
    justify-self: left;
}

.card .back .price {
    grid-column: 3/-1;
    justify-self: right;
}

.card .back .button {
    grid-column: 1/-1;
    justify-self: center;
}

.card .button {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    height: 100%;
    background-color: transparent;
    color: #fff;
    text-align: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.mobile .card .more~.content {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

.mobile .card .more:checked~.content {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* FIN VIGNETTES */



/* LIGHTBOX */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease-in-out;
}

.lightbox-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay .lightbox-content {
    position: relative;
    background: var(--color-surface, #ffffff);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-xl, 0 12px 40px rgba(0, 0, 0, 0.45));
    max-width: 98vw;
    max-height: 98vh;
    padding: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* lancer l'animation uniquement quand l'overlay devient visible */
.lightbox-overlay.visible .lightbox-content {
    animation: modalAppear 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-fill-mode: both;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md, 6px);
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #666);
    box-shadow: var(--shadow-md, 0 6px 18px rgba(0, 0, 0, 0.2));
    transition: all .15s ease;
    z-index: 10;
    font-size: 25px;
}

.lightbox-close:hover {
    background: var(--color-error, #e53e3e);
    color: #fff;
    transform: rotate(90deg);
}

@keyframes modalAppear {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* FIN LIGHTBOX */



@media (max-width: 768px) {

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .FlexH {
        flex-direction: column;
        align-items: center;
    }

    .Bouton {
        border-radius: 30px;
        padding: 20px 35px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
        margin: 0.4em 0 0.2em 0;
    }

    h2 {
        font-size: 1.6em;
    }

    .lightbox-close {
        font-size: 1.4rem;
    }

    .lightbox-overlay .lightbox-content {
        padding: 5px;
    }
}

/* ---------------------------------------------------------------------------
   Inputs style for front pages
   Applies to elements inside `.Page` to avoid interfering with admin/backoffice
   --------------------------------------------------------------------------- */
.Page input[type="text"],
.Page input[type="email"],
.Page input[type="tel"],
.Page input[type="number"],
.Page input[type="search"],
.Page textarea,
.Page select,
.Page .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
    box-sizing: border-box;
}

.Page textarea {
    min-height: 120px;
    resize: vertical;
}

.Page input[type="checkbox"],
.Page input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 8px;
    transform: none;
}

.Page input:focus,
.Page textarea:focus,
.Page select:focus,
.Page .form-control:focus {
    outline: none;
    border-color: var(--bg1, #73BB27);
    box-shadow: 0 8px 26px rgba(115, 187, 39, 0.12);
    transform: translateY(-1px);
}

.Page input[disabled],
.Page textarea[disabled],
.Page select[disabled],
.Page .form-control[disabled] {
    background: #f7f7f7;
    color: #9aa0a6;
    cursor: not-allowed;
    box-shadow: none;
}

.Page .input-group {
    display: flex;
    gap: 8px;
}

.Page .input-inline {
    display: inline-block;
    width: auto;
}

@media (max-width: 768px) {

    .Page input[type="text"],
    .Page textarea,
    .Page select,
    .Page .form-control {
        font-size: 14px;
        padding: 9px 10px;
    }
}