
@import url("https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Playwrite+CZ:wght@100..400&display=swap");

.main-container a:link, .main-container a:visited, .main-container a:active {
    text-decoration: none;
    color: var(--main-color);
}
*,
*::before,
*::after{
    box-sizing: border-box;
    /* margin: 0;
    padding: 0;
    outline: none;
    list-style-type: none; */
}
.shadow-costum {
    box-shadow: 0 0 6px rgb(0 0 0 / 0.5);
}
:link, :visited, :active {
    text-decoration: none;
}
/* Empêche le débordement horizontal sur petits écrans
html, body {
    overflow-x: hidden;
} */
html,body{
    font-family: Arial, sans-serif;
    /* background: url(../images/bg.pnpg) repeat fixed #fff; */
    /* background-size: cover; */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
      /* height: 100vh; */
}
.alert{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-height: 40px;
    min-width: 250px;
    max-width: 350px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    padding: 10px;
    text-align: center;
}
.alert-success{
    background: green;
}
.alert-warning{
    background: goldenrod;
}
.alert-danger{
    background: orangered;
}
:root {
    --primary-color: #22D3EE; 
    --main-color: #2193b0;
    --secondary-color: #6dd5ed;
    --tertiary-color: #2737a0;
    --main-shadow: 1px 1px 10px rgba(0,0,0,0.1),0px -1px 10px rgba(0,0,0,0.1);
}
.main-color{
    color: var(--main-color);
}
.secondary-color{
    color: var(--secondary-color);
}
.tertiary-color{
    color: var(--tertiary-color)
}
.bg-main-color{
    background-color: var(--main-color);
}
.bg-secondary-color{
    background-color: var(--secondary-color);
}
.bg-primary-color{
    background-color: var(--primary-color);
}
.header{
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--main-color) 100%);
    box-shadow: 0 2px 12px rgba(33,147,176,0.08);
    padding: 0;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    left: 0;
    z-index: 100;
    height: 100px;
    /* animation: fadeIn 1.2s; */
}
header > a {
    font-family: "Playwrite CZ", cursive;
}
.dropdown-menu{
    display: none !important;
    position: absolute;
    top: 103%;
    right: 0;
    z-index: 50;
    min-width: 10rem; /* ajuste selon besoin */
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0);
    border-radius: 6px;
    /* padding: 0.25rem 0; */
}
/* Afficher quand l'élément parent (li) est en hover */
ul li:hover > .dropdown-menu,
.header ul li:hover > .dropdown-menu {
    display: block !important;
}
/* Optionnel : style des liens internes */
.dropdown-menu li a {
    display: block;
    padding: 0;
    color: #333;
    text-decoration: none;
    color: teal;
    font-weight: bold;
}
.dropdown-menu li a:hover {
    background: #f3f4f6;
}
.logo{
    font-size: 1.7rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.2s;
}
.logo:hover{
    color: #444;
}
header > div ul a{
    color: teal !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}
header ul li{
    padding: 10px;
    color: teal !important;
    background: white;
    border-radius: 5px;
    font-weight: bold;
    /* color: #007bff !important; */
}
.nav-links a:hover{
    color: #2193b0;
    transform: scale(1.08);
}
.primary-color{
    color: var(--main-color);
}
.secondary-color{
    color: var(--secondary-color);
}
/* Bouton menu (en haut à gauche) */
.menu-btn {
    position: fixed;
    top: 120px;
    left: 20px;
    font-size: 26px;
    cursor: pointer;
    z-index: 950;
    color: #333;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 100px; /* ton header fait 100px */
    left: 0px;
    width: min-content;
    height: calc(100% - 100px);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: width 0.3s ease !important;
    z-index: 949;
    overflow-y: auto;
    padding: 10px;
    font-family: sans-serif;
}

.sidebar.open {
    width: 260px;
}
.sidebar:not(.open) .infos i,.sidebar:not(.open) .infos h2,.sidebar:not(.open) .infos h4,.sidebar:not(.open) .terms-of-use {
    display: none;
}
.sidebar a:not(.free){
    display: flex;
    align-items: center;
}
.sidebar .items i {
    width: 40px;
    padding: 10px;
    text-align: center;
    color: var(--main-color);
    font-size: 20px;
}
.sidebar .items .item:hover{
    background: rgba(0,0,0,0.05);
}
.sidebar p {
    width: 0%;
    text-align: left;
    opacity: 0;
    display: none;
}
.sidebar.open p {
    width: 100%;
    display: block;
    opacity: 1;
}
/* Header du sidebar */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-header {
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Menu du sidebar */
.sidebar-menu {
    list-style: none;
    padding: 10px;
}


/* .sidebar-menu a {
    display: block;
    padding: 12px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background .2s;
} */

.sidebar-menu i {
    margin-right: 10px;
}

.sidebar-menu a:hover {
    background: rgba(0,0,0,0.07);
}

/* Sous-menu */
.submenu .submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-in-out;
    padding-left: 20px;
}

.submenu.open .submenu-content {
    max-height: 300px;
}

.submenu .arrow {
    float: right;
    transition: transform .3s;
}

.submenu.open .arrow {
    transform: rotate(180deg);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

.main-container{
    background: #fff;
    padding: 20px;
    margin-left: 50px;
    border-radius: 10px;
    box-shadow: 0 0px 5px rgba(173, 173, 173, 0.578);
    width: 800px;
    max-width: calc(100% - 50px);
    animation: fadeIn 0.4s ease-in-out;
    /* padding-top: 50px; */
    margin-top: 110px; 
    box-shadow: none !important;

}
.items-container{
    display: flex;
    flex-wrap: wrap;
    gap: 20px 0;
    margin: 0 auto;
    /* margin-top: 20px; */
    width: 90%;
    justify-content: space-around;
}
.card{
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s;
    border-radius: 8px;
    /* cursor: pointer; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.523);
    width: 150px;
    /* height: 200px; */
    height: min-content;
}
.card:hover{
    transform: scale(1.05);
}
.card .img-container /*.slick-initialized.slick-slider*/{
    width: 100% !important;
    max-height: 100px !important;
    height: 100px !important;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}
.card .img-container img{
    height: 100px !important;
    max-width: 100% !important;
    /*object-fit: cover; /* évite la déformation */
    border-radius: 8px !important;
}
.card .infos{
    font-size: 12px;
    min-height: 40px;
}
.card .infos .description{
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    line-clamp: 2;
    min-height: 40px;
}
/* la gestion des astuces */
.trick-slides-container{
    overflow:hidden ;
    border:3; 
    display: flex;
    flex-direction: row; 
    gap:4; 
    max-height: min-content !important;
}
.card .trick-slide{
    /* min-width: fit-content; */
    height: 100px !important;
    margin: 4px 6px;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.523);
}
.card .trick-slide p{
    font-size: 13px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 3;
}
.card .trick-slide .search{
    color: var(--main-color);
}
.card .trick-slide .declaration{
    color: #8A2BE2;;
}
/* fin de la gestion des astuces */

/* search bar */
.search_form{
    /* position: absolute; */
    /* left: 50%;
    bottom: 0; */
    /* transform: translateX(-50%); */
    border: 1px solid rgb(200, 200, 200);
    display: flex;
    flex-direction: row;
    max-height: min-content;
    background: #fff;
    padding-left: 5px;
    border-radius: 15px;
    min-width: max-content;
    z-index: 10;
}
.search_form .search-input{
    border:0;
    border-radius: 6px;
    border-bottom: 2px solid lightgray;
    height : 38px; 
    /* width: 60px; */
    width: 200px;
    padding: 0 10px 0 5px;
    outline: none;
    transition: width .2s ease;
    transition-delay: 0ms;
}
/* .search_form:hover .search-input,
.search_form .search-input:focus{
} */
.search_form .search-input:focus{
    border-bottom-color: var(--main-color);
}

/* les formulaires */
fieldset.birthday{
    width: 100%;
}
fieldset.birthday legend{
    font-size: 13px;
    font-weight: bold;
    color: midnightblue;
}
.form-group-wrapper {
    display: flex;
    /* flex-wrap: wrap; */
    gap: .6rem;
    justify-content: space-between;
    min-width: 100%;
    max-width: 100%;
}
form .form-group {
    margin-bottom: .7rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}
/* .birthday .form-group { */
    /* width : calc( (100% / 3) + 15rem) !important; */
/* } */
/* full-width groups */
.form-group.full { width: 100%; }

/* arrange form horizontally with rows */
form:not(.free) {
    display: flex;
    flex-wrap: wrap;
    /* gap: 1rem; */
    align-items: flex-start;
    width: 100%;
}

form:not(.free) label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #555;
    line-height: 80%;
}
form .form-group label,form .form-group select,form .form-group input{
    font-size: 14px;
} 

form:not(.free) input, form:not(.free) textarea {
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: all 0.3s;
}
/* style du select lui‑même (pouvant être entièrement stylé) */
form:not(.free) select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
form:not(.free) input{
    max-width: 100% !important;
}
/* masquer la flèche par défaut sur IE/Edge */
form:not(.free) select::-ms-expand {
    display: none;
}
/* options : propriétés généralement supportées */
form:not(.free) select option {
    background: #fff;    /* couleur de fond (peut être ignorée selon l'OS) */
    color: #222;         /* couleur du texte (généralement ok) */
    font-size: 14px;     /* taille du texte */
    font-family: inherit;
}
/* option sélectionnée (fonctionne dans la plupart des navigateurs) */
form:not(.free) select option:checked,
form:not(.free) select option:checked:hover {
    background: var(--main-color);
    color: #fff;
}
form:not(.free) select:focus, form:not(.free) input:focus, form:not(.free) textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 6px rgba(74,144,226,0.5);
}
/* upload */
.upload input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 2px !important;
    width: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg,#06b6d4 0%, #06b6d4 50%, #ddd 50%, #ddd 100%);
    outline: none;
    padding: none !important;
}

.upload input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    transition: 0.3s;
}

.upload input[type="range"]::-webkit-slider-thumb:hover {
    background: #357abd;
}

.upload textarea {
    resize: none;
    height: 80px;
}

.birthday.hidden,.motor-group {
    transition: all 0.3s;
}
.birthday.hidden *, .motor-group.hidden *{
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}
.birthday:not(.hidden) *,.motor-group:not(.hidden) *{
    width: auto;
    height: auto;
    display: flex;
}

/* Élément principal (comme un select) */
.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.select-trigger {
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  padding: 5px 15px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.select-trigger:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

/* Icône flèche */
.select-trigger::after {
  content: "▾";
  font-size: 16px;
  color: #555;
  margin-left: 10px;
}

/* Liste des options */
.select-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: max-content;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  /* display: none; */
  z-index: 1000;
  padding: 10px 0;
}

.select-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
    color: #333;
    margin-left: 10px;
}
#imagesContainer.preview .images-wrapper::-webkit-scrollbar {
    width: 8px;           /* vertical */
    height: 8px;        /* horizontal */
}

/* rail (track) */
#imagesContainer.preview .images-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 8px;
}

#imagesContainer.preview .images-wrapper::-webkit-scrollbar-thumb {
    background: var(--main-color); /*linear-gradient(180deg, var(--main-color), var(--secondary-color));*/
    border-radius: 9px;
    border: 1px solid black;
    min-height: 40px; /* rendre le pouce cliquable */
}
#imagesContainer:not(.preview) .images-wrapper {
    /* min-width: 100%; */
    /* min-width: calc(calc(80px * 4)); */
    min-height: 100%;
    display: flex;
    justify-content: right;
    gap: 2px;
    align-items:center;

}
#imagesContainer:not(.preview) .images-wrapper .div_image{
    width: 50px;
    height: 50px;
    /* max-height: 70px !important; */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    /* border: 2px solid var(--primary-color); */
    position: relative;
}
#imagesContainer:not(.preview) .images-wrapper .div_image img{
    /* min-height: 100%; */
    object-fit: fill;
    /* max-height: 70px; */
    /* max-width: 70px; */
}
/* #imagesContainer:not(.preview) .images-wrapper div:not(.sharp){
    position: relative;
} */
#imagesContainer:not(.preview) .images-wrapper div:not(.sharp) i{
    /* max-width: 60px !important; */
    /* max-height: 60px !important; */
    /* object-fit: cover; */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20%;
}
#imagesContainer:not(.preview) .images-wrapper .sharp{
    border: 1px dashed gray;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
}
#imagesContainer:not(.preview) .images-wrapper .sharp:hover{
    border: 2px dashed rgb(255, 156, 7);

}
#imagesContainer:not(.preview) .images-wrapper .sharp:hover i{
    color: rgb(255, 156, 7);
}
/* Lors du clique sur une image afficher la div en Absolute */
#imagesContainer.preview{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
#imagesContainer.preview .images-wrapper{
    max-width: 500px;
    min-height: 250px;
    position: relative;
    display: flex;
    overflow-x: scroll;
    padding: 2px 0;
}
#imagesContainer.preview .images-wrapper img{
    min-height: 100% !important;
    max-height: 250px !important;
    min-width: 100% !important;
}
#imagesContainer .closer{
    display: none;
}
#imagesContainer.preview .closer{
    position: absolute;
    top: 75%;
    left: 50%;
    width: min-content;
    background: blue;
    font-weight: bold;
    display: block;
    cursor: pointer;
    transform:  translateX(-50%);
}
.div_image {
    position: relative;
}

.div_image .zoom-img {
    position: absolute;
    top: 2px;
    right: 2px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 3px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
}

.div_image:hover .zoom-img {
    display: block;
}

.div_image .delete-img {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: red;
    padding: 3px;
    font-size: 14px;
    display: none;
}

.div_image:hover .delete-img {
    display: block;
}
.preview-modal {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preview-modal.hide {
    display: none;
}

.preview-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.preview-zoom-container {
    position: relative;
    overflow: hidden;
}

.preview-zoom-img {
    transition: transform 0.3s ease;
    transform-origin: center center;
    cursor: zoom-in;
}
.preview-zoom-img.zoomed {
    cursor: zoom-out;
}

.select-options label:hover {
  background: #f3f7ff;
}

/* Style des checkboxes */
.select-options input[type="checkbox"] {
  accent-color: #007bff;
  transform: scale(1.2);
  cursor: pointer;
}
/* price range wrapper */
.range-wrapper{ display:flex; flex-direction:column; gap:6px; }
.range-row{ display:flex; align-items:center; gap:12px; }
.range-value{ font-weight:700; color:#06b6d4; min-width:80px; }
.range-labels{ display:flex; justify-content:space-between; font-size:13px; color:#666; }
.star{
    color: orangered;
    /* content:"★"; */
}
form:not(.free)  button:not(.free,.slick-arrow) {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 10px;
    background: #4a90e2;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

form:not(.free) button:hover:not(.free,.slick-arrow) {
    background: #357abd;
}
/* fin pour les formulaires */

/* pour details */
@media screen and (min-width : 650px) {
    .details .details-card{
        min-width: 600px;
    }
}
.details .info-section .description{
    overflow-y: scroll;
    height: 150px !important;
    max-width: 350px;
    display: none;
}
.details .info-section .description::-webkit-scrollbar{
    --webkit-appearance: none;
    appearance: none;
}
/* fin pour detais */
/* debut pour profil */
.profile-container {
    background: #fff;
    padding: 1rem 1.3rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    width: 400px;
    position: relative;
    z-index: 1;
    margin-top: 150px;
}
.profile-container .form-group{
    margin-bottom: 10px;
}
.profile-container input {
    width: 100%;
    padding: 8px;
    margin: 4px 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.profile-container .submit {
    background: #b6f1fe !important;
}
.profile-container .reset {
    background: rgb(177, 186, 201) !important;
}
.profile-container .submit.changed {
    background: rgb(46, 123, 246) !important;
    color: white;
}
#password-form {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 2rem;
    z-index: 10;
    animation: fadeIn 0.4s ease;
}
#password-form input {
    width: 100%;
}
#password-form .btns {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 10px;
}
#password-form .btns button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
#password-form .btns .cancel {
    background: #ccc;
}
#password-form .btns .save {
    background: #2196F3;
    color: white;
}
/* fin pour profile */

/* début pour la gestion du zoom */
.modale-zoom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-wrap: nowrap;
    overflow: scroll;
    gap: 10px;
    /* filter: blur(1px); */
}
.modale-zoom .modale-image-container {
    width: 90%;
    height: 90%;
    max-width: 400px;
    max-height: 300px;
    border-radius: 10px;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); */
    cursor: zoom-out;
    overflow: hidden;
    position: relative;
}
.modale-zoom .btn-closer-modal{
    position: absolute;
    right: 10px;
    top: 10px;
}
.modale-zoom .modale-image-container img{
    margin: auto;
}
/* fin pour la gestion du zoom */

/* début pour la gestion des modes paiement */
.main-container .payment-overlay-container{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}
.main-container .payment-overlay{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    border-radius: 5px;
    background: #fff;
    z-index: 10;
    width: 400px;
}
.main-container .payment-overlay h1{
    color: var(--main-color);
    font-weight: bold;
}
.main-container .payment-overlay .items-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}
.main-container .payment-overlay img{
    width: 90px !important;
    height: 90px !important;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.441);
    cursor: pointer;
    object-fit:fill;
}
/* fin pour la gestion des mode paiement */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* mediascreen pour telehpone */
@media screen and (max-width : 650px) {
    .header{
        flex-direction: column;
        align-items: flex-start;
        min-height: 80px;
        max-height: 95px;
    }
    .header .logo{
        font-size: larger;
    }
    .header .logo  img{
        height: 20px;
        width: 20px;
        border-radius: 5px;
    }
    .header ul{
        position: absolute;
        bottom: 0;
        background: #fff;
        border-radius: 5px;
        padding: 2px 5px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .header ul li{
        padding: 2px;
    }
    .header >  ul a{
        font-size: 15px !important;
    }
    .sidebar:not(.open) .infos i, .sidebar:not(.open) .infos h2, .sidebar:not(.open) .infos h4, .sidebar:not(.open) .terms-of-use{
        display: block;
    }
    .menu-btn{
        display: none;
    }
    .menu-btn-mobile{
        display: block;
        position: fixed;
        top: 30px;
        right: 20px;
        font-size: 26px;
        cursor: pointer;
        z-index: 950;
        color: #fff;
    }
    .sidebar{
        right: 30px;
        left:  auto;
        width: 200px;
        top:70px;
        height: max-content;
        border-radius: 5px;
    }
    .sidebar .items i{
        font-size: 16px;
        padding: 7px 5px;
    }
    .sidebar.hide{
        display: none;
    }
    .sidebar .sidebar-header{
        display: block;
        font-size: 15px;
    }
    .sidebar .sidebar-header > div{
        min-height: unset;

    }
    .sidebar p{
        width: 100%;
        text-align: left;
        opacity: 1;
        display: block;
        font-size: 13px;
    }
    /* contenu principal */
    .main-container{
        margin: 110px 0 0 0;
        /* margin-top: auto; */
        /* margin-bottom: auto; */
        padding: 10px;
        position: relative;
        /* border: 2px solid red; */
    }
    .main-container.home > div  h2{
        font-size: 12px;
    }
    .main-container:not(.home):not(.small) {
        width: 95% !important;
        max-width: 100%;
    }
    .main-container.upload > h2{
        font-size: 16px;
    }
    .items-container{
        justify-content: space-between;
        padding-top: 10px;
    }
    /* accueil */
    .search_form {
        position: absolute;
        right: 0px;
        top: 0px;
        left: auto;
    }
    .search_form .search-input:not(.active){
        /* position: absolute; */
        width: 0px;
        border: 0;
        padding: 0;
        height: 30px;
        font-size: 10px;
        /* display: none; */
    }
    .search_form .search-input.active{
        display: block;
        width: 150px !important;
    }
    .form-group{
        width: 100% !important;
        padding: 0;
    }
    .form-group input:not([type="checkbox"]), .form-group select{
        width: 100%;
    }
    .form-group.suggestions{
        font-size: x-small !important;
    }
    /* la page d'accueil */
    .card{
        padding: 5px;
        display: flex;
        gap: 0px;
        width: calc(calc(100% / 2) );
        height: min-content;
        max-width: 150px;
        margin: 2px;
    }
    .card button{
        height: 30px;
        font-size: 12px;
    }
    .form-group-wrapper.birthday .form-group{
        width: calc( (100% / 3) + 5rem) !important;
    }
    /* upload responsive */
    /* #imagesContainer:not(.preview) .images-wrapper .sharp{
        height: 30px;
        width: 30px;
    }
    #imagesContainer:not(.preview) .images-wrapper .div_image{
        width: 20px;
        height: 20px;
    }
    #imagesContainer:not(.preview) .images-wrapper .div_image img{
        height: 40px !important;
        width: 50px !important;
        max-width: unset !important;
    } */
    #imagesContainer:not(.preview) .images-wrapper .sharp{
        height: 30px;
        width: 30px;
        margin-right: 10px;
        position: relative;
    }
    #imagesContainer:not(.preview) .images-wrapper .sharp::before{
        content: "";
        background: rgba(0, 0, 0, 0.5);
        height: 5px;
        width: 5px;
        transform: rotate(45deg);
        position: absolute;
        top: -12px;
    }
    #imagesContainer:not(.preview) .images-wrapper .sharp::after{
        content: "Ajouter images";
        position: absolute;
        top: -20px;
        font-size: 8px;
        min-width: max-content;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        font-weight: bold;
    }
    #imagesContainer:not(.preview) .images-wrapper img{
        max-height: 50px;
    }
    #imagesContainer:not(.preview) .images-wrapper .div_image{
        height: unset;
        width: unset;
    }
    #imagesContainer:not(.preview) .images-wrapper .div_image .img-sharp{
        min-width: 30px;
        max-height: 30px;
    }
    #imagesContainer:not(.preview) .images-wrapper .sharp i{
        font-size: 13px;
    }
    .select-trigger{
        /* width: 40px; */
        height: 35px;
        padding: 0px 5px;
        padding-right: 10px;
        font-size: 12px;
    }
    .select-trigger.flag{
        width: 40px;
    }
    .select-trigger.flag img{
        width: 20px;
    }
    .select-trigger.flag::after{
        margin-left: 0;
        font-size: 14px;
    }
    .main-container.upload textarea{
        font-size: 13px;
    }
    #uploadBtn{
        display: none;
    }
    /* les formulaires */
    form .form-group label,fieldset.birthday legend, form .form-group select, form .form-group input:not([type="checkbox"]) {
        font-size: 12px;
    }
    form .form-group input[type="range"]{
        padding: 2px;
    }
    .select-options label{
        line-height: 60%;
        font-size: 12px;
        padding: 2px 0.5rem;
        margin-left: 0;
        display: flex !important;
        justify-content: space-between;

    }
    form:not(.free) button:not(.free,.slick-arrow) {
        padding: 0.3rem;
        font-size: 13px;
    }
}
@media screen and (max-width: 400px) {
    .main-container {
        width: 95%;
    }
}
/* média screen pour .main-container.home sur */
@media screen and (min-width: 430px) and (max-width: 650px) {
    .card{
        width: calc(calc(100% /3.2)) !important;
    }
}
@media screen and (min-width: 400px) and (max-width: 430px) {
    .card{
        width: calc(calc(100% / 2.5)) !important;
    }
}
@media screen and (max-width: 400px) {
    .card{
        width: calc(calc(100% / 2.2)) !important;
    }
    .sm-hidden{
        display: none !important;
    }
}
@media screen and (min-height: 650px){
    .main-container:not(.prose):not(.posts){
        min-height: calc(100vh - 150px);
        /* margin-top: calc(20% + 110px); */
        display: flex;
        flex-direction: column;
        /* align-items: center; */
        justify-content: center;
        /* border: 2px solid red; */
    }
    /* .main-container > .items-container{ */
        /* margin-top: 50%; */
        /* transform: translateY(-50%); */
        /* border: 2px solid green; */
    /* } */
    body {
        overscroll-behavior-y: contain;
    }
}