@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {

    /* COULEURS ORIGINE */

    /* VERT */
    --bg1: #73bb27;
    /* MARON */
    --h1: #bfa777;

    /* COULEURS CONTRASTE */
    /* --bg1: #4E841A;
    --h1: #8D723F; */

    /* --box-shadow: 0px 0px 4px 5px rgba(20, 30, 50, 0.04); */
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow2: 0 5px 16px rgba(0, 0, 0, 0.4);
}

.C1 {
    color: var(--bg1);
}

.C2 {
    color: var(--bg1);
}

.Blanc,
.Blanc p {
    color: #fff;
}

* {
    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;
    color: rgb(108, 117, 125);
}

h1 {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: var(--h1);
    text-transform: uppercase;
    font-size: 2.4em;
    margin: 0 0 20px;
}

h2 {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: var(--h1);
    text-transform: uppercase;
    font-size: 1.8em;
    margin: 0 0 0.5em 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: 1em 0 0 0;
}

.CarteBlanche {
    background: #ffffff8a;
    border-radius: 8px;
    overflow: hidden;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    margin: 8px;
}

section {
    max-width: 100vw;
    overflow: hidden;
    padding: 3em 15%;
}

.Page {
    min-height: calc(100vh - 120px);
    margin: 120px 5% 3em;
    padding: 30px 20px;
}

.EntetePage {
    margin-bottom: 30px 20px;
}

.BackgroundImg50 {
    position: fixed;
    top: 0;
    left: 0;
    object-fit: contain;
    z-index: -1;
    opacity: 0.2;
    width: 30%;
    min-height: 100%;
    min-width: 500px;
}

.Bouton {
    display: inline-block;
    font-family: "Muli", Sans-serif;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 22px;
    letter-spacing: 2px;
    fill: #ffffff;
    color: #ffffff;
    background-color: var(--bg1);
    border-radius: 8px;
    padding: 15px 60px 15px 60px;
    text-align: center;
}

/* =========================
   BOUTONS STANDARDISÉS
   ========================= */

.BtPrincipal,
.BtSecondaire,
.Bt3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Muli", Sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.1;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.BtPrincipal {
    background-color: var(--bg1);
    color: #ffffff;
}

.BtSecondaire {
    background-color: transparent;
    color: var(--bg1);
    border-color: var(--bg1);
}

.Bt3 {
    background: #f4f4f4;
    color: #333;
    border: 1px solid #ddd;
}

.BtPrincipal:hover,
.BtSecondaire:hover {
    filter: brightness(0.98);
}

.BtPrincipal:disabled,
.BtSecondaire:disabled,
.BtPrincipal[aria-disabled="true"],
.BtSecondaire[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    filter: none;
}

.BAction1,
.BAction2,
.BAction3 {
    display: inline-flex;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    user-select: none;
    cursor: pointer;
    justify-content: center;
}

.BAction1 {
    color: rgb(255, 255, 255);
    background: rgb(126, 195, 47);
}

.BAction2 {
    background: rgb(240, 240, 240);
    color: #333;
}

.BAction3 {
    background-color: transparent;
    color: var(--bg1);
    border: 1px solid var(--bg1);
}

.FondGris {
    background-color: rgba(239, 239, 239, 0.54);
}

.Vert {
    color: #73BB27;
}

.is-hidden {
    display: none !important;
}


/* 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: var(--box-shadow);
}

.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 */

/* VIGNETTES (ARTICLES) */
.vignettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 220px);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    justify-content: space-evenly;
}

.vignettes-card {
    display: block;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: var(--box-shadow);
    margin: 20px;
    width: 220px;
    /* On verrouille la largeur pour qu'elles soient toutes identiques */
    margin: 0 auto;
    /* Sécurité pour le centrage */
}

.vignettes-card-image {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.vignettes-card-body {
    padding: 12px
}

.vignettes-card-title {
    margin: 0 0 8px;
    font-size: 1.05rem
}

.vignettes-card-date {
    color: #888;
    font-size: .9rem
}

/* FIN VIGNETTES (ARTICLES) */



/* 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 */


/* ---------------------------------------------------------------------------
   Inputs style for front pages
   Applies to elements inside `.Page` to avoid interfering with admin/backoffice
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   Champs de formulaire front (standardisés)
   Utiliser: .front-field / .front-field-label / .front-field-input
   (Aliases compatibles: front-field/front-field-label/front-field-input + front-field)
   --------------------------------------------------------------------------- */

.Page .front-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

/* Variantes "inline" (checkbox + label sur une ligne) */
.Page .front-field--inline,
.Page .front-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.Page .front-field-label,
.Page .front-field>label {
    display: block;
    margin-bottom: 4px;
}

.Page .front-field-help {
    margin: 22px 0;
}

/* Messages encadrés (utilisés par le panier et réutilisés ailleurs) */
.Page .front-field-help.is-box {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--bg1, #73BB27);
    background: rgba(115, 187, 39, 0.10);
    color: rgba(0, 0, 0, 0.78);
}

/* Variante "resend activation" (pas d'encadré plein) */
.Page .login-resend-bloc.front-field-help.is-box {
    padding: 0;
    border: none;
    background: none;
    color: rgba(0, 0, 0, 0.78);
    margin: 15px 0;
}

.Page input[type="text"],
.Page input[type="email"],
.Page input[type="password"],
.Page input[type="tel"],
.Page input[type="number"],
.Page input[type="search"],
.Page textarea,
.Page select,
.Page .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    /* Utilise la même police que le reste du site */
    font-size: inherit;
    /* Utilise la même taille que le parent */
    line-height: inherit;
    /* Évite les décalages verticaux */
}

.Page textarea {
    min-height: 120px;
    resize: vertical;
}

.Page input:not([type="checkbox"]):not([type="radio"]):focus,
.Page textarea:focus,
.Page select:focus,
.Page .form-control:focus {
    outline: none;
    border-color: var(--bg1, #73BB27);
    box-shadow: 0 4px 4px 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;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* Remplace le fond bleu par du blanc (ou la couleur de votre choix) */
    -webkit-box-shadow: 0 0 0 30px white inset !important;

    /* Change la couleur du texte qui est souvent forcée en noir */
    -webkit-text-fill-color: #333 !important;

    font-size: 16px !important;
}



/* RADIO BOUTON ET CHECKBOX *********************************/
/* Style de base pour les deux */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    /* Désactive le style navigateur */
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg1);
    /* Couleur Or / Bronze */
    background-color: #fff;
    cursor: pointer;
    display: inline-grid;
    /* Permet de centrer le contenu interne */
    place-content: center;
    transition: all 0.2s ease-in-out;
    vertical-align: middle;
    position: relative;
}

/* Spécificité pour le Radio (Rond) */
input[type="radio"] {
    border-radius: 50%;
}

/* Spécificité pour la Checkbox (Carré arrondi) */
input[type="checkbox"] {
    border-radius: 4px;
}

/* État au survol */
input[type="checkbox"]:hover,
input[type="radio"]:hover {
    background-color: #e3f3d1;
    transform: scale(1.05);
}

/* État Coché : Le symbole interne */
input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    content: "";
    background-color: var(--bg1);
    transition: all 0.2s ease-in-out;
}

/* Le point pour le Radio */
input[type="radio"]:checked::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* La coche pour la Checkbox (dessinée avec des bordures) */
input[type="checkbox"]:checked::before {
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    background-color: transparent;
    /* On utilise les bordures pour la coche */
}

/* Fond coloré quand coché pour la checkbox uniquement */
input[type="checkbox"]:checked {
    background-color: var(--bg1);
}

/* FIN RADIO BOUTON ET CHECKBOX ***************************/


/* Optionnel : Supprime la transition de couleur du navigateur */
input:-webkit-autofill {
    transition: background-color 5000s ease-in-out 0s;
}

.Page select,
input[type="select"] {
    border-color: var(--bg1, #73BB27);
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;

}

.Page .input-group {
    display: flex;
    gap: 8px;
}

.Page .input-inline {
    display: inline-block;
    width: auto;
}

/* Blocs auth réutilisables (panier, bons cadeaux, etc.) */
.Page .ForgotBloc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.Page .PanierAside__actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.Page .PanierAside__actions--between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.LinkBtn {
    border: 0;
    background: transparent;
    color: var(--bg1);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 960px) {

    section {
        padding: 5% 10%;
    }

    .CarteBlanche {
        padding: 1.5em;
    }
}

@media (max-width: 768px) {

    h2 {
        font-size: 2em;
    }

    .FlexH {
        flex-direction: column;
        align-items: center;
    }

    .Page {
        margin-top: 90px;
        min-height: calc(100vh - 90px);
    }

    section {
        padding: 3em 5%;
    }

    .Page input[type="text"],
    .Page textarea,
    .Page select,
    .Page .form-control {
        font-size: 14px;
        padding: 9px 10px;
    }
}

@media (max-width: 480px) {

    .Page {
        margin: 90px 4px 3em;
    }

    h2 {
        font-size: 1.6em;
    }

    .CarteBlanche {
        padding: 1em;
    }

    .Page {
        padding: 20px 4px;
    }

    .EntetePage {
        margin-bottom: 18px;
        padding: 0 15px
    }

    .lightbox-close {
        font-size: 1.4rem;
    }

    .lightbox-overlay .lightbox-content {
        padding: 5px;
    }
}